CARLsim  4.1.0
CARLsim: a GPU-accelerated SNN simulator
carlsim_definitions.h File Reference

Go to the source code of this file.

Macros

#define ALL   -1
 CARLsim common definitions. More...
 
#define ANY   -1
 used for create* method to specify any GPU or a specific GPU More...
 
#define CARLSIM_ERROR(where, what)   fprintf(stderr,"\033[31;1m[USER ERROR %s] %s\033[0m\n",where,what)
 
#define CARLSIM_INFO(where, what)   fprintf(stdout,"\033[%s] %s\n",where,what)
 
#define CARLSIM_WARN(where, what)   fprintf(stderr,"\033[33;1m[USER WARNING %s] %s\033[0m\n",where,what)
 
#define DOPAMINERGIC_NEURON   (TARGET_DA | EXCITATORY_NEURON)
 
#define EXCITATORY_NEURON   (TARGET_NMDA | TARGET_AMPA)
 
#define EXCITATORY_POISSON   (EXCITATORY_NEURON | POISSON_NEURON)
 
#define INHIBITORY_NEURON   (TARGET_GABAa | TARGET_GABAb)
 
#define INHIBITORY_POISSON   (INHIBITORY_NEURON | POISSON_NEURON)
 
#define IS_EXCITATORY_TYPE(type)   (!IS_INHIBITORY_TYPE(type))
 
#define IS_INHIBITORY_TYPE(type)   (((type) & TARGET_GABAa) || ((type) & TARGET_GABAb))
 
#define MAX_NUM_COMP_CONN   4
 
#define MAX_NUM_CUDA_DEVICES   8
 
#define POISSON_NEURON   (1 << 0)
 
#define SYN_FIXED   false
 
#define SYN_PLASTIC   true
 
#define TARGET_5HT   (1 << 6)
 
#define TARGET_ACh   (1 << 7)
 
#define TARGET_AMPA   (1 << 1)
 
#define TARGET_DA   (1 << 5)
 
#define TARGET_GABAa   (1 << 3)
 
#define TARGET_GABAb   (1 << 4)
 
#define TARGET_NE   (1 << 8)
 
#define TARGET_NMDA   (1 << 2)
 
#define UNKNOWN_NEURON   (0)
 

Macro Definition Documentation

◆ ALL

#define ALL   -1

used for the set* methods to specify all groups or a specific group

Definition at line 56 of file carlsim_definitions.h.

◆ ANY

#define ANY   -1

Definition at line 57 of file carlsim_definitions.h.

◆ CARLSIM_ERROR

#define CARLSIM_ERROR (   where,
  what 
)    fprintf(stderr,"\033[31;1m[USER ERROR %s] %s\033[0m\n",where,what)

Definition at line 84 of file carlsim_definitions.h.

◆ CARLSIM_INFO

#define CARLSIM_INFO (   where,
  what 
)    fprintf(stdout,"\033[%s] %s\n",where,what)

Definition at line 86 of file carlsim_definitions.h.

◆ CARLSIM_WARN

#define CARLSIM_WARN (   where,
  what 
)    fprintf(stderr,"\033[33;1m[USER WARNING %s] %s\033[0m\n",where,what)

Definition at line 85 of file carlsim_definitions.h.

◆ DOPAMINERGIC_NEURON

#define DOPAMINERGIC_NEURON   (TARGET_DA | EXCITATORY_NEURON)

Definition at line 78 of file carlsim_definitions.h.

◆ EXCITATORY_NEURON

#define EXCITATORY_NEURON   (TARGET_NMDA | TARGET_AMPA)

Definition at line 77 of file carlsim_definitions.h.

◆ EXCITATORY_POISSON

#define EXCITATORY_POISSON   (EXCITATORY_NEURON | POISSON_NEURON)

Definition at line 79 of file carlsim_definitions.h.

◆ INHIBITORY_NEURON

#define INHIBITORY_NEURON   (TARGET_GABAa | TARGET_GABAb)

Definition at line 76 of file carlsim_definitions.h.

◆ INHIBITORY_POISSON

#define INHIBITORY_POISSON   (INHIBITORY_NEURON | POISSON_NEURON)

Definition at line 80 of file carlsim_definitions.h.

◆ IS_EXCITATORY_TYPE

#define IS_EXCITATORY_TYPE (   type)    (!IS_INHIBITORY_TYPE(type))

Definition at line 82 of file carlsim_definitions.h.

◆ IS_INHIBITORY_TYPE

#define IS_INHIBITORY_TYPE (   type)    (((type) & TARGET_GABAa) || ((type) & TARGET_GABAb))

Definition at line 81 of file carlsim_definitions.h.

◆ MAX_NUM_COMP_CONN

#define MAX_NUM_COMP_CONN   4

Definition at line 91 of file carlsim_definitions.h.

◆ MAX_NUM_CUDA_DEVICES

#define MAX_NUM_CUDA_DEVICES   8

Definition at line 88 of file carlsim_definitions.h.

◆ POISSON_NEURON

#define POISSON_NEURON   (1 << 0)

Definition at line 66 of file carlsim_definitions.h.

◆ SYN_FIXED

#define SYN_FIXED   false

Definition at line 60 of file carlsim_definitions.h.

◆ SYN_PLASTIC

#define SYN_PLASTIC   true

Definition at line 61 of file carlsim_definitions.h.

◆ TARGET_5HT

#define TARGET_5HT   (1 << 6)

Definition at line 72 of file carlsim_definitions.h.

◆ TARGET_ACh

#define TARGET_ACh   (1 << 7)

Definition at line 73 of file carlsim_definitions.h.

◆ TARGET_AMPA

#define TARGET_AMPA   (1 << 1)

Definition at line 67 of file carlsim_definitions.h.

◆ TARGET_DA

#define TARGET_DA   (1 << 5)

Definition at line 71 of file carlsim_definitions.h.

◆ TARGET_GABAa

#define TARGET_GABAa   (1 << 3)

Definition at line 69 of file carlsim_definitions.h.

◆ TARGET_GABAb

#define TARGET_GABAb   (1 << 4)

Definition at line 70 of file carlsim_definitions.h.

◆ TARGET_NE

#define TARGET_NE   (1 << 8)

Definition at line 74 of file carlsim_definitions.h.

◆ TARGET_NMDA

#define TARGET_NMDA   (1 << 2)

Definition at line 68 of file carlsim_definitions.h.

◆ UNKNOWN_NEURON

#define UNKNOWN_NEURON   (0)

Definition at line 65 of file carlsim_definitions.h.