Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rectify the supported types for ObjectCode and Program #224

Merged
merged 3 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cuda_core/cuda/core/experimental/_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class ObjectCode:
a file path string containing that module for loading.
code_type : Any
String of the compiled type.
Supported options are "ptx", "cubin" and "fatbin".
Supported options are "ptx", "cubin", "ltoir" and "fatbin".
jit_options : Optional
Mapping of JIT options to use during module loading.
(Default to no options)
Expand All @@ -105,7 +105,7 @@ class ObjectCode:
"""

__slots__ = ("_handle", "_code_type", "_module", "_loader", "_sym_map")
_supported_code_type = ("cubin", "ptx", "fatbin")
_supported_code_type = ("cubin", "ptx", "ltoir", "fatbin")

def __init__(self, module, code_type, jit_options=None, *,
symbol_mapping=None):
Expand Down
2 changes: 1 addition & 1 deletion cuda_core/cuda/core/experimental/_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Program:

__slots__ = ("_handle", "_backend", )
_supported_code_type = ("c++", )
_supported_target_type = ("ptx", "cubin", "ltoir", )
_supported_target_type = ("ptx", "cubin", "ltoir")

def __init__(self, code, code_type):
self._handle = None
Expand Down