GeNN
3.3.0
GPU enhanced Neuronal Networks (GeNN)
|
Go to the source code of this file.
Functions | |
void | generate_model_runner (const NNmodel &model, const string &path, int localHostID) |
This function will call the necessary sub-functions to generate the code for simulating a model. More... | |
void | chooseDevice (NNmodel &model, const string &path, int localHostID) |
Helper function that prepares data structures and detects the hardware properties to enable the code generation code that follows. More... | |
void chooseDevice | ( | NNmodel & | model, |
const string & | path, | ||
int | localHostID | ||
) |
Helper function that prepares data structures and detects the hardware properties to enable the code generation code that follows.
The main tasks in this function are the detection and characterization of the GPU device present (if any), choosing which GPU device to use, finding and appropriate block size, taking note of the major and minor version of the CUDA enabled device chosen for use, and populating the list of standard neuron models. The chosen device number is returned.ID of local host
The main tasks in this function are the detection and characterization of the GPU device present (if any), choosing which GPU device to use, finding and appropriate block size, taking note of the major and minor version of the CUDA enabled device chosen for use, and populating the list of standard neuron models. The chosen device number is returned.
model | the nn model we are generating code for |
path | path the generated code will be deposited |
localHostID | ID of local host |
void generate_model_runner | ( | const NNmodel & | model, |
const string & | path, | ||
int | localHostID | ||
) |
This function will call the necessary sub-functions to generate the code for simulating a model.
ID of local host
model | Model description |
path | Path where the generated code will be deposited |
localHostID | ID of local host |