GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
generateALL.h File Reference
#include "modelSpec.h"
#include <string>

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...
 

Function Documentation

◆ chooseDevice()

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.

Parameters
modelthe nn model we are generating code for
pathpath the generated code will be deposited
localHostIDID of local host

◆ generate_model_runner()

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

Parameters
modelModel description
pathPath where the generated code will be deposited
localHostIDID of local host