Skip to content

Commit b858ae2

Browse files
Remove unnecessary HIP_TARGETS validation in CMake
1 parent 5bca529 commit b858ae2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,13 @@ if ("x${DPNP_SYCL_TARGETS}" STREQUAL "x")
103103
else()
104104
set(_dpnp_sycl_targets "amdgcn-amd-amdhsa,spir64-unknown-unknown")
105105
endif()
106-
elseif (DEFINED HIP_TARGETS AND "x${HIP_TARGETS}" STREQUAL "x")
107-
message(FATAL_ERROR "HIP_TARGETS must be specified when using HIP backend")
108106
endif()
109107
else()
110108
set(_dpnp_sycl_targets ${DPNP_SYCL_TARGETS})
111109

112110
if (NOT "x${HIP_TARGETS}" STREQUAL "x")
113111
set(_dpnp_amd_targets ${HIP_TARGETS})
114112
set(_use_onemkl_interfaces_hip ON)
115-
elseif (DEFINED HIP_TARGETS AND "x${HIP_TARGETS}" STREQUAL "x")
116-
message(FATAL_ERROR "HIP_TARGETS must be specified when using HIP backend")
117113
endif()
118114
endif()
119115

0 commit comments

Comments
 (0)