![]() |
GeNN
2.2.3
GPU enhanced Neuronal Networks (GeNN)
|
Functions for generating code that will run the neuron and synapse simulations on the CPU. Part of the code generation section. More...
#include "generateCPU.h"#include "global.h"#include "utils.h"#include "stringUtils.h"#include "CodeHelper.h"#include <algorithm>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... | |
Functions for generating code that will run the neuron and synapse simulations on the CPU. Part of the code generation section.
| 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.
| os | output stream for code |
| model | the neuronal network model to generate code for |
| src | the number of the src neuron population |
| trg | the number of the target neuron population |
| i | the index of the synapse group being processed |
| localID | the variable name of the local ID of the thread within the synapse group |
| inSynNo | the ID number of the current synapse population as the incoming population to the target neuron population |
| postfix | whether 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.
| model | Model description |
| path | Path 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.
| model | Model description |
| path | Path for code generation |