We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42c5e60 commit 2aa5844Copy full SHA for 2aa5844
src/python/library/tritonclient/utils/cuda_shared_memory/__init__.py
@@ -28,7 +28,7 @@
28
# Check for dependency before other import so other imports can assume
29
# the module is available (drop "try ... except .."")
30
try:
31
- from cuda import cudart
+ import cuda.bindings.runtime as cudart
32
except ModuleNotFoundError as error:
33
raise RuntimeError(
34
"CUDA shared memory utilities require Python package 'cuda-python'"
src/python/library/tritonclient/utils/cuda_shared_memory/_utils.py
@@ -26,8 +26,8 @@
26
27
from typing import Any
-from cuda import cuda as cuda_driver
-from cuda import cudart
+import cuda.bindings.driver as cuda_driver
+import cuda.bindings.runtime as cudart
def call_cuda_function(function, *argv):
0 commit comments