get_compile_args function

(Shortest import: from brian2genn.device import get_compile_args)

brian2genn.device.get_compile_args()[source]

Get the compile args based on the users preferences. Uses Brian’s preferences for the C++ compilation (either codegen.cpp.extra_compile_args for both Windows and UNIX, or codegen.cpp.extra_compile_args_gcc for UNIX and codegen.cpp.extra_compile_args_msvc for Windows), and the Brian2GeNN preference devices.genn.extra_compile_args_nvcc for the CUDA compilation with nvcc.

Returns:

(compile_args_gcc, compile_args_msvc, compile_args_nvcc) : (str, str, str)

Tuple with the respective compiler arguments (as strings).