Spaces:
Running
Running
Kai Pastor
commited on
Commit
·
67baecc
1
Parent(s):
3c9a1d2
cmake : Fix broken CMake error messages (ggml/1252)
Browse files
ggml/src/ggml-blas/CMakeLists.txt
CHANGED
|
@@ -81,7 +81,7 @@ if (BLAS_FOUND)
|
|
| 81 |
target_link_libraries (ggml-blas PRIVATE ${BLAS_LIBRARIES})
|
| 82 |
target_include_directories(ggml-blas PRIVATE ${BLAS_INCLUDE_DIRS})
|
| 83 |
else()
|
| 84 |
-
message(
|
| 85 |
-
|
| 86 |
-
|
| 87 |
endif()
|
|
|
|
| 81 |
target_link_libraries (ggml-blas PRIVATE ${BLAS_LIBRARIES})
|
| 82 |
target_include_directories(ggml-blas PRIVATE ${BLAS_INCLUDE_DIRS})
|
| 83 |
else()
|
| 84 |
+
message(FATAL_ERROR "BLAS not found, please refer to "
|
| 85 |
+
"https://cmake.org/cmake/help/latest/module/FindBLAS.html#blas-lapack-vendors"
|
| 86 |
+
" to set correct GGML_BLAS_VENDOR")
|
| 87 |
endif()
|
ggml/src/ggml-sycl/CMakeLists.txt
CHANGED
|
@@ -13,7 +13,7 @@ elseif(SUPPORTS_SYCL)
|
|
| 13 |
If you expected the oneAPI Release compiler, please install oneAPI & source it, like:
|
| 14 |
source /opt/intel/oneapi/setvars.sh")
|
| 15 |
else()
|
| 16 |
-
message(FATAL_ERROR
|
| 17 |
endif()
|
| 18 |
message(STATUS "SYCL found")
|
| 19 |
#todo: AOT
|
|
@@ -170,7 +170,7 @@ else()
|
|
| 170 |
target_compile_definitions(ggml-sycl PRIVATE GGML_SYCL_NVIDIA)
|
| 171 |
elseif (GGML_SYCL_TARGET STREQUAL "AMD")
|
| 172 |
if (NOT GGML_SYCL_DEVICE_ARCH)
|
| 173 |
-
message(
|
| 174 |
endif()
|
| 175 |
target_link_libraries(ggml-sycl PRIVATE ONEMATH::onemath_blas_rocblas)
|
| 176 |
target_compile_options(ggml-sycl PRIVATE "-fsycl-targets=amdgcn-amd-amdhsa")
|
|
|
|
| 13 |
If you expected the oneAPI Release compiler, please install oneAPI & source it, like:
|
| 14 |
source /opt/intel/oneapi/setvars.sh")
|
| 15 |
else()
|
| 16 |
+
message(FATAL_ERROR "C++ compiler lacks SYCL support.")
|
| 17 |
endif()
|
| 18 |
message(STATUS "SYCL found")
|
| 19 |
#todo: AOT
|
|
|
|
| 170 |
target_compile_definitions(ggml-sycl PRIVATE GGML_SYCL_NVIDIA)
|
| 171 |
elseif (GGML_SYCL_TARGET STREQUAL "AMD")
|
| 172 |
if (NOT GGML_SYCL_DEVICE_ARCH)
|
| 173 |
+
message(FATAL_ERROR "Can't enable SYCL hip backend, GGML_SYCL_DEVICE_ARCH has not been set.")
|
| 174 |
endif()
|
| 175 |
target_link_libraries(ggml-sycl PRIVATE ONEMATH::onemath_blas_rocblas)
|
| 176 |
target_compile_options(ggml-sycl PRIVATE "-fsycl-targets=amdgcn-amd-amdhsa")
|