Skip to content

Commit

Permalink
Merge pull request ornladios#4345 from anagainaru/kokkos-testing
Browse files Browse the repository at this point in the history
Updating the testing for the GPU backend
  • Loading branch information
anagainaru authored Sep 22, 2024
2 parents 532747a + b8ffbb9 commit cae0a45
Show file tree
Hide file tree
Showing 3 changed files with 541 additions and 481 deletions.
23 changes: 4 additions & 19 deletions testing/adios2/engine/bp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -279,27 +279,12 @@ gtest_add_tests_helper(StepsInSituLocalArray MPI_ALLOW BP Engine.BP. .FileStream
WORKING_DIRECTORY ${FS_DIR} EXTRA_ARGS "FileStream"
)

if(ADIOS2_HAVE_CUDA OR ADIOS2_HAVE_Kokkos_CUDA)
gtest_add_tests_helper(WriteReadCuda MPI_ALLOW BP Engine.BP. .BP4
WORKING_DIRECTORY ${BP4_DIR} EXTRA_ARGS "BP4"
)
gtest_add_tests_helper(SelectionsCuda MPI_ALLOW BP Engine.BP. .BP4
WORKING_DIRECTORY ${BP4_DIR} EXTRA_ARGS "BP4"
)
gtest_add_tests_helper(WriteReadCuda MPI_ALLOW BP Engine.BP. .BP5
if(ADIOS2_HAVE_Kokkos)
gtest_add_tests_helper(WriteReadKokkos MPI_ALLOW BP Engine.BP. .BP5
WORKING_DIRECTORY ${BP5_DIR} EXTRA_ARGS "BP5"
)
gtest_add_tests_helper(SelectionsCuda MPI_ALLOW BP Engine.BP. .BP5
WORKING_DIRECTORY ${BP5_DIR} EXTRA_ARGS "BP5"
)

foreach(tgt ${Test.Engine.BP.WriteReadCuda-TARGETS})
target_sources(${tgt} PRIVATE operations/CudaRoutines.cu)
target_link_libraries(${tgt} CUDA::cudart)
endforeach()

foreach(tgt ${Test.Engine.BP.SelectionsCuda-TARGETS})
target_sources(${tgt} PRIVATE operations/CudaRoutines.cu)
target_link_libraries(${tgt} CUDA::cudart)
foreach(tgt ${Test.Engine.BP.WriteReadKokkos-TARGETS})
target_link_libraries(${tgt} Kokkos::kokkos)
endforeach()
endif()
Loading

0 comments on commit cae0a45

Please sign in to comment.