cuda-pathfinder 1.5.0 Release notes#
Released on Mar 24, 2026
Breaking Change#
CUDA environment variable priority changed:
CUDA_PATHnow takes precedence overCUDA_HOMEwhen both are set. Previously,CUDA_HOMEhad higher priority. If both variables are set and point to different locations, a warning will be issued andCUDA_PATHwill be used. This change aligns with industry standards and NVIDIA’s recommended practices.The
found_viaprovenance field onLoadedDL,LocatedHeaderDir,LocatedStaticLib, andLocatedBitcodeLibnow reports"CUDA_PATH"(previously"CUDA_HOME") when a library or header was discovered through theCUDA_PATH/CUDA_HOMEenvironment variables. The label reflects the highest-priority variable name, not necessarily the variable that supplied the value.Migration Guide:
If you rely on
CUDA_HOME, consider switching toCUDA_PATHIf you set both variables, ensure they point to the same CUDA Toolkit installation
If they differ intentionally, be aware that
CUDA_PATHwill now be used
Highlights#
Added
cuda.pathfinder.get_cuda_path_or_home(), a centralized function for resolvingCUDA_PATH/CUDA_HOME. Features:Intelligent path comparison that handles symlinks, case sensitivity, and trailing slashes
Result caching for performance (first call determines the path for the process lifetime)
Clear warnings when both
CUDA_PATHandCUDA_HOMEare set but differ
Future releases of
cuda-bindingsandcuda-corewill adopt this function to ensure consistentCUDA_PATH>CUDA_HOMEpriority across all cuda-python packages. (PR #1801)