-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wip] compile tests with device kernels
- Loading branch information
1 parent
0a7c301
commit 7285f08
Showing
3 changed files
with
124 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 14 additions & 2 deletions
16
examples/batched-matrix-free-templated/test/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
ginkgo_create_test(tensor NO_GTEST_MAIN ADDITIONAL_LIBRARIES Kokkos::kokkos ginkgo_gtest_main_kokkos) | ||
target_link_libraries(test_tensor PRIVATE Kokkos::kokkos) | ||
ginkgo_create_common_and_reference_test(tensor NO_GTEST_MAIN ADDITIONAL_LIBRARIES Kokkos::kokkos ginkgo_gtest_main_kokkos) | ||
|
||
if(GINKGO_BUILD_HIP) | ||
target_link_libraries(test_tensor_hip PRIVATE Kokkos::kokkos) | ||
endif () | ||
if(GINKGO_BUILD_CUDA) | ||
target_link_libraries(test_tensor_cuda PRIVATE Kokkos::kokkos) | ||
endif () | ||
if(GINKGO_BUILD_OMP) | ||
target_link_libraries(test_tensor_omp PRIVATE Kokkos::kokkos) | ||
endif () | ||
if(GINKGO_BUILD_REFERENCE) | ||
target_link_libraries(test_tensor_reference PRIVATE Kokkos::kokkos) | ||
endif () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters