cuda.pathfinder API Reference#

The cuda.pathfinder module provides utilities for loading NVIDIA dynamic libraries, locating NVIDIA C/C++ header directories, finding CUDA binary utilities, and locating CUDA bitcode and static libraries.

SUPPORTED_NVIDIA_LIBNAMES

Built-in immutable sequence.

load_nvidia_dynamic_lib(libname)

Load an NVIDIA dynamic library by name.

LoadedDL(abs_path, ...)

DynamicLibNotFoundError

DynamicLibUnknownError

DynamicLibNotAvailableError

SUPPORTED_HEADERS_CTK

Mapping from short CUDA Toolkit (CTK) library names to their canonical header basenames (used to validate a discovered include directory).

find_nvidia_header_directory(libname)

Locate the header directory for a supported NVIDIA library.

locate_nvidia_header_directory(libname)

Locate the header directory for a supported NVIDIA library.

LocatedHeaderDir(abs_path, found_via)

SUPPORTED_BINARY_UTILITIES

Tuple of supported CUDA binary utility names that can be located via find_nvidia_binary_utility().

find_nvidia_binary_utility(utility_name)

Locate a CUDA binary utility executable.

SUPPORTED_BITCODE_LIBS

Tuple of supported bitcode library names that can be resolved via locate_bitcode_lib() and find_bitcode_lib().

find_bitcode_lib(name)

Find the absolute path to a bitcode library.

locate_bitcode_lib(name)

Locate a bitcode library by name.

LocatedBitcodeLib(name, abs_path, filename, ...)

Information about a located bitcode library.

BitcodeLibNotFoundError

Raised when a bitcode library cannot be found.

SUPPORTED_STATIC_LIBS

Tuple of supported static library names that can be resolved via locate_static_lib() and find_static_lib().

find_static_lib(name)

Find the absolute path to a static library.

locate_static_lib(name)

Locate a static library by name.

LocatedStaticLib(name, abs_path, filename, ...)

Information about a located static library.

StaticLibNotFoundError

Raised when a static library cannot be found.