diff options
author | 2016-02-03 13:48:36 -0800 | |
---|---|---|
committer | 2016-02-03 13:48:36 -0800 | |
commit | af8436b19694901b580ef58283a6e8b64ccde7d2 (patch) | |
tree | 4b8a2b578aa07670e511b30d3764ec6d63241275 | |
parent | d7742d22e4a1787dc16dac938b4f26601af7b488 (diff) |
Silenced the "calling a __host__ function from a __host__ __device__ function is not allowed" messages
-rw-r--r-- | unsupported/test/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/test/CMakeLists.txt b/unsupported/test/CMakeLists.txt index eed724bcf..33d31c098 100644 --- a/unsupported/test/CMakeLists.txt +++ b/unsupported/test/CMakeLists.txt @@ -158,7 +158,7 @@ if(CUDA_FOUND) if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") set(CUDA_NVCC_FLAGS "-ccbin /usr/bin/clang" CACHE STRING "nvcc flags" FORCE) endif() - set(CUDA_NVCC_FLAGS "-std=c++11 --relaxed-constexpr -arch compute_30") + set(CUDA_NVCC_FLAGS "-std=c++11 --relaxed-constexpr -arch compute_30 -Xcudafe \"--diag_suppress 2651 --diag_suppress 2653\"") cuda_include_directories("${CMAKE_CURRENT_BINARY_DIR}" "${CUDA_TOOLKIT_ROOT_DIR}/include") set(EIGEN_ADD_TEST_FILENAME_EXTENSION "cu") |