cuda.pathfinder.locate_bitcode_lib#

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

Locate a bitcode library by name.

When sm_arch is not None, locate the architecture-specific bitcode filename with _{sm_arch} inserted before the .bc suffix.

Parameters:
  • name – Name of the supported bitcode library to locate.

  • sm_arch – Optional SM architecture suffix, such as "sm90" or "sm90a". If not None, it must match sm[0-9]+[a-z]?.

Raises:
  • ValueError – If name is not a supported bitcode library, or if sm_arch is not None and does not match sm[0-9]+[a-z]?.

  • BitcodeLibNotFoundError – If the bitcode library cannot be found.