@@ -166,37 +166,37 @@ To run DPC++ applications on Level Zero devices, Level Zero implementation(s)
166
166
must be present in the system. You can find the link to the Level Zero spec in
167
167
the following section [ Find More] ( #find-more ) .
168
168
169
- The Level Zero RT for ` GPU ` , OpenCL RT for ` GPU ` , OpenCL RT for ` CPU ` and TBB runtime
170
- which are needed to run DPC++ application on Intel ` GPU ` or Intel ` CPU ` devices can be
171
- downloaded using links in
169
+ The Level Zero RT for ` GPU ` , OpenCL RT for ` GPU ` , OpenCL RT for ` CPU ` , FPGA
170
+ emulation RT and TBB runtime which are needed to run DPC++ application
171
+ on Intel ` GPU ` or Intel ` CPU ` devices can be downloaded using links in
172
172
[ the dependency configuration file] ( ../../buildbot/dependency.conf )
173
173
and installed following the instructions below. The same versions are used in
174
174
PR testing.
175
175
176
- Intel OpenCL RT for ` CPU ` devices can be switched into OpenCL runtime for
177
- Intel FPGA Emulation. The following parameter should be set in ` cl.cfg ` file
178
- (available in directory containing CPU runtime for OpenCL) or environment
179
- variable with the same name. The following value should be set to switch
180
- OpenCL device mode:
181
-
182
- ``` bash
183
- CL_CONFIG_DEVICES = fpga-emu
184
- ```
185
-
186
176
** Linux** :
187
177
188
- 1 ) Extract the archive. For example, for the archive
189
- ` oclcpu_rt_<cpu_version>.tar.gz ` you would run the following commands
178
+ 1 ) Extract the archive. For example, for the archives
179
+ ` oclcpuexp_<cpu_version>.tar.gz ` and ` fpgaemu_<fpga_version>.tar.gz ` you would
180
+ run the following commands
190
181
191
182
```bash
183
+ # Extract OpenCL FPGA emulation RT
184
+ mkdir -p /opt/intel/oclfpgaemu_<fpga_version>
185
+ cd /opt/intel/oclfpgaemu_<fpga_version>
186
+ tar zxvf fpgaemu_<fpga_version>.tar.gz
187
+ # Extract OpenCL CPU RT
192
188
mkdir -p /opt/intel/oclcpuexp_<cpu_version>
193
189
cd /opt/intel/oclcpuexp_<cpu_version>
194
190
tar -zxvf oclcpu_rt_<cpu_version>.tar.gz
195
191
```
196
192
197
- 2 ) Create ICD file pointing to the new runtime
193
+ 2 ) Create ICD file pointing to the new runtime (requires root access)
198
194
199
195
``` bash
196
+ # OpenCL FPGA emulation RT
197
+ echo /opt/intel/oclfpgaemu_< fpga_version> /x64/libintelocl_emu.so >
198
+ /etc/OpenCL/vendors/intel_fpgaemu.icd
199
+ # OpenCL CPU RT
200
200
echo /opt/intel/oclcpuexp_< cpu_version> /x64/libintelocl.so >
201
201
/etc/OpenCL/vendors/intel_expcpu.icd
202
202
```
@@ -213,6 +213,16 @@ CL_CONFIG_DEVICES = fpga-emu
213
213
folder:
214
214
215
215
` ` ` bash
216
+ # OpenCL FPGA emulation RT
217
+ ln -s /opt/intel/tbb_< tbb_version> /tbb/lib/intel64/gcc4.8/libtbb.so
218
+ /opt/intel/oclfpgaemu_< fpga_version> /x64
219
+ ln -s /opt/intel/tbb_< tbb_version> /tbb/lib/intel64/gcc4.8/libtbbmalloc.so
220
+ /opt/intel/oclfpgaemu_< fpga_version> /x64
221
+ ln -s /opt/intel/tbb_< tbb_version> /tbb/lib/intel64/gcc4.8/libtbb.so.2
222
+ /opt/intel/oclfpgaemu_< fpga_version> /x64
223
+ ln -s /opt/intel/tbb_< tbb_version> /tbb/lib/intel64/gcc4.8/libtbbmalloc.so.2
224
+ /opt/intel/oclfpgaemu_< fpga_version> /x64
225
+ # OpenCL CPU RT
216
226
ln -s /opt/intel/tbb_< tbb_version> /tbb/lib/intel64/gcc4.8/libtbb.so
217
227
/opt/intel/oclcpuexp_< cpu_version> /x64
218
228
ln -s /opt/intel/tbb_< tbb_version> /tbb/lib/intel64/gcc4.8/libtbbmalloc.so
@@ -223,10 +233,12 @@ folder:
223
233
/opt/intel/oclcpuexp_< cpu_version> /x64
224
234
` ` `
225
235
226
- 5) Configure library paths
236
+ 5) Configure library paths (requires root access)
227
237
228
238
` ` ` bash
229
- echo /opt/intel/oclcpuexp_< cpu_version> /x64 >
239
+ echo /opt/intel/oclfpgaemu_< fpga_version> /x64 >
240
+ /etc/ld.so.conf.d/libintelopenclexp.conf
241
+ echo /opt/intel/oclcpuexp_< cpu_version> /x64 >>
230
242
/etc/ld.so.conf.d/libintelopenclexp.conf
231
243
ldconfig -f /etc/ld.so.conf.d/libintelopenclexp.conf
232
244
` ` `
@@ -239,7 +251,8 @@ OpenCL runtime for Intel `GPU` installer may re-write some important
239
251
files or settings and make existing OpenCL runtime for Intel ` CPU` runtime
240
252
not working properly.
241
253
242
- 2) Extract the archive with OpenCL runtime for Intel `CPU` using links in
254
+ 2) Extract the archive with OpenCL runtime for Intel ` CPU` and/or for Intel
255
+ ` FPGA` emulation using links in
243
256
[the dependency configuration file](../../buildbot/dependency.conf). For
244
257
example, to ` c:\o clcpu_rt_< cpu_version> ` .
245
258
@@ -257,6 +270,11 @@ extracted files are in `c:\oclcpu_rt_<cpu_version>\` folder, then type the
257
270
command:
258
271
259
272
` ` ` bash
273
+ # Install OpenCL FPGA emulation RT
274
+ # Answer N to clean previous OCL_ICD_FILENAMES configuration
275
+ c:\o clfpga_rt_< fpga_version> \i nstall.bat c:\t bb_< tbb_version> \t bb\b in\i ntel64\v c14
276
+ # Install OpenCL CPU RT
277
+ # Answer Y to setup CPU RT side-bi-side with FPGA RT
260
278
c:\o clcpu_rt_< cpu_version> \i nstall.bat c:\t bb_< tbb_version> \t bb\b in\i ntel64\v c14
261
279
` ` `
262
280
0 commit comments