Skip to content

Commit 48dcdca

Browse files
committed
Fix CUDA loader format arguments
1 parent 843eb9c commit 48dcdca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cext/cuda_loader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ void* do_get_proc_address(cuGetProcAddress_v2_t getter,
2121
if (res != CUDA_SUCCESS) {
2222
raise(PyExc_RuntimeError,
2323
"Failed to load '%s' from the CUDA library: cuGetProcAddress_v2 returned %d",
24-
static_cast<int>(res));
24+
name, static_cast<int>(res));
2525
return nullptr;
2626
}
2727

2828
if (!ret) {
2929
raise(PyExc_RuntimeError,
3030
"Function '%s' is not available in the CUDA library",
31-
static_cast<int>(res));
31+
name);
3232
return nullptr;
3333
}
3434

0 commit comments

Comments
 (0)