mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
Gate all the CUDA tests under the EIGEN_TEST_NVCC option
This commit is contained in:
parent
2db4a04827
commit
bb0e73c191
@ -309,6 +309,12 @@ macro(ei_testing_print_summary)
|
||||
message(STATUS "C++11: OFF")
|
||||
endif()
|
||||
|
||||
if(EIGEN_TEST_NVCC)
|
||||
message(STATUS "CUDA: ON")
|
||||
else()
|
||||
message(STATUS "CUDA: OFF")
|
||||
endif()
|
||||
|
||||
endif() # vectorization / alignment options
|
||||
|
||||
message(STATUS "\n${EIGEN_TESTING_SUMMARY}")
|
||||
|
@ -174,7 +174,7 @@ endif()
|
||||
|
||||
# These tests needs nvcc
|
||||
find_package(CUDA 7.0)
|
||||
if(CUDA_FOUND)
|
||||
if(CUDA_FOUND AND EIGEN_TEST_NVCC)
|
||||
# Mke sure to compile without the -pedantic and -Wundef flags since they trigger thousands of compilation warnings in the CUDA runtime
|
||||
string(REPLACE "-pedantic" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||
string(REPLACE "-Wundef" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user