Skip to content

Commit bf463a1

Browse files
committed
[SYCL][Doc] Fix TBB installation instructions
Signed-off-by: Vladimir Lazarev <vladimir.lazarev@intel.com>
1 parent 117ac7f commit bf463a1

File tree

1 file changed

+23
-16
lines changed

1 file changed

+23
-16
lines changed

sycl/doc/GetStartedWithSYCLCompiler.md

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -156,55 +156,62 @@ CL_CONFIG_DEVICES = fpga-emu
156156
**Linux**
157157

158158
1) Extract the archive. For example, for the archive
159-
`oclcpu_rt_<new_version>.tar.gz` you would run the following commands
159+
`oclcpu_rt_<cpu_version>.tar.gz` you would run the following commands
160160
```bash
161-
mkdir -p /opt/intel/oclcpuexp
162-
cd /opt/intel/oclcpuexp
163-
tar -zxvf oclcpu_rt_<new_version>.tar.gz
161+
mkdir -p /opt/intel/oclcpuexp_<cpu_version>
162+
cd /opt/intel/oclcpuexp_<cpu_version>
163+
tar -zxvf oclcpu_rt_<cpu_version>.tar.gz
164164
```
165165
2) Create ICD file pointing to the new runtime
166166
```bash
167-
echo /opt/intel/oclcpuexp/x64/libintelocl.so > /etc/OpenCL/vendors/intel_expcpu.icd
167+
echo /opt/intel/oclcpuexp_<cpu_version>/x64/libintelocl.so >
168+
/etc/OpenCL/vendors/intel_expcpu.icd
168169
```
169170

170-
3) Extract TBB libraries. For example, for the archive tbb2019_<version>oss_lin.tgz
171+
3) Extract TBB libraries. For example, for the archive tbb-<tbb_version>-lin.tgz
171172

172173
```bash
173-
mkdir -p /opt/intel/tbb
174-
cd /opt/intel/tbb
175-
tar -zxvf tbb2019_<version>oss_lin.tgz
174+
mkdir -p /opt/intel/tbb_<tbb_version>
175+
cd /opt/intel/tbb_<tbb_version>
176+
tar -zxvf tbb*lin.tgz
176177
```
177178

178179
4) Copy files from or create symbolic links to TBB libraries in OpenCL RT folder:
179180
```bash
180-
ln -s /opt/intel/tbb/lib/intel64/gcc4.8/libtbb.so /opt/intel/oclcpuexp/x64/libtbb.so
181-
ln -s /opt/intel/tbb/lib/intel64/gcc4.8/libtbbmalloc.so
181+
ln -s /opt/intel/tbb_<tbb_version>/tbb/lib/intel64/gcc4.8/libtbb.so
182+
/opt/intel/oclcpuexp/x64/libtbb.so
183+
ln -s /opt/intel/tbb_<tbb_version>/tbb/lib/intel64/gcc4.8/libtbbmalloc.so
182184
/opt/intel/oclcpuexp/x64/libtbbmalloc.so
185+
ln -s /opt/intel/tbb_<tbb_version>/tbb/lib/intel64/gcc4.8/libtbb.so.2
186+
/opt/intel/oclcpuexp/x64/libtbb.so.2
187+
ln -s /opt/intel/tbb_<tbb_version>/tbb/lib/intel64/gcc4.8/libtbbmalloc.so.2
188+
/opt/intel/oclcpuexp/x64/libtbbmalloc.so.2
183189
```
184190

185191
5) Configure library paths
186192
```bash
187-
echo /opt/intel/oclcpuexp/x64 > /etc/ld.so.conf.d/libintelopenclexp.conf
193+
echo /opt/intel/oclcpuexp_<cpu_version>/x64 >
194+
/etc/ld.so.conf.d/libintelopenclexp.conf
188195
ldconfig -f /etc/ld.so.conf.d/libintelopenclexp.conf
189196
```
190197
**Windows (64-bit)**
191198
1) If you need `GPU` as well, then update/install it first. Do it **before**
192199
installing `CPU` runtime as `GPU` runtime installer may re-write some important
193200
files or settings and make existing `CPU` runtime not working properly.
194201

195-
2) Extract the archive to some folder. For example, to `c:\oclcpu_rt_<new_version>`
196-
and `c:\tbb2019_<version>oss`.
202+
2) Extract the archive to some folder. For example, to `c:\oclcpu_rt_<cpu_version>`
203+
and `c:\tbb_<tbb_version>`.
197204

198205
3) Run `Command Prompt` as `Administrator`. To do that click `Start` button,
199206
type `Command Prompt`, click the Right mouse button on it, then click
200207
`Run As Administrator`, then click `Yes` to confirm.
201208

202209
4) In the opened windows run `install.bat` provided with the extracted files
203210
to install runtime to the system and setup environment variables. So, if the
204-
extracted files are in `c:\oclcpu_rt_<new_version>\` folder, then type the
211+
extracted files are in `c:\oclcpu_rt_<cpu_version>\` folder, then type the
205212
command:
206213
```bash
207-
c:\oclcpu_rt_<new_version>\install.bat c:\tbb2019_<version>oss\bin\intel64\vc14
214+
c:\oclcpu_rt_<cpu_version>\install.bat c:\tbb_<tbb_version>\tbb\bin\intel64\vc14
208215
```
209216

210217
## Test SYCL toolchain

0 commit comments

Comments
 (0)