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_archis notNone, find the architecture-specific bitcode filename with_{sm_arch}inserted before the.bcsuffix.- Parameters:
name – Name of the supported bitcode library to find.
sm_arch – Optional SM architecture suffix, such as
"sm90"or"sm90a". If notNone, it must matchsm[0-9]+[a-z]?.
- Raises:
ValueError – If
nameis not a supported bitcode library, or ifsm_archis notNoneand does not matchsm[0-9]+[a-z]?.BitcodeLibNotFoundError – If the bitcode library cannot be found.