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 \

  1. DBUILD_EXAMPLES=OFF \
  2. DBUILD_TESTING=OFF \
  3. DOPENCL_SDK_BUILD_SAMPLES=OFF \
  4. 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