Skip to content

Commit 64b5a14

Browse files
committed
Set oneMath HIP_TARGETS
1 parent 2c79721 commit 64b5a14

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ggml/src/ggml-sycl/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ if (NOT oneMath_FOUND)
8787
set(ENABLE_MKLCPU_BACKEND False)
8888
set(ENABLE_MKLGPU_BACKEND False)
8989
set(ENABLE_ROCBLAS_BACKEND True)
90+
# Ensure setting a string variable here is not overriden by oneMath CACHE variables
91+
cmake_policy(SET CMP0126 NEW)
92+
# Setting the device architecture is only needed and useful for AMD devices in oneMath
93+
set(HIP_TARGETS ${GGML_SYCL_DEVICE_ARCH} CACHE STRING "oneMath HIP target" FORCE)
9094
endif()
9195
FetchContent_Declare(
9296
ONEMATH

0 commit comments

Comments
 (0)