cuda.pathfinder.locate_nvidia_header_directory#
- cuda.pathfinder.locate_nvidia_header_directory(
- libname: str,
Locate the header directory for a supported NVIDIA library.
- Parameters:
libname (str) – The short name of the library whose headers are needed (e.g.,
"nvrtc","cusolver","nvshmem").- Returns:
A LocatedHeaderDir object containing the absolute path to the discovered header directory and information about where it was found, or
Noneif the headers cannot be found.- Return type:
LocatedHeaderDir or None
- Raises:
RuntimeError – If
libnameis not in the supported set.
- Search order:
NVIDIA Python wheels — site-packages directories from the descriptor.
Conda environments — platform-specific conda include layouts.
CUDA Toolkit environment variables —
CUDA_HOME/CUDA_PATH.CTK root canary probe — subprocess canary (descriptors with
use_ctk_root_canary=Trueonly).System install directories — glob patterns from the descriptor.