diff options
author | Tony Butler <spudz76@gmail.com> | 2018-04-17 14:05:11 -0600 |
---|---|---|
committer | Tony Butler <spudz76@gmail.com> | 2018-04-17 14:05:11 -0600 |
commit | 50e7d70dc9dab4551a545b626a5c9b3f49b7eeb0 (patch) | |
tree | c979fb31f2edde62f116a7bad00da17b1c2e1c4d | |
parent | 70c319103554bfce6edd1c18786566f2bdcbc93b (diff) | |
download | xmr-stak-50e7d70dc9dab4551a545b626a5c9b3f49b7eeb0.zip xmr-stak-50e7d70dc9dab4551a545b626a5c9b3f49b7eeb0.tar.gz |
Squelch warnings when using CUDA 8.0 and arch 2.x
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 15a2684..c0b159d 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) |