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
How to build Neo components
Jacek Danecki edited this page Apr 26, 2019
·
6 revisions
docker run -it --device /dev/dri:/dev/dri docker.io/ubuntu:16.04
apt-get update -y
apt-get install -y cmake g++ git pkg-config flex bison libz-dev python
cd /root
git clone https://github.com/intel/gmmlib.git
cd gmmlib
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j `nproc` package
dpkg -i intel-gmmlib_7.0.0_amd64-gmmlib.deb intel-gmmlib_7.0.0_amd64-gmmlib-devel.deb
cd /root
git clone -b release_70 https://github.com/llvm-mirror/llvm llvm_source
git clone -b release_70 https://github.com/llvm-mirror/clang llvm_source/tools/clang
git clone -b ocl-open-70 https://github.com/intel/opencl-clang llvm_source/projects/opencl-clang
git clone -b llvm_release_70 https://github.com/KhronosGroup/SPIRV-LLVM-Translator llvm_source/projects/llvm-spirv
git clone https://github.com/intel/llvm-patches llvm_patches
git clone https://github.com/intel/intel-graphics-compiler igc
cd opencl-clang
git checkout d29e1fa373f942165465f1d8b9708baf5a02e5e2
cd ..
cd igc
git checkout b0409b893508e55d9548a1d6658788e7cd9963bd
cd ..
mkdir build
cd build
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
cmake ../igc/IGC
make -j `nproc` package
dpkg -i intel-0.1.0-Linux-igc-core.deb intel-0.1.0-Linux-igc-opencl-devel.deb intel-0.1.0-Linux-igc-opencl.deb
ldconfig
cd /root
git clone https://github.com/intel/compute-runtime neo
mkdir build-neo
cd build-neo
cmake -DCMAKE_BUILD_TYPE=Release ../neo
make -j`nproc` package
dpkg -i intel-opencl_19.08.0_amd64-opencl.deb
dpkg -l intel*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=========================================-=========================-=========================-=======================================================================================
ii intel-gmmlib 7.0.0 amd64 Intel(R) Graphics Memory Management Library Package
ii intel-gmmlib-devel 7.0.0 amd64 Intel(R) Graphics Memory Management Library Package
ii intel-igc-core 0.1.0 amd64 Intel(R) Graphics Compiler for OpenCL(TM)
ii intel-igc-opencl 0.1.0 amd64 Intel(R) Graphics Compiler for OpenCL(TM)
ii intel-igc-opencl-devel 0.1.0 amd64 Intel(R) Graphics Compiler for OpenCL(TM)
ii intel-opencl 19.08.0 amd64 Intel OpenCL GPU driver
apt-get install clinfo
clinfo