File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ mkdir build
48
48
cd build
49
49
CC=gcc-9 CXX=g++-9 MLIR_DIR=< llvm-install-directory> cmake ..
50
50
make -j 12
51
+
52
+
53
+ For GPU support, pass the cmake variables to enable the required runtime libraries
54
+
55
+ CC=gcc-9 CXX=g++-9 MLIR_DIR=< llvm-install-directory> cmake .. -DSYCL_DIR=/PATH_TO/intel/oneapi/compiler/latest/linux/ -DLEVEL_ZERO_DIR=/PATH_TO/level-zero-install/ -DIMEX_ENABLE_L0_RUNTIME=1 -DIMEX_ENABLE_SYCL_RUNTIME=1
56
+ make -j 12
51
57
```
52
58
53
59
#### Building as an LLVM external project
@@ -138,6 +144,26 @@ You will now have to
138
144
will be extracted and a file ` doc/Conversions.md ` will be generated automatically.
139
145
* Write your Pattern rewriters
140
146
147
+
148
+ ## Getting Level Zero loader (Optional, needed for GPU support with Level zero runtime)
149
+ ``` Bash
150
+ git clone https://github.com/oneapi-src/level-zero.git
151
+ cd level-zero
152
+ mkdir build
153
+ cd build
154
+ cmake ../level-zero -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../level-zero-install
155
+ ninja install
156
+ ```
157
+
158
+ ## Getting DPC++ compiler (Optional, needed for GPU support with Sycl runtime)
159
+ ```
160
+ Install DPC++ compiler : Instructions here
161
+ https://www.intel.com/content/www/us/en/developer/articles/tool/oneapi-standalone-components.html#dpcpp-cpp
162
+
163
+ Once DPC++ is installed source the compiler vars:
164
+ source /PATH_TO/intel/oneapi/compiler/latest/env/vars.sh
165
+ ```
166
+
141
167
## Run the lit tests
142
168
To run the FileCheck based tests, follow the following steps:
143
169
You can’t perform that action at this time.
0 commit comments