Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 12f01fc

Browse files
authored
If OpenACC enabled, run tests on GPU (#108)
1 parent 9b88683 commit 12f01fc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/integration/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,13 @@ set(COMMON_ARGS "--tstop 100. --celsius 6.3 -mpi")
2929
set(RING_DATASET_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ring")
3030
set(RING_COMMON_ARGS "--datpath ${RING_DATASET_DIR} ${COMMON_ARGS}")
3131
set(RING_GAP_COMMON_ARGS "--datpath ${CMAKE_CURRENT_SOURCE_DIR}/ring_gap ${COMMON_ARGS}")
32-
set(PERMUTE1_ARGS "--cell-permute 1 --nwarp 8")
33-
set(PERMUTE2_ARGS "--cell-permute 2 --nwarp 16")
32+
if(ENABLE_OPENACC)
33+
set(PERMUTE1_ARGS "--cell-permute 1 --nwarp 8 --gpu")
34+
set(PERMUTE2_ARGS "--cell-permute 2 --nwarp 16 --gpu")
35+
else(ENABLE_OPENACC)
36+
set(PERMUTE1_ARGS "--cell-permute 1 --nwarp 8")
37+
set(PERMUTE2_ARGS "--cell-permute 2 --nwarp 16")
38+
endif()
3439

3540
# List of tests with arguments
3641
set(TEST_CASE_ARGS

0 commit comments

Comments
 (0)