diff --git a/source/nvidia/cuda/nvidia-cuda.cpp b/source/nvidia/cuda/nvidia-cuda.cpp index 1fc98f27..80aa07ce 100644 --- a/source/nvidia/cuda/nvidia-cuda.cpp +++ b/source/nvidia/cuda/nvidia-cuda.cpp @@ -29,19 +29,19 @@ #define CUDA_LOAD_SYMBOL(NAME) \ { \ - NAME = static_cast(os_dlsym(_library, #NAME)); \ + NAME = reinterpret_cast(os_dlsym(_library, #NAME)); \ if (!NAME) \ throw std::runtime_error("Failed to load '" #NAME "' from '" CUDA_NAME "'."); \ } #define CUDA_LOAD_SYMBOL_V2(NAME) \ { \ - NAME = static_cast(os_dlsym(_library, #NAME "_v2")); \ + NAME = reinterpret_cast(os_dlsym(_library, #NAME "_v2")); \ if (!NAME) \ throw std::runtime_error("Failed to load '" #NAME "' from '" CUDA_NAME "'."); \ } #define CUDA_LOAD_SYMBOL_EX(NAME, OVERRIDE) \ { \ - NAME = static_cast(os_dlsym(_library, #OVERRIDE)); \ + NAME = reinterpret_cast(os_dlsym(_library, #OVERRIDE)); \ if (!NAME) \ throw std::runtime_error("Failed to load '" #NAME "' from '" CUDA_NAME "'."); \ }