Installing the OpenCL SDK from source git clone --recurse-submodules https://github.com/KhronosGroup/OpenCL-SDK.git mkdir OpenCL-SDK/build cd OpenCL-SDK/build cmake .. -DBUILD_DOCS=OFF \ -DBUILD_EXAMPLES=OFF \ -DBUILD_TESTING=OFF \ -DOPENCL_SDK_BUILD_SAMPLES=OFF \ -DOPENCL_SDK_TEST_SAMPLES=OFF cmake --build . --config Release cmake --install . --prefix /some/path Installing CLBlast: it may be found in your operating system's packages. If not, then installing from source: git clone https://github.com/CNugteren/CLBlast.git mkdir CLBlast/build cd CLBLast/build cmake .. -DBUILD_SHARED_LIBS=OFF -DTUNERS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON cmake --build . --config Release cmake --install . --prefix /some/path make LLAMA_CLBLAST=1