Skip to content
Denis Alevi edited this page Mar 30, 2021 · 1 revision

Preferences

This section explains brian2CUDA specific preferences.

List of preferences

brian2cuda

General brian2CUDA preferences.

brian2cuda.gpu_id = None

  • The ID of the GPU that should be used for code execution. This should be same ID as reported by nvidia-smi. Default value is None, in which case the GPU with the highest compute capability and lowest ID is used.

codegen.cuda

Code generation preferences

TODO: change preference name to brian2cuda

codegen.cuda.compute_capability = None

  • Manually set the compute capability for which CUDA code will be compiled. This has to be a float (e.g. 6.1). If None, the compute capability for the target GPU will be detected using deviceQuery.

codegen.cuda.cuda_path = None

  • The path to the CUDA installation. If set, this preferences takes precedence over environment variable CUDA_PATH.