Skip to content

Commit 83d56fa

Browse files
authored
Change README to include information for GPU (#567)
Co-authored-by: [email protected] <Nishant Patel>
1 parent 62fac7c commit 83d56fa

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ mkdir build
4848
cd build
4949
CC=gcc-9 CXX=g++-9 MLIR_DIR=<llvm-install-directory> cmake ..
5050
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
5157
```
5258

5359
#### Building as an LLVM external project
@@ -138,6 +144,26 @@ You will now have to
138144
will be extracted and a file `doc/Conversions.md` will be generated automatically.
139145
* Write your Pattern rewriters
140146

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+
141167
## Run the lit tests
142168
To run the FileCheck based tests, follow the following steps:
143169

0 commit comments

Comments
 (0)