summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Butler <spudz76@gmail.com>2018-04-17 14:05:11 -0600
committerTimothy Pearson <tpearson@raptorengineering.com>2018-06-04 21:07:11 +0000
commit0d5d0f271f73e84324c3bca2ebe00e51bc9a6fb4 (patch)
tree2dddcc138f54cbaa77f0c0dcba6812e3c6dd55db
parent5f8c411813a6637459f58190e3de61fd82de097f (diff)
downloadxmr-stak-0d5d0f271f73e84324c3bca2ebe00e51bc9a6fb4.zip
xmr-stak-0d5d0f271f73e84324c3bca2ebe00e51bc9a6fb4.tar.gz
Squelch warnings when using CUDA 8.0 and arch 2.x
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 49acf71..b21982d 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)
OpenPOWER on IntegriCloud