Skip to content

Commit 6820f30

Browse files
authored
Merge pull request #224 from NVIDIA/ksimpson/rectify_supported_code_types
rectify the supported types for ObjectCode and Program
2 parents d96f88b + 031a9b0 commit 6820f30

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cuda_core/cuda/core/experimental/_module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class ObjectCode:
9393
a file path string containing that module for loading.
9494
code_type : Any
9595
String of the compiled type.
96-
Supported options are "ptx", "cubin" and "fatbin".
96+
Supported options are "ptx", "cubin", "ltoir" and "fatbin".
9797
jit_options : Optional
9898
Mapping of JIT options to use during module loading.
9999
(Default to no options)
@@ -105,7 +105,7 @@ class ObjectCode:
105105
"""
106106

107107
__slots__ = ("_handle", "_code_type", "_module", "_loader", "_sym_map")
108-
_supported_code_type = ("cubin", "ptx", "fatbin")
108+
_supported_code_type = ("cubin", "ptx", "ltoir", "fatbin")
109109

110110
def __init__(self, module, code_type, jit_options=None, *,
111111
symbol_mapping=None):

cuda_core/cuda/core/experimental/_program.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Program:
2626

2727
__slots__ = ("_handle", "_backend", )
2828
_supported_code_type = ("c++", )
29-
_supported_target_type = ("ptx", "cubin", "ltoir", )
29+
_supported_target_type = ("ptx", "cubin", "ltoir")
3030

3131
def __init__(self, code, code_type):
3232
self._handle = None

0 commit comments

Comments
 (0)