cuda.pathfinder.locate_bitcode_lib#

cuda.pathfinder.locate_bitcode_lib(
name: str,
*,
sm_arch: str | None = None,
) → LocatedBitcodeLib#

Locate a bitcode library by name, returning its resolved absolute path.

Parameters:
  • name – Supported bitcode library name.

  • sm_arch – Target SM without the sm_ prefix, such as "90" or "100a". If specified, search only for the file selected for that SM by the library’s configuration. The matching file must be present in the installation. Pass None or omit this argument to search for the default file.

Raises:
  • ValueError – If name is not a supported bitcode library. Also raised if sm_arch is invalid.

  • BitcodeLibNotFoundError – If the bitcode library cannot be found. Also raised if no file is configured for the request.