mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Renamed the EIGEN_TEST_NVCC cmake option into EIGEN_TEST_CUDA per the discussion in bug #1173.
This commit is contained in:
@@ -315,7 +315,7 @@ macro(ei_testing_print_summary)
|
|||||||
message(STATUS "C++11: OFF")
|
message(STATUS "C++11: OFF")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(EIGEN_TEST_NVCC)
|
if(EIGEN_TEST_CUDA)
|
||||||
message(STATUS "CUDA: ON")
|
message(STATUS "CUDA: ON")
|
||||||
else()
|
else()
|
||||||
message(STATUS "CUDA: OFF")
|
message(STATUS "CUDA: OFF")
|
||||||
|
|||||||
@@ -325,9 +325,9 @@ if(EIGEN_TEST_EIGEN2)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
# NVCC unit tests
|
# CUDA unit tests
|
||||||
option(EIGEN_TEST_NVCC "Enable NVCC support in unit tests" OFF)
|
option(EIGEN_TEST_CUDA "Enable CUDA support in unit tests" OFF)
|
||||||
if(EIGEN_TEST_NVCC)
|
if(EIGEN_TEST_CUDA)
|
||||||
|
|
||||||
find_package(CUDA 5.0)
|
find_package(CUDA 5.0)
|
||||||
if(CUDA_FOUND)
|
if(CUDA_FOUND)
|
||||||
@@ -345,7 +345,7 @@ if(CUDA_FOUND)
|
|||||||
|
|
||||||
endif(CUDA_FOUND)
|
endif(CUDA_FOUND)
|
||||||
|
|
||||||
endif(EIGEN_TEST_NVCC)
|
endif(EIGEN_TEST_CUDA)
|
||||||
|
|
||||||
|
|
||||||
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/failtests)
|
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/failtests)
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ endif()
|
|||||||
|
|
||||||
# These tests needs nvcc
|
# These tests needs nvcc
|
||||||
find_package(CUDA 7.0)
|
find_package(CUDA 7.0)
|
||||||
if(CUDA_FOUND AND EIGEN_TEST_NVCC)
|
if(CUDA_FOUND AND EIGEN_TEST_CUDA)
|
||||||
# Make sure to compile without the -pedantic, -Wundef, -Wnon-virtual-dtor
|
# Make sure to compile without the -pedantic, -Wundef, -Wnon-virtual-dtor
|
||||||
# and -fno-check-new flags since they trigger thousands of compilation warnings
|
# and -fno-check-new flags since they trigger thousands of compilation warnings
|
||||||
# in the CUDA runtime
|
# in the CUDA runtime
|
||||||
|
|||||||
Reference in New Issue
Block a user