char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
511f9c137
char/aliceai-t5-moe
1find_package ( OpenVINO REQUIRED COMPONENTS Runtime Threading ) 2find_package ( OpenCL REQUIRED ) 3 4message ( STATUS "Found OpenVINO: ${ OpenVINO_DIR } (found version \" ${ OpenVINO_VERSION } \")" ) 5 6file ( GLOB_RECURSE GGML_HEADERS_OPENVINO "*.h" "*.hpp" ) 7file ( GLOB_RECURSE GGML_SOURCES_OPENVINO "*.cpp" ) 8 9ggml_add_backend_library ( ggml-openvino 10${ GGML_SOURCES_OPENVINO } 11${ GGML_HEADERS_OPENVINO } 12) 13 14target_link_libraries ( ggml-openvino PRIVATE openvino::runtime openvino::threading OpenCL::OpenCL ) 15 16if ( GGML_OPENVINO) 17if ( CMAKE_SYSTEM_PROCESSORSTREQUAL "aarch64" ) 18elseif ( CMAKE_SYSTEM_PROCESSORSTREQUAL "x86_64" OR CMAKE_SYSTEM_PROCESSORSTREQUAL "amd64" OR CMAKE_SYSTEM_PROCESSORSTREQUAL "AMD64" ) 19else () 20message ( FATAL_ERROR "OpenVINO: OpenVINO toolkit supports x86-64 and arm64 but not ${ CMAKE_SYSTEM_PROCESSOR } " ) 21endif () 22endif ()