File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,28 @@ macro(create_hip_tests)
144144 add_custom_target (test -kokkos COMMAND "ctest" WORKING_DIRECTORY "${BINARY_DIR} " DEPENDS build -kokkos)
145145 endif ()
146146
147+ if (EXTERNAL_HIP_TESTS_GINKGO)
148+ set (EXTERNAL_HIP_TESTS_GINKGO_TAG "v1.9.0" CACHE STRING "Ginkgo tag to download and test" )
149+ ExternalProject_Add(TestGinkgoHIP
150+ GIT_REPOSITORY https://github.com/ginkgo-project/ginkgo.git
151+ GIT_TAG ${EXTERNAL_HIP_TESTS_GINKGO_TAG}
152+ CMAKE_ARGS -DGINKGO_BUILD_HIP=ON
153+ -DCMAKE_PREFIX_PATH=/opt/rocm
154+ -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
155+ -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
156+ -DGINKGO_BUILD_MPI=OFF
157+ -DCMAKE_HIP_COMPILER=${CMAKE_CXX_COMPILER}
158+ -DGINKGO_WITH_CCACHE=OFF
159+ -DGINKGO_BUILD_EXAMPLES=OFF
160+ INSTALL_COMMAND ""
161+ TEST_COMMAND ""
162+ )
163+
164+ add_custom_target (build -ginkgo DEPENDS TestGinkgoHIP)
165+ ExternalProject_Get_Property(TestGinkgoHIP BINARY_DIR)
166+ add_custom_target (test -ginkgo COMMAND "ctest" "-R hip" WORKING_DIRECTORY "${BINARY_DIR} " DEPENDS build -ginkgo)
167+ endif ()
168+
147169 add_custom_target (hip-tests-all DEPENDS hip-tests-simple
148170 COMMENT "Build all HIP tests." )
149171
You can’t perform that action at this time.
0 commit comments