Fix bug with CUDA impl and add CUDA tests

This commit is contained in:
Alex Selimov 2025-04-17 16:21:59 -04:00
parent 5155ec21aa
commit 4269333aa2
4 changed files with 328 additions and 2 deletions

View file

@ -0,0 +1,9 @@
include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})
add_executable(${NAME}_cuda_tests
test_potential.cu
)
target_link_libraries(${NAME}_cuda_tests gtest gtest_main)
target_link_libraries(${NAME}_cuda_tests ${CMAKE_PROJECT_NAME}_cuda_lib)
add_test(NAME ${NAME}CudaTests COMMAND ${CMAKE_BINARY_DIR}/tests/unit_tests/${NAME}_tests)