diff options
author | psychocrypt <psychocryptHPC@gmail.com> | 2018-04-18 21:48:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-18 21:48:18 +0200 |
commit | ddf75c8b1156b879620d130e01179120a38e15bb (patch) | |
tree | 96bcb4b9eadbbf94583661a5711ab8ec69386132 | |
parent | 235f155b98922b46fb8954078d395e0bfeac507a (diff) | |
parent | 50e7d70dc9dab4551a545b626a5c9b3f49b7eeb0 (diff) | |
download | xmr-stak-ddf75c8b1156b879620d130e01179120a38e15bb.zip xmr-stak-ddf75c8b1156b879620d130e01179120a38e15bb.tar.gz |
Merge pull request #1448 from Spudz76/dev-cuda8-shhhhhh
CUDA 8 deprecation warning silencer
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 485616e..784c0bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -148,6 +148,11 @@ if(CUDA_ENABLE) set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -std=c++11") endif() + # avoid that nvcc in CUDA 8 complains about sm_20 pending removal + if(CUDA_VERSION VERSION_EQUAL 8.0) + set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -Wno-deprecated-gpu-targets") + endif() + # avoid that nvcc in CUDA < 8 tries to use libc `memcpy` within the kernel if(CUDA_VERSION VERSION_LESS 8.0) add_definitions(-D_FORCE_INLINES) |