cuda.pathfinder._utils.env_vars.CUDA_ENV_VARS_ORDERED#

cuda.pathfinder._utils.env_vars.CUDA_ENV_VARS_ORDERED = ('CUDA_PATH', 'CUDA_HOME')#

Canonical search order for CUDA Toolkit environment variables.

This tuple defines the priority order used by get_cuda_home_or_path() and throughout cuda-python packages when determining which CUDA Toolkit to use.

The first variable in the tuple has the highest priority. If multiple variables are set and point to different locations, the first one is used and a warning is issued.

Note

Breaking Change in v1.4.0: The order changed from ("CUDA_HOME", "CUDA_PATH") to ("CUDA_PATH", "CUDA_HOME"), making CUDA_PATH the highest priority.

Type:

tuple[str, …]