From 22ca5ee29558b29c32d2ab7b62b3bf9c2086a540 Mon Sep 17 00:00:00 2001 From: Aaron Greig Date: Mon, 18 Nov 2024 11:24:05 +0000 Subject: [PATCH] Fix the CL_CORE_FUNCTION macro on windows. It should have been using the stringizing operator like the linux path. --- source/adapters/opencl/adapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/adapters/opencl/adapter.cpp b/source/adapters/opencl/adapter.cpp index e794c308f9..bf81f6bdaf 100644 --- a/source/adapters/opencl/adapter.cpp +++ b/source/adapters/opencl/adapter.cpp @@ -24,7 +24,7 @@ ur_adapter_handle_t_::ur_adapter_handle_t_() { auto handle = LoadLibraryA("OpenCL.dll"); #define CL_CORE_FUNCTION(FUNC) \ - FUNC = reinterpret_cast(GetProcAddress(handle, "FUNC")); + FUNC = reinterpret_cast(GetProcAddress(handle, #FUNC)); #include "core_functions.def" #undef CL_CORE_FUNCTION