Skip to content

Commit e64dcf1

Browse files
lib -> library everywhere
1 parent 3128d15 commit e64dcf1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cuda_core/cuda/core/experimental/_linker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ def _lazy_init():
7777
"fatbin": _nvjitlink.InputType.FATBIN,
7878
"ltoir": _nvjitlink.InputType.LTOIR,
7979
"object": _nvjitlink.InputType.OBJECT,
80-
"lib": _nvjitlink.InputType.LIBRARY,
80+
"library": _nvjitlink.InputType.LIBRARY,
8181
}
8282
else:
8383
_driver_input_types = {
8484
"ptx": _driver.CUjitInputType.CU_JIT_INPUT_PTX,
8585
"cubin": _driver.CUjitInputType.CU_JIT_INPUT_CUBIN,
8686
"fatbin": _driver.CUjitInputType.CU_JIT_INPUT_FATBINARY,
8787
"object": _driver.CUjitInputType.CU_JIT_INPUT_OBJECT,
88-
"lib": _driver.CU_JIT_INPUT_LIBRARY,
88+
"library": _driver.CU_JIT_INPUT_LIBRARY,
8989
}
9090
_inited = True
9191

cuda_core/cuda/core/experimental/_module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class ObjectCode:
276276
"""
277277

278278
__slots__ = ("_handle", "_backend_version", "_code_type", "_module", "_loader", "_sym_map")
279-
_supported_code_type = ("cubin", "ptx", "ltoir", "fatbin", "object", "lib")
279+
_supported_code_type = ("cubin", "ptx", "ltoir", "fatbin", "object", "library")
280280

281281
def __new__(self, *args, **kwargs):
282282
raise RuntimeError(
@@ -395,7 +395,7 @@ def from_library(module: Union[bytes, str], *, symbol_mapping: Optional[dict] =
395395
should be mapped to the mangled names before trying to retrieve
396396
them (default to no mappings).
397397
"""
398-
return ObjectCode._init(module, "lib", symbol_mapping=symbol_mapping)
398+
return ObjectCode._init(module, "library", symbol_mapping=symbol_mapping)
399399

400400
# TODO: do we want to unload in a finalizer? Probably not..
401401

0 commit comments

Comments
 (0)