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