cuda.core.experimental._module.ObjectCode¶
- class cuda.core.experimental._module.ObjectCode(module, code_type, jit_options=None, *, symbol_mapping=None)¶
Represent a compiled program that was loaded onto the device.
This object provides a unified interface for different types of compiled programs that are loaded onto the device.
Loads the module library with specified module code and JIT options.
Note
Usage under CUDA 11.x will only load to the current device context.
- Parameters:
module (Union[bytes, str]) – Either a bytes object containing the module to load, or a file path string containing that module for loading.
code_type (Any) – String of the compiled type. Supported options are “ptx”, “cubin” and “fatbin”.
jit_options (Optional) – Mapping of JIT options to use during module loading. (Default to no options)
symbol_mapping (Optional) – Keyword argument dictionary specifying how symbol names should be mapped before trying to retrieve them. (Default to no mappings)
Methods
- __init__(module, code_type, jit_options=None, *, symbol_mapping=None)¶