File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -106,13 +106,19 @@ if ("x${DPNP_SYCL_TARGETS}" STREQUAL "x")
106106 set (_use_onemkl_interfaces_cuda ON )
107107 endif ()
108108
109- if (NOT "x${HIP_TARGETS} " STREQUAL "x" )
110- set (_use_onemkl_interfaces_hip ON )
111-
112- if ("x${_dpnp_sycl_targets} " STREQUAL "x" )
113- set (_dpnp_sycl_targets "amd_gpu_${HIP_TARGETS} ,spir64-unknown-unknown" )
109+ if (HIP_TARGETS)
110+ if (HIP_TARGETS MATCHES "^gfx" )
111+ if ("x${_dpnp_sycl_targets} " STREQUAL "x" )
112+ set (_dpnp_sycl_targets "amd_gpu_${HIP_TARGETS} ,spir64-unknown-unknown" )
113+ else ()
114+ set (_dpnp_sycl_targets "amd_gpu_${HIP_TARGETS} ,${_dpnp_sycl_targets} " )
115+ endif ()
116+ set (_use_onemkl_interfaces_hip ON )
114117 else ()
115- set (_dpnp_sycl_targets "amd_gpu_${HIP_TARGETS} ,${_dpnp_sycl_targets} " )
118+ message (FATAL_ERROR
119+ "Invalid value for HIP_TARGETS: \" ${HIP_TARGETS} \" . "
120+ "Expected an architecture name starting with 'gfx', such as 'gfx90a' or 'gfx1030'."
121+ )
116122 endif ()
117123 endif ()
118124else ()
You can’t perform that action at this time.
0 commit comments