cuda.pathfinder.find_bitcode_lib#

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

Find the absolute path to a bitcode library.

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

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

  • 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.