Add CUDA support
This commit is contained in:
parent
fbc34a0bdd
commit
80d3b6276e
7 changed files with 223 additions and 10 deletions
|
@ -10,4 +10,16 @@ if(NOT EXISTS ${GOOGLETEST_DIR})
|
|||
endif()
|
||||
|
||||
add_subdirectory(lib/googletest)
|
||||
add_subdirectory(unit_tests)
|
||||
add_subdirectory(unit_tests)
|
||||
|
||||
# Only run Cuda tests if cuda is available
|
||||
if (CMAKE_CUDA_COMPILER)
|
||||
set(CMAKE_CUDA_ARCHITECTURES 61)
|
||||
set(CUDA_SEPARABLE_COMPILATION ON)
|
||||
|
||||
add_subdirectory(cuda_unit_tests)
|
||||
message(STATUS "CUDA found. CUDA tests will be build")
|
||||
else()
|
||||
message(STATUS "CUDA not found. Skipping CUDA tests")
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue