tilelang.contrib.nvrtc¶
函式¶
|
Compile cuda code with NVRTC. |
Module Contents¶
- tilelang.contrib.nvrtc.get_nvrtc_version()¶
- 回傳型別:
tuple[int, int]
- tilelang.contrib.nvrtc.compile_cuda(code, target_format='ptx', arch=None, options=None, verbose=False)¶
Compile cuda code with NVRTC.
- 參數:
code (str) -- The cuda code.
target_format (Literal["ptx", "cubin"]) -- The target format of nvrtc compiler.
arch (Optional[int]) -- The cuda architecture code.
options (Optional[Union[str, List[str]]]) -- The additional options.
verbose (bool) -- Whether to print the verbose output.
- 回傳:
result_bytes -- The bytearray of the cubin or ptx code.
- 回傳型別:
bytearray