diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-10-17 20:29:23 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-10-17 20:29:23 +0200 |
commit | 9d879c949a04102d536e0e7980b0ce78f5cf1be1 (patch) | |
tree | 00edd5f412e19bf1416e47e49aa3f8df9cfbed9d | |
parent | b1270f04b89c3271aca11594501f7e997848e394 (diff) |
Fix an incompatibility with CUDA's FP16 definition
-rw-r--r-- | src/cupp11.hpp | 1 | ||||
-rw-r--r-- | test/wrapper_cuda.hpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/cupp11.hpp b/src/cupp11.hpp index 1c7e6c9c..71fdc3cd 100644 --- a/src/cupp11.hpp +++ b/src/cupp11.hpp @@ -44,6 +44,7 @@ #include <cstring> // std::strlen // CUDA +#define CUDA_NO_HALF // Incompatible with CLBlast's definition; TODO: resolve this #include <cuda.h> // CUDA driver API #include <nvrtc.h> // NVIDIA runtime compilation API diff --git a/test/wrapper_cuda.hpp b/test/wrapper_cuda.hpp index c97ae3ef..12417cdd 100644 --- a/test/wrapper_cuda.hpp +++ b/test/wrapper_cuda.hpp @@ -22,6 +22,7 @@ #include "utilities/utilities.hpp" #ifdef CLBLAST_REF_CUBLAS + #define CUDA_NO_HALF #include <cuda_runtime.h> #include <cublas_v2.h> #endif |