![]() |
CNS: Cortical Network Simulator Programming Guide |
Note: CNS is designed to run on a GPU, but can also run without one (much more slowly). These instructions are written assuming you have a GPU. If you don't, skip any steps written in italics and also read this section.
gcc for Linux or Mac and Visual Studio for Windows.
<pthread.h> library.
cns/scripts/linux/setup cns/scripts/win/setup.bat cns/scripts/mac/setup
cns_install
cns_build demopkg
and you should also see the following figure:
Defining a network model.... Building the model (platform: GPU).... Reading a test image and loading it into the model.... Running the model and retrieving result.... Elapsed time is ??? seconds. Plotting result.... Releasing model resources....
"cns_build package", where package is the package name. Normally this will be the same as the directory name. All file names in the package directory also start with the package name.
cns_build command.
CUDA = 0 in one of these files (the one corresponding to your OS):
cns/scripts/linux/setup cns/scripts/win/setup.bat cns/scripts/mac/setup
cns('init'), you must use the 'cpu' (or 'debug') option. This includes the demopkg_run script mentioned above.