llama.cpp/ggml/src/ggml-openvino
Viraj Wadhwa ffabe95e2a Rebase - Bring up to date and fix build process 2026-01-15 10:09:23 -08:00
..
CMakeLists.txt Rebase - Bring up to date and fix build process 2026-01-15 10:09:23 -08:00
README.md add OpenVINO frontend convert process steps 2026-01-15 10:05:41 -08:00
decoder.h Rebase - Bring up to date and fix build process 2026-01-15 10:09:23 -08:00
ggml-decoder.cpp Rebase - Bring up to date and fix build process 2026-01-15 10:09:23 -08:00
ggml-decoder.h Rebase - Bring up to date and fix build process 2026-01-15 10:09:23 -08:00
utils.cpp Rebase - Bring up to date and fix build process 2026-01-15 10:09:23 -08:00
utils.h Rebase - Bring up to date and fix build process 2026-01-15 10:09:23 -08:00

README.md

Instructions to Modify and Build ggml with OpenVINO

Step 1: Modify the Source Code

In order to change the frontend .so path to the path to .so file, you need to add path to the .so file in cmake compiler option:

  1. Open a terminal and navigate to the root directory of this repo.
  2. Run the following commands to configure:
    mkdir build
    cmake -B build -DGGML_OV_FRONTEND="${openvino_repo_dir}/bin/intel64/Release/libopenvino_ggml_frontend.so"
    

Where GGML_OV_FRONTEND should point to the path to libopenvino_ggml_frontend.so file.

Step 2: Build the Project

After modifying the source code, you need to build the project using CMake. Follow these steps:

  1. (Optional) Enable debug option for ggml-openvino, this will output dump of subgraph sent to OpenVINO, information after convert ggml_cgraph to GraphIterator, and calculation input value/output value of each OP:

     cmake -B build -DGGML_OPENVINO_DEBUG=ON
    
  2. Run the following commands to configure and build the project:

    cmake -B build -DGGML_OPENVINO=ON
    cmake --build build -j
    

This will configure the project with OpenVINO support and build it using multiple cores for faster compilation.