@@ -12,22 +12,13 @@ set(REDUCETYPES ReduceSum ReduceMin ReduceMax ReduceMaxLoc ReduceMinLoc ReduceMa
1212
1313set (DATATYPES CoreReductionDataTypeList)
1414
15- #
16- # If building a subset of openmp target tests, remove the back-end from
17- # from the list of tests to generate here.
18- #
19- if (RAJA_ENABLE_TARGET_OPENMP)
20- if (RAJA_TEST_OPENMP_TARGET_SUBSET)
21- list (REMOVE_ITEM FORALL_BACKENDS OpenMPTarget)
22- endif ()
23- endif ()
24-
2515
2616#
2717# Generate core reduction tests for each enabled RAJA back-end
2818#
2919# Note: FORALL_BACKENDS is defined in ../CMakeLists.txt
3020#
21+
3122foreach ( BACKEND ${FORALL_BACKENDS} )
3223 foreach ( REDUCETYPE ${REDUCETYPES} )
3324 configure_file ( test -forall-basic-expt-reduce.cpp.in
@@ -86,14 +77,11 @@ set(REDUCETYPES ReduceSum ReduceMin ReduceMax ReduceMinLoc ReduceMaxLoc)
8677
8778set (DATATYPES CoreReductionDataTypeList)
8879
89- #
90- # If building a subset of openmp target tests, remove the back-end from
91- # from the list of tests to generate here.
92- #
80+ ##
81+ ## Do not create OpenMP Target tests for "traditional" RAJA reduction interface
82+ ##
9383if (RAJA_ENABLE_TARGET_OPENMP)
94- if (RAJA_TEST_OPENMP_TARGET_SUBSET)
95- list (REMOVE_ITEM FORALL_BACKENDS OpenMPTarget)
96- endif ()
84+ list (REMOVE_ITEM FORALL_BACKENDS OpenMPTarget)
9785endif ()
9886
9987#
@@ -160,30 +148,3 @@ endforeach()
160148
161149unset ( DATATYPES )
162150unset ( REDUCETYPES )
163-
164-
165- #
166- # If building a subset of openmp target tests, add tests to build here.
167- #
168- if (RAJA_ENABLE_TARGET_OPENMP)
169- if (RAJA_TEST_OPENMP_TARGET_SUBSET)
170-
171- set (BACKEND OpenMPTarget)
172- set (REDUCETYPES ReduceSum)
173- set (DATATYPES CoreReductionDataTypeList)
174-
175- foreach ( REDUCETYPE ${REDUCETYPES} )
176- configure_file ( test -forall-basic-reduce.cpp.in
177- test -forall-basic-${REDUCETYPE} -${BACKEND} .cpp )
178- raja_add_test( NAME test -forall-basic-${REDUCETYPE} -${BACKEND}
179- SOURCES ${CMAKE_CURRENT_BINARY_DIR} /test -forall-basic-${REDUCETYPE} -${BACKEND} .cpp )
180-
181- target_include_directories (test -forall-basic-${REDUCETYPE} -${BACKEND} .exe
182- PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} /tests)
183- endforeach ()
184-
185- endif ()
186- endif ()
187-
188- unset ( DATATYPES )
189- unset ( REDUCETYPES )
0 commit comments