This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
forked from intel/compute-runtime
-
Notifications
You must be signed in to change notification settings - Fork 3
Neo on Arch Linux
Jacek Danecki edited this page Mar 12, 2019
·
5 revisions
pacman -S llvm clang
pacman -S intel-gmmlib
export cclang_commit_id=6257ffe137a2c8df95a3f3b39fa477aa8ed15837
export spirv_id=8ce6443ec1020183eafaeb3410c7d1edc2355dc3
wget --no-check-certificate https://github.com/intel/opencl-clang/archive/${cclang_commit_id}/opencl-clang.tar.gz
wget --no-check-certificate https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/${spirv_id}/spirv-llvm-translator.tar.gz
mkdir common_clang llvm-spirv
tar xzf opencl-clang.tar.gz -C common_clang --strip-components=1
tar xzf spirv-llvm-translator.tar.gz -C llvm-spirv --strip-components=1
mkdir build_spirv
cd build_spirv
cmake ../llvm-spirv -DCMAKE_INSTALL_PREFIX=install -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release
make llvm-spirv -j`nproc`
make install
cd ..
mkdir build_opencl_clang
cd build_opencl_clang
cmake -DCOMMON_CLANG_LIBRARY_NAME=opencl_clang -DLLVMSPIRV_INCLUDED_IN_LLVM=OFF -DSPIRV_TRANSLATOR_DIR=../build_spirv/install -DLLVM_NO_DEAD_STRIP=ON -DCMAKE_INSTALL_PREFIX:PATH='/usr' ../common_clang
make -j`nproc` all
sudo make install
cd ..
export igc_commit_id=e8c547979dcc2113be74471479b7e630fff5db84
wget --no-check-certificate https://github.com/intel/intel-graphics-compiler/archive/${igc_commit_id}/igc.tar.gz
mkdir igc
tar xzf igc.tar.gz -C igc --strip-components=1
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DIGC_OPTION__OUTPUT_DIR=../igc-install/Release -DVME_TYPES_DEFINED=FALSE -DCMAKE_INSTALL_PREFIX:PATH='/usr' -Wno-dev ../igc
make -j`nproc`
sudo make install
cd ..
export neo_commit_id=79d0878e642d5759bfebb3017477dfe1b525c9ee
wget --no-check-certificate https://github.com/intel/compute-runtime/archive/${neo_commit_id}/neo.tar.gz
mkdir neo
tar xzf neo.tar.gz -C neo --strip-components=1
mkdir build-neo
cd build-neo
cmake -DCMAKE_BUILD_TYPE=Release -Wno-dev -DCMAKE_INSTALL_PREFIX:PATH='/usr' ../neo
make -j`nproc`
sudo make install