You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of the incoming git operations will try to download and apply patches. For this purpose it is necessary to setup git credentials if they are not already in the git configuration:
As of now **OpenCL Clang** is still needed to be built and installed manually. Sources are available [here](https://github.com/intel/opencl-clang). You can use out-of-tree build method with LLVM and Clang preinstalled.
49
49
**VC Intrinsics** is a lightweight library that is built from sources with IGC and there is no package for it.
50
50
51
51
Installing LLVM, Clang, and OpenCL Clang components means you no longer have to download their sources alongside IGC, so the workspace tree in the next step may look like this:
These commands will set up a workspace with LLVM 15. If you wish to use any other version please refer to the [component revision table](#Revision-table)
If you want to use a specific IGC release, for example [v2.14.1](https://github.com/intel/intel-graphics-compiler/releases/tag/v2.14.1), do the following:
138
+
```shell
139
+
cd igc
140
+
git fetch --all --tags --prune
141
+
git checkout tags/v2.14.1 -b 2.14.1
136
142
```
143
+
After checkout you can name your new branch however you want, above is only an example.
144
+
To get a list of all releases go [here](https://github.com/intel/intel-graphics-compiler/releases).
137
145
138
146
2. Prepare workspace and build
139
147
@@ -143,24 +151,24 @@ If you are using [Build from sources](#build-from-sources) method IGC will autom
143
151
You can use following commands to build IGC:
144
152
145
153
```shell
146
-
$ cd<workspace>
147
-
$ mkdir build
148
-
$ cd build
149
-
$ cmake ../igc
150
-
$ make -j`nproc`
154
+
cd$IGC_WORKSPACE_DIR
155
+
mkdir build &&cd build
156
+
cmake ../igc
157
+
make -j`nproc`
151
158
```
152
159
153
160
3. Install IGC:
154
161
```shell
155
-
$ sudo make install
162
+
sudo make install
156
163
```
157
164
158
165
#### Additional notes on OpenCL LIT tests run
159
166
If you have installed [intel-opencl-icd](https://github.com/intel/compute-runtime), you can pass the following CMake flags to run the integrated OpenCL LIT test-suite when building IGC, or separately afterwards:
Some LLVM versions require special steps to build successfully.
202
-
203
-
#### LLVM7/Clang7
204
-
205
-
In the **OpenCL Clang** project there are patches for Clang.
206
-
If the Clang you are using to build IGC does not have these patches (for example, when you are using prebuilt packages) it is necessary to add ```-DVME_TYPES_DEFINED=FALSE``` to IGC CMake flags.
207
-
208
-
VectorComplier must be disabled by adding ```-DIGC_BUILD__VC_ENABLED=OFF``` to CMake flags.
209
-
210
-
#### LLVM8/Clang8
211
-
212
-
We recommend building LLVM8/Clang8 from sources instead for using prebuilds, because packaged Clang8 is missing these patches:
0 commit comments