Skip to content

Commit 395871e

Browse files
Enable onemkl_interfaces when DPNP_SYCL_TARGETS match amd or cuda
1 parent 0877a32 commit 395871e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,13 @@ if ("x${DPNP_SYCL_TARGETS}" STREQUAL "x")
107107
else()
108108
set(_dpnp_sycl_targets ${DPNP_SYCL_TARGETS})
109109

110-
if (DPNP_SYCL_TARGETS MATCHES "nvptx64-nvidia-cuda")
110+
if (${DPNP_SYCL_TARGETS} MATCHES "nvptx64-nvidia-cuda")
111+
set(_use_onemkl_interfaces ON)
111112
set(_use_onemkl_interfaces_cuda ON)
112113
endif()
113114

114-
if (DPNP_SYCL_TARGETS MATCHES "amdgcn-amd-amdhsa")
115+
if (${DPNP_SYCL_TARGETS} MATCHES "amdgcn-amd-amdhsa")
116+
set(_use_onemkl_interfaces ON)
115117
set(_use_onemkl_interfaces_hip ON)
116118

117119
if (NOT "x${HIP_TARGETS}" STREQUAL "x")

0 commit comments

Comments
 (0)