brainevent.config.prefer_system_nvcc

brainevent.config.prefer_system_nvcc#

brainevent.config.prefer_system_nvcc(enable=True)[source]#

Switch the nvcc discovery preference.

Parameters:

enable (bool) – True → prefer the nvcc on the system PATH; False → prefer the pip nvcc bundled with jax[cuda*] (default).

Return type:

None

Examples

>>> import brainevent
>>> brainevent.config.prefer_system_nvcc()       # switch to system-first
>>> brainevent.config.prefer_system_nvcc(False)  # switch back to pip-first