File tree Expand file tree Collapse file tree
cuda_bindings/cuda/bindings Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ cimport cuda.bindings._bindings.cyruntime as cyruntime
77cimport cython
88
99from cuda.pathfinder import load_nvidia_dynamic_lib
10- from pathlib import Path
1110{{if 'Windows' == platform.system()}}
1211import win32api
1312{{else}}
@@ -1897,7 +1896,6 @@ cdef cudaError_t cudaGraphicsVDPAURegisterOutputSurface(cudaGraphicsResource** r
18971896cdef cudaError_t getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil:
18981897 with gil:
18991898 lib = load_nvidia_dynamic_lib("cudart")
1900- filename = Path(lib.abs_path).name
19011899 handle = <void *><uintptr_t>(lib._handle_uint)
19021900
19031901 {{if 'Windows' == platform.system()}}
@@ -1907,7 +1905,7 @@ cdef cudaError_t getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCa
19071905 {{endif}}
19081906
19091907 if __cudaRuntimeGetVersion == NULL:
1910- raise RuntimeError(f'Function "cudaRuntimeGetVersion" not found in {filename }')
1908+ raise RuntimeError(f'Function "cudaRuntimeGetVersion" not found in {lib.abs_path }')
19111909
19121910 cdef cudaError_t err = cudaSuccess
19131911 err = (<cudaError_t (*)(int*) except ?cudaErrorCallRequiresNewerDriver nogil> __cudaRuntimeGetVersion)(runtimeVersion)
You can’t perform that action at this time.
0 commit comments