|
@@ -13,7 +13,7 @@ elseif(SUPPORTS_SYCL)
|
|
|
If you expected the oneAPI Release compiler, please install oneAPI & source it, like:
|
|
If you expected the oneAPI Release compiler, please install oneAPI & source it, like:
|
|
|
source /opt/intel/oneapi/setvars.sh")
|
|
source /opt/intel/oneapi/setvars.sh")
|
|
|
else()
|
|
else()
|
|
|
- message(FATAL_ERROR, "C++ compiler lacks SYCL support.")
|
|
|
|
|
|
|
+ message(FATAL_ERROR "C++ compiler lacks SYCL support.")
|
|
|
endif()
|
|
endif()
|
|
|
message(STATUS "SYCL found")
|
|
message(STATUS "SYCL found")
|
|
|
#todo: AOT
|
|
#todo: AOT
|
|
@@ -170,7 +170,7 @@ else()
|
|
|
target_compile_definitions(ggml-sycl PRIVATE GGML_SYCL_NVIDIA)
|
|
target_compile_definitions(ggml-sycl PRIVATE GGML_SYCL_NVIDIA)
|
|
|
elseif (GGML_SYCL_TARGET STREQUAL "AMD")
|
|
elseif (GGML_SYCL_TARGET STREQUAL "AMD")
|
|
|
if (NOT GGML_SYCL_DEVICE_ARCH)
|
|
if (NOT GGML_SYCL_DEVICE_ARCH)
|
|
|
- message(ERROR "Can't enable SYCL hip backend, GGML_SYCL_DEVICE_ARCH has not been set.")
|
|
|
|
|
|
|
+ message(FATAL_ERROR "Can't enable SYCL hip backend, GGML_SYCL_DEVICE_ARCH has not been set.")
|
|
|
endif()
|
|
endif()
|
|
|
target_link_libraries(ggml-sycl PRIVATE ONEMATH::onemath_blas_rocblas)
|
|
target_link_libraries(ggml-sycl PRIVATE ONEMATH::onemath_blas_rocblas)
|
|
|
target_compile_options(ggml-sycl PRIVATE "-fsycl-targets=amdgcn-amd-amdhsa")
|
|
target_compile_options(ggml-sycl PRIVATE "-fsycl-targets=amdgcn-amd-amdhsa")
|