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

Header file that contains the class (struct) definition of neuronModel for defining a neuron model and the class definition of NNmodel for defining a neuronal network model. Part of the code generation and generated code sections. More...

#include "neuronModels.h"
#include "synapseModels.h"
#include "postSynapseModels.h"
#include <set>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  NNmodel
 

Macros

#define _MODELSPEC_H_
 macro for avoiding multiple inclusion during compilation More...
 
#define NO_DELAY   0
 Macro used to indicate no synapse delay for the group (only one queue slot will be generated) More...
 
#define NOLEARNING   0
 Macro attaching the label "NOLEARNING" to flag 0. More...
 
#define LEARNING   1
 Macro attaching the label "LEARNING" to flag 1. More...
 
#define EXITSYN   0
 Macro attaching the label "EXITSYN" to flag 0 (excitatory synapse) More...
 
#define INHIBSYN   1
 Macro attaching the label "INHIBSYN" to flag 1 (inhibitory synapse) More...
 
#define CPU   0
 Macro attaching the label "CPU" to flag 0. More...
 
#define GPU   1
 Macro attaching the label "GPU" to flag 1. More...
 
#define AUTODEVICE   -1
 Macro attaching the label AUTODEVICE to flag -1. Used by setGPUDevice. More...
 

Enumerations

enum  SynapseConnType { ALLTOALL, DENSE, SPARSE }
 
enum  SynapseGType { INDIVIDUALG, GLOBALG, INDIVIDUALID }
 
enum  FloatType { , GENN_LONG_DOUBLE }
 

Functions

void initGeNN ()
 Method for GeNN initialisation (by preparing standard models) More...
 

Variables

unsigned int GeNNReady
 

Detailed Description

Header file that contains the class (struct) definition of neuronModel for defining a neuron model and the class definition of NNmodel for defining a neuronal network model. Part of the code generation and generated code sections.

Macro Definition Documentation

#define _MODELSPEC_H_

macro for avoiding multiple inclusion during compilation

#define AUTODEVICE   -1

Macro attaching the label AUTODEVICE to flag -1. Used by setGPUDevice.

#define CPU   0

Macro attaching the label "CPU" to flag 0.

#define EXITSYN   0

Macro attaching the label "EXITSYN" to flag 0 (excitatory synapse)

#define GPU   1

Macro attaching the label "GPU" to flag 1.

#define INHIBSYN   1

Macro attaching the label "INHIBSYN" to flag 1 (inhibitory synapse)

#define LEARNING   1

Macro attaching the label "LEARNING" to flag 1.

#define NO_DELAY   0

Macro used to indicate no synapse delay for the group (only one queue slot will be generated)

#define NOLEARNING   0

Macro attaching the label "NOLEARNING" to flag 0.

Enumeration Type Documentation

enum FloatType
Enumerator
GENN_LONG_DOUBLE 
Enumerator
ALLTOALL 
DENSE 
SPARSE 
Enumerator
INDIVIDUALG 
GLOBALG 
INDIVIDUALID 

Function Documentation

void initGeNN ( )

Method for GeNN initialisation (by preparing standard models)

Variable Documentation

unsigned int GeNNReady