GeNN  2.2.3
GPU enhanced Neuronal Networks (GeNN)
generateCPU.h File Reference

Functions for generating code that will run the neuron and synapse simulations on the CPU. Part of the code generation section. More...

#include "modelSpec.h"
#include <string>
#include <fstream>

Go to the source code of this file.

Functions

void genNeuronFunction (const NNmodel &model, const string &path)
 Function that generates the code of the function the will simulate all neurons on the CPU. More...
 
void generate_process_presynaptic_events_code_CPU (ostream &os, const NNmodel &model, unsigned int src, unsigned int trg, int i, string &localID, unsigned int inSynNo, const string &postfix)
 Function for generating the CUDA synapse kernel code that handles presynaptic spikes or spike type events. More...
 
void genSynapseFunction (const NNmodel &model, const string &path)
 Function that generates code that will simulate all synapses of the model on the CPU. More...
 

Detailed Description

Functions for generating code that will run the neuron and synapse simulations on the CPU. Part of the code generation section.

Function Documentation

void generate_process_presynaptic_events_code_CPU ( ostream &  os,
const NNmodel model,
unsigned int  src,
unsigned int  trg,
int  i,
string &  localID,
unsigned int  inSynNo,
const string &  postfix 
)

Function for generating the CUDA synapse kernel code that handles presynaptic spikes or spike type events.

Parameters
osoutput stream for code
modelthe neuronal network model to generate code for
srcthe number of the src neuron population
trgthe number of the target neuron population
ithe index of the synapse group being processed
localIDthe variable name of the local ID of the thread within the synapse group
inSynNothe ID number of the current synapse population as the incoming population to the target neuron population
postfixwhether to generate code for true spikes or spike type events
void genNeuronFunction ( const NNmodel model,
const string &  path 
)

Function that generates the code of the function the will simulate all neurons on the CPU.

Parameters
modelModel description
pathPath for code generation
void genSynapseFunction ( const NNmodel model,
const string &  path 
)

Function that generates code that will simulate all synapses of the model on the CPU.

Parameters
modelModel description
pathPath for code generation