GeNN  2.2.3
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)
 This function will call the necessary sub-functions to generate the code for simulating a model. More...
 
void chooseDevice (NNmodel &model, const string &path)
 Helper function that prepares data structures and detects the hardware properties to enable the code generation code that follows. More...
 

Function Documentation

void chooseDevice ( NNmodel model,
const string &  path 
)

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.

Parameters
modelthe nn model we are generating code for
pathpath the generated code will be deposited
void generate_model_runner ( const NNmodel model,
const string &  path 
)

This function will call the necessary sub-functions to generate the code for simulating a model.

Parameters
modelModel description
pathPath where the generated code will be deposited