@@ -77,6 +77,8 @@ if(THEROCK_ENABLE_HIP_RUNTIME)
77
77
##############################################################################
78
78
set (HIP_CLR_CMAKE_ARGS)
79
79
set (HIP_CLR_RUNTIME_DEPS)
80
+ set (_hip_subproject_names)
81
+
80
82
if (WIN32 )
81
83
# Windows CLR options
82
84
set (_compute_pal_dir "${THEROCK_ROCM_SYSTEMS_SOURCE_DIR} /shared/amdgpu-windows-interop" )
@@ -133,6 +135,31 @@ if(THEROCK_ENABLE_HIP_RUNTIME)
133
135
therock_cmake_subproject_provide_package(hip-clr hip-lang lib/cmake/hip-lang)
134
136
therock_cmake_subproject_provide_package(hip-clr hiprtc lib/cmake/hiprtc)
135
137
therock_cmake_subproject_activate(hip-clr)
138
+ list (APPEND _hip_subproject_names hip-clr)
139
+
140
+ if (THEROCK_BUILD_TESTING)
141
+ therock_cmake_subproject_declare(hip-tests
142
+ USE_DIST_AMDGPU_TARGETS
143
+ EXTERNAL_SOURCE_DIR "${THEROCK_ROCM_SYSTEMS_SOURCE_DIR} /projects/hip-tests"
144
+ BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR} /hip-tests"
145
+ CMAKE_LISTS_RELPATH "catch"
146
+ LOGICAL_TARGET_NAME build_tests
147
+ BACKGROUND_BUILD
148
+ CMAKE_ARGS
149
+ "-DHIP_PLATFORM=amd"
150
+ "-DROCM_PATH="
151
+ COMPILER_TOOLCHAIN
152
+ amd-hip
153
+ BUILD_DEPS
154
+ rocm-cmake
155
+ therock-catch2
156
+ RUNTIME_DEPS
157
+ hip-clr
158
+ )
159
+ therock_cmake_subproject_glob_c_sources(hip-tests SUBDIRS .)
160
+ therock_cmake_subproject_activate(hip-tests)
161
+ list (APPEND _hip_subproject_names hip-tests)
162
+ endif (THEROCK_BUILD_TESTING)
136
163
137
164
therock_provide_artifact(core-hip
138
165
TARGET_NEUTRAL
@@ -144,7 +171,7 @@ if(THEROCK_ENABLE_HIP_RUNTIME)
144
171
lib
145
172
run
146
173
SUBPROJECT_DEPS
147
- hip-clr
174
+ ${_hip_subproject_names}
148
175
)
149
176
150
177
therock_test_validate_shared_lib(
@@ -155,23 +182,6 @@ if(THEROCK_ENABLE_HIP_RUNTIME)
155
182
libhiprtc.so
156
183
)
157
184
158
- if (THEROCK_BUILD_TESTING)
159
- therock_cmake_subproject_declare(hip-tests
160
- USE_DIST_AMDGPU_TARGETS
161
- EXTERNAL_SOURCE_DIR "${THEROCK_ROCM_SYSTEMS_SOURCE_DIR} /projects/hip-tests"
162
- BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR} /hip-tests"
163
- CMAKE_LISTS_RELPATH "catch"
164
- LOGICAL_TARGET_NAME build_tests
165
- BACKGROUND_BUILD
166
- CMAKE_ARGS
167
- "-DHIP_PLATFORM=amd"
168
- RUNTIME_DEPS
169
- hip-clr
170
- )
171
- therock_cmake_subproject_glob_c_sources(hip-tests SUBDIRS .)
172
- therock_cmake_subproject_activate(hip-tests)
173
- endif (THEROCK_BUILD_TESTING)
174
-
175
185
if (WIN32 )
176
186
##############################################################################
177
187
# hipInfo (from hip-tests)
0 commit comments