@@ -26,9 +26,9 @@ Before the build all dependencies must be downloaded and laid out as follows:
26
26
This can be done using the following commands:
27
27
``` bash
28
28
cd < workspace>
29
- git clone https://github.com/llvm/llvm-project.git .
30
- git clone https://github.com/KhronosGroup/SPIRV-LLVM-Translator.git
31
- git clone https://github.com/intel/opencl-clang.git
29
+ git clone https://github.com/llvm/llvm-project.git . -b release/21.x
30
+ git clone https://github.com/KhronosGroup/SPIRV-LLVM-Translator.git -b llvm_release_210
31
+ git clone https://github.com/intel/opencl-clang.git -b ocl-open-210
32
32
```
33
33
34
34
Then we need to create a build directory and run the build:
@@ -61,7 +61,7 @@ documented in [Embedding LLVM in your project](https://llvm.org/docs/CMake.html#
61
61
Commands to checkout sources and build:
62
62
``` bash
63
63
cd < workspace>
64
- git clone https://github.com/intel/opencl-clang.git
64
+ git clone https://github.com/intel/opencl-clang.git -b ocl-open-210
65
65
mkdir build && cd build
66
66
cmake ../opencl-clang
67
67
make all -j` nproc`
@@ -71,13 +71,13 @@ make all -j`nproc`
71
71
72
72
##### Preferred LLVM version
73
73
74
- By default, opencl-clang's cmake script is searching for LLVM which is built
75
- based on the latest verion of current branch. You can override target version of
76
- LLVM by using the ` PREFERRED_LLVM_VERSION ` cmake option:
74
+ By default, opencl-clang's cmake script is searching for LLVM 21.1. You can
75
+ override target version of LLVM by using the ` PREFERRED_LLVM_VERSION ` cmake
76
+ option:
77
77
78
78
Example:
79
79
``` bash
80
- cmake -DPREFERRED_LLVM_VERSION=" 21.0 " ../opencl-clang
80
+ cmake -DPREFERRED_LLVM_VERSION=" 21.1 " ../opencl-clang
81
81
```
82
82
83
83
##### Custom LLVM installation
0 commit comments