Llamacpp
Llamacpp
git
cd CLBlast
rm -rf build
mkdir build
cd build
make clean
cmake .. -DOPENCL_INCLUDE_DIRS=/opt/intel/oneapi/compiler/latest/linux/include/sycl
-DOPENCL_LIBRARIES=/opt/intel/oneapi/compiler/latest/linux/lib/libOpenCL.so -
DCMAKE_EXE_LINKER_FLAGS="-Wl,-rpath,/opt/intel/oneapi/compiler/latest/linux/
compiler/lib/intel64_lin" -DCMAKE_INSTALL_PREFIX=./Release -DBUILD_SHARED_LIBS=OFF
-DTUNERS=OFF
make
make install
cd ~/wrkdir
mkdir llama.cpp/build
cd llama.cpp/build
export LD_LIBRARY_PATH=/opt/intel/oneapi/compiler/latest/linux/include/:
$LD_LIBRARY_PATH
make clean
cmake .. -DLLAMA_CLBLAST=ON
-DCLBlast_DIR=/home/imran/wrkdir/CLBlast/build/Release/lib/cmake/CLBlast -
DCMAKE_EXE_LINKER_FLAGS="-Wl,-rpath,/opt/intel/oneapi/compiler/latest/linux/
compiler/lib/intel64_lin"
cmake --build . --config Release
export LD_LIBRARY_PATH=/opt/intel/oneapi/compiler/latest/linux/compiler/lib/
intel64_lin:$LD_LIBRARY_PATH
download llama-2-13b.ggmlv3.q4_0.bin
from https://huggingface.co/TheBloke/Llama-2-13B-GGML/tree/main
set(CLBlast_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/../../../include")
set(CLBlast_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/../../../lib/libclblast.a")