diff --git a/cext/cuda_loader.cpp b/cext/cuda_loader.cpp index 7f6b62d..512e71c 100644 --- a/cext/cuda_loader.cpp +++ b/cext/cuda_loader.cpp @@ -21,14 +21,14 @@ void* do_get_proc_address(cuGetProcAddress_v2_t getter, if (res != CUDA_SUCCESS) { raise(PyExc_RuntimeError, "Failed to load '%s' from the CUDA library: cuGetProcAddress_v2 returned %d", - static_cast(res)); + name, static_cast(res)); return nullptr; } if (!ret) { raise(PyExc_RuntimeError, "Function '%s' is not available in the CUDA library", - static_cast(res)); + name); return nullptr; }