mirror of
https://github.com/ggml-org/whisper.cpp.git
synced 2026-10-19 07:08:57 +02:00
BLAS : Document AOCL-BLAS build and label the device AOCL-BLAS (llama/29640)
* BLAS : Document AOCL-BLAS build and label the device AOCL-BLAS * AOCL-Blas : Add an AOCL-BLAS Quick Start and drop the fixed version path * AOCL-BLAS doc : Note on ZenDNN
This commit is contained in:
@@ -84,10 +84,17 @@ if (BLAS_FOUND)
|
|||||||
add_compile_definitions(GGML_BLAS_USE_OPENBLAS)
|
add_compile_definitions(GGML_BLAS_USE_OPENBLAS)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Vendors with the BLIS API take GGML_BLAS_USE_BLIS (blis.h, bli_thread_set_num_threads).
|
||||||
|
# AOCL also takes GGML_BLAS_USE_AOCL so its device label is AOCL-BLAS, not BLIS.
|
||||||
|
# Neither flag selects the linked library; FindBLAS does that from GGML_BLAS_VENDOR.
|
||||||
if ("${GGML_BLAS_VENDOR}" MATCHES "FLAME" OR "${GGML_BLAS_VENDOR}" MATCHES "AOCL" OR "${GGML_BLAS_VENDOR}" MATCHES "AOCL_mt")
|
if ("${GGML_BLAS_VENDOR}" MATCHES "FLAME" OR "${GGML_BLAS_VENDOR}" MATCHES "AOCL" OR "${GGML_BLAS_VENDOR}" MATCHES "AOCL_mt")
|
||||||
add_compile_definitions(GGML_BLAS_USE_BLIS)
|
add_compile_definitions(GGML_BLAS_USE_BLIS)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if ("${GGML_BLAS_VENDOR}" MATCHES "AOCL" OR "${GGML_BLAS_VENDOR}" MATCHES "AOCL_mt")
|
||||||
|
add_compile_definitions(GGML_BLAS_USE_AOCL)
|
||||||
|
endif()
|
||||||
|
|
||||||
if ("${GGML_BLAS_VENDOR}" MATCHES "NVPL")
|
if ("${GGML_BLAS_VENDOR}" MATCHES "NVPL")
|
||||||
add_compile_definitions(GGML_BLAS_USE_NVPL)
|
add_compile_definitions(GGML_BLAS_USE_NVPL)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -330,6 +330,8 @@ static const char * ggml_backend_blas_device_get_description(ggml_backend_dev_t
|
|||||||
return "Accelerate";
|
return "Accelerate";
|
||||||
#elif defined(GGML_BLAS_USE_MKL)
|
#elif defined(GGML_BLAS_USE_MKL)
|
||||||
return "MKL";
|
return "MKL";
|
||||||
|
#elif defined(GGML_BLAS_USE_AOCL)
|
||||||
|
return "AOCL-BLAS";
|
||||||
#elif defined(GGML_BLAS_USE_BLIS)
|
#elif defined(GGML_BLAS_USE_BLIS)
|
||||||
return "BLIS";
|
return "BLIS";
|
||||||
#elif defined(GGML_BLAS_USE_NVPL)
|
#elif defined(GGML_BLAS_USE_NVPL)
|
||||||
|
|||||||
Reference in New Issue
Block a user