From 48dcdca9e1766a8edd9b9bc32192e74ff19982a6 Mon Sep 17 00:00:00 2001 From: Minh Vu Date: Sat, 13 Jun 2026 12:18:39 +0200 Subject: [PATCH] Fix CUDA loader format arguments --- cext/cuda_loader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }