mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
Move build instructions to documentation directory
Change-Id: I6e862c4e056fb9add7cb9f926d724456a802f6d0
This commit is contained in:

committed by
sys_ocldev

parent
1e422813b8
commit
c5517459a7
74
README.md
74
README.md
@ -26,78 +26,6 @@ Google Mock v1.7.0 - https://github.com/google/googlemock
|
||||
Khronos OpenCL Headers - https://github.com/KhronosGroup/OpenCL-Headers
|
||||
LibDRM - https://anongit.freedesktop.org/git/mesa/drm.git
|
||||
|
||||
## Building
|
||||
|
||||
*Instructions assume clean Ubuntu 16.04.3 LTS installation.*
|
||||
|
||||
1. Download & install required dependencies
|
||||
|
||||
Example:
|
||||
|
||||
```shell
|
||||
sudo apt-get install ccache flex bison clang-4.0 cmake g++ git patch zlib1g-dev
|
||||
```
|
||||
|
||||
2. Create workspace folder and download sources:
|
||||
```
|
||||
workspace
|
||||
|- clang_source https://github.com/llvm-mirror/clang
|
||||
|- common_clang https://github.com/intel/opencl-clang
|
||||
|- llvm_patches https://github.com/intel/llvm-patches
|
||||
|- llvm_source https://github.com/llvm-mirror/llvm
|
||||
|- gmmlib https://github.com/intel/gmmlib
|
||||
|- gmock https://github.com/google/googlemock
|
||||
|- gtest https://github.com/google/googletest
|
||||
|- igc https://github.com/intel/intel-graphics-compiler
|
||||
|- khronos https://github.com/KhronosGroup/OpenCL-Headers
|
||||
|- libdrm https://anongit.freedesktop.org/git/mesa/drm.git
|
||||
|- neo https://github.com/intel/compute-runtime
|
||||
```
|
||||
|
||||
Example:
|
||||
|
||||
```shell
|
||||
git clone -b release_40 https://github.com/llvm-mirror/clang clang_source
|
||||
git clone https://github.com/intel/opencl-clang common_clang
|
||||
git clone https://github.com/intel/llvm-patches llvm_patches
|
||||
git clone -b release_40 https://github.com/llvm-mirror/llvm llvm_source
|
||||
git clone https://github.com/intel/gmmlib gmmlib
|
||||
git clone -b release-1.7.0 https://github.com/google/googlemock gmock
|
||||
git clone -b release-1.7.0 https://github.com/google/googletest gtest
|
||||
git clone https://github.com/intel/intel-graphics-compiler igc
|
||||
git clone https://github.com/KhronosGroup/OpenCL-Headers khronos
|
||||
git clone https://anongit.freedesktop.org/git/mesa/drm.git libdrm
|
||||
git clone https://github.com/intel/compute-runtime neo
|
||||
```
|
||||
|
||||
Note: Instructions for compiling *Intel Graphics Compiler* copied from https://github.com/intel/intel-graphics-compiler/blob/master/README.md
|
||||
|
||||
3. Create folder for build:
|
||||
|
||||
Example:
|
||||
|
||||
```shell
|
||||
mkdir build
|
||||
```
|
||||
|
||||
4. Build complete driver:
|
||||
|
||||
```shell
|
||||
cd build
|
||||
cmake -DBUILD_TYPE=Release -DCMAKE_BUILD_TYPE=Release ../neo
|
||||
make -j`nproc` package
|
||||
```
|
||||
|
||||
### Install
|
||||
|
||||
To install OpenCL driver please use deb package generated during build
|
||||
|
||||
Example:
|
||||
|
||||
```shell
|
||||
sudo dpkg -i intel-opencl-1.0-0.x86_64-igdrcl.deb
|
||||
```
|
||||
|
||||
## Supported Platforms
|
||||
|
||||
Intel Core Processors with Gen8 graphics devices (formerly Broadwell) - OpenCL 2.0
|
||||
@ -144,6 +72,8 @@ The driver has the following functional delta compared to previously released dr
|
||||
* OpenGL sharing with MESA driver
|
||||
* CL_MEM_SVM_FINE_GRAIN_BUFFER (if using unpatched i915)
|
||||
|
||||
## See also
|
||||
* Building and installation: https://github.com/intel/compute-runtime/blob/master/documentation/BUILD.md
|
||||
|
||||
___(*) Other names and brands my be claimed as property of others.___
|
||||
|
||||
|
76
documentation/BUILD.md
Normal file
76
documentation/BUILD.md
Normal file
@ -0,0 +1,76 @@
|
||||
# Intel(R) Graphics Compute Runtime for OpenCL(TM)
|
||||
|
||||
## Building
|
||||
|
||||
*Instructions assume clean Ubuntu* 16.04.3 LTS installation.*
|
||||
|
||||
1. Download & install required dependencies
|
||||
|
||||
Example:
|
||||
|
||||
```shell
|
||||
sudo apt-get install ccache flex bison clang-4.0 cmake g++ git patch zlib1g-dev
|
||||
```
|
||||
|
||||
2. Create workspace folder and download sources:
|
||||
```
|
||||
workspace
|
||||
|- clang_source https://github.com/llvm-mirror/clang
|
||||
|- common_clang https://github.com/intel/opencl-clang
|
||||
|- llvm_patches https://github.com/intel/llvm-patches
|
||||
|- llvm_source https://github.com/llvm-mirror/llvm
|
||||
|- gmmlib https://github.com/intel/gmmlib
|
||||
|- gmock https://github.com/google/googlemock
|
||||
|- gtest https://github.com/google/googletest
|
||||
|- igc https://github.com/intel/intel-graphics-compiler
|
||||
|- khronos https://github.com/KhronosGroup/OpenCL-Headers
|
||||
|- libdrm https://anongit.freedesktop.org/git/mesa/drm.git
|
||||
|- neo https://github.com/intel/compute-runtime
|
||||
```
|
||||
|
||||
Example:
|
||||
|
||||
```shell
|
||||
git clone -b release_40 https://github.com/llvm-mirror/clang clang_source
|
||||
git clone https://github.com/intel/opencl-clang common_clang
|
||||
git clone https://github.com/intel/llvm-patches llvm_patches
|
||||
git clone -b release_40 https://github.com/llvm-mirror/llvm llvm_source
|
||||
git clone https://github.com/intel/gmmlib gmmlib
|
||||
git clone -b release-1.7.0 https://github.com/google/googlemock gmock
|
||||
git clone -b release-1.7.0 https://github.com/google/googletest gtest
|
||||
git clone https://github.com/intel/intel-graphics-compiler igc
|
||||
git clone https://github.com/KhronosGroup/OpenCL-Headers khronos
|
||||
git clone https://anongit.freedesktop.org/git/mesa/drm.git libdrm
|
||||
git clone https://github.com/intel/compute-runtime neo
|
||||
```
|
||||
|
||||
Note: Instructions for compiling *Intel Graphics Compiler* copied from https://github.com/intel/intel-graphics-compiler/blob/master/README.md
|
||||
|
||||
3. Create folder for build:
|
||||
|
||||
Example:
|
||||
|
||||
```shell
|
||||
mkdir build
|
||||
```
|
||||
|
||||
4. Build complete driver:
|
||||
|
||||
```shell
|
||||
cd build
|
||||
cmake -DBUILD_TYPE=Release -DCMAKE_BUILD_TYPE=Release ../neo
|
||||
make -j`nproc` package
|
||||
```
|
||||
|
||||
## Install
|
||||
|
||||
To install OpenCL driver please use deb package generated during build
|
||||
|
||||
Example:
|
||||
|
||||
```shell
|
||||
sudo dpkg -i intel-opencl-1.0-0.x86_64-igdrcl.deb
|
||||
```
|
||||
|
||||
___(*) Other names and brands my be claimed as property of others.___
|
||||
|
Reference in New Issue
Block a user