GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
setup Namespace Reference

Variables

tuple cuda_path
 
 cpu_only = not os.path.exists(cuda_path)
 
string mac_os_x = "Darwin"
 
string linux = "Linux"
 
 genn_path = os.path.dirname(os.path.abspath(__file__))
 
 numpy_path = os.path.join(os.path.dirname(np.__file__))
 
 genn_wrapper_path = os.path.join(genn_path, "pygenn", "genn_wrapper")
 
 genn_wrapper_include = os.path.join(genn_wrapper_path, "include")
 
 genn_wrapper_swig = os.path.join(genn_wrapper_path, "swig")
 
 genn_wrapper_generated = os.path.join(genn_wrapper_path, "generated")
 
 genn_include = os.path.join(genn_path, "lib", "include")
 
list swig_opts
 
list include_dirs
 
list library_dirs = []
 
list genn_wrapper_macros = [("GENERATOR_MAIN_HANDLED", None)]
 
list extra_compile_args = ["-std=c++11"]
 
list libraries = ["cuda", "cudart", "genn_DYNAMIC"]
 
list package_data = ["genn_wrapper/*genn_DYNAMIC.*"]
 
dictionary extension_kwargs
 
 genn_wrapper
 
 name
 
 version
 
 packages
 
 url
 
 author
 
 description
 
 ext_package
 
 ext_modules
 
 install_requires
 
 zip_safe
 

Variable Documentation

◆ author

setup.author

◆ cpu_only

setup.cpu_only = not os.path.exists(cuda_path)

◆ cuda_path

tuple setup.cuda_path
Initial value:
1 = (os.environ["CUDA_PATH"]
2  if "CUDA_PATH" in os.environ
3  else "/usr/local/cuda")

◆ description

setup.description

◆ ext_modules

setup.ext_modules

◆ ext_package

setup.ext_package

◆ extension_kwargs

dictionary setup.extension_kwargs
Initial value:
1 = {
2  "swig_opts": swig_opts,
3  "include_dirs": include_dirs,
4  "libraries": libraries,
5  "library_dirs": library_dirs + [genn_wrapper_path],
6  "runtime_library_dirs": library_dirs,
7  "extra_compile_args" : extra_compile_args}

◆ extra_compile_args

list setup.extra_compile_args = ["-std=c++11"]

◆ genn_include

setup.genn_include = os.path.join(genn_path, "lib", "include")

◆ genn_path

setup.genn_path = os.path.dirname(os.path.abspath(__file__))

◆ genn_wrapper

setup.genn_wrapper
Initial value:
1 = Extension('_genn_wrapper', [
2  "pygenn/genn_wrapper/generated/genn_wrapper.i",
3  "lib/src/generateALL.cc", "lib/src/generateCPU.cc",
4  "lib/src/generateInit.cc", "lib/src/generateKernels.cc",
5  "lib/src/generateMPI.cc", "lib/src/generateRunner.cc",
6  "pygenn/genn_wrapper/generated/currentSourceModelsCustom.cc",
7  "pygenn/genn_wrapper/generated/initSparseConnectivitySnippetCustom.cc",
8  "pygenn/genn_wrapper/generated/initVarSnippetCustom.cc",
9  "pygenn/genn_wrapper/generated/newNeuronModelsCustom.cc",
10  "pygenn/genn_wrapper/generated/newPostsynapticModelsCustom.cc",
11  "pygenn/genn_wrapper/generated/newWeightUpdateModelsCustom.cc"],
12  define_macros=genn_wrapper_macros,
13  **extension_kwargs)

◆ genn_wrapper_generated

setup.genn_wrapper_generated = os.path.join(genn_wrapper_path, "generated")

◆ genn_wrapper_include

setup.genn_wrapper_include = os.path.join(genn_wrapper_path, "include")

◆ genn_wrapper_macros

list setup.genn_wrapper_macros = [("GENERATOR_MAIN_HANDLED", None)]

◆ genn_wrapper_path

setup.genn_wrapper_path = os.path.join(genn_path, "pygenn", "genn_wrapper")

◆ genn_wrapper_swig

setup.genn_wrapper_swig = os.path.join(genn_wrapper_path, "swig")

◆ include_dirs

list setup.include_dirs
Initial value:
1 = [genn_include, genn_wrapper_include, genn_wrapper_generated,
2  os.path.join(numpy_path, "core", "include")]

◆ install_requires

setup.install_requires

◆ libraries

list setup.libraries = ["cuda", "cudart", "genn_DYNAMIC"]

◆ library_dirs

list setup.library_dirs = []

◆ linux

string setup.linux = "Linux"

◆ mac_os_x

string setup.mac_os_x = "Darwin"

◆ name

setup.name

◆ numpy_path

setup.numpy_path = os.path.join(os.path.dirname(np.__file__))

◆ package_data

list setup.package_data = ["genn_wrapper/*genn_DYNAMIC.*"]

◆ packages

setup.packages

◆ swig_opts

list setup.swig_opts
Initial value:
1 = ["-c++", "-relativeimport", "-outdir", genn_wrapper_path, "-I" + genn_wrapper_include,
2  "-I" + genn_wrapper_generated, "-I" + genn_wrapper_swig, "-I" + genn_include]

◆ url

setup.url

◆ version

setup.version

◆ zip_safe

setup.zip_safe