@@ -166,37 +166,37 @@ To run DPC++ applications on Level Zero devices, Level Zero implementation(s)
166166must be present in the system. You can find the link to the Level Zero spec in
167167the following section [ Find More] ( #find-more ) .
168168
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
172172[ the dependency configuration file] ( ../../buildbot/dependency.conf )
173173and installed following the instructions below. The same versions are used in
174174PR testing.
175175
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-
186176** Linux** :
187177
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
190181
191182 ```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
192188 mkdir -p /opt/intel/oclcpuexp_<cpu_version>
193189 cd /opt/intel/oclcpuexp_<cpu_version>
194190 tar -zxvf oclcpu_rt_<cpu_version>.tar.gz
195191 ```
196192
197- 2 ) Create ICD file pointing to the new runtime
193+ 2 ) Create ICD file pointing to the new runtime (requires root access)
198194
199195 ``` 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
200200 echo /opt/intel/oclcpuexp_< cpu_version> /x64/libintelocl.so >
201201 /etc/OpenCL/vendors/intel_expcpu.icd
202202 ```
@@ -213,6 +213,16 @@ CL_CONFIG_DEVICES = fpga-emu
213213folder:
214214
215215 ` ` ` 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
216226 ln -s /opt/intel/tbb_< tbb_version> /tbb/lib/intel64/gcc4.8/libtbb.so
217227 /opt/intel/oclcpuexp_< cpu_version> /x64
218228 ln -s /opt/intel/tbb_< tbb_version> /tbb/lib/intel64/gcc4.8/libtbbmalloc.so
@@ -223,10 +233,12 @@ folder:
223233 /opt/intel/oclcpuexp_< cpu_version> /x64
224234 ` ` `
225235
226- 5) Configure library paths
236+ 5) Configure library paths (requires root access)
227237
228238 ` ` ` 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 >>
230242 /etc/ld.so.conf.d/libintelopenclexp.conf
231243 ldconfig -f /etc/ld.so.conf.d/libintelopenclexp.conf
232244 ` ` `
@@ -239,7 +251,8 @@ OpenCL runtime for Intel `GPU` installer may re-write some important
239251files or settings and make existing OpenCL runtime for Intel ` CPU` runtime
240252not working properly.
241253
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
243256[the dependency configuration file](../../buildbot/dependency.conf). For
244257example, to ` c:\o clcpu_rt_< cpu_version> ` .
245258
@@ -257,6 +270,11 @@ extracted files are in `c:\oclcpu_rt_<cpu_version>\` folder, then type the
257270command:
258271
259272 ` ` ` 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
260278 c:\o clcpu_rt_< cpu_version> \i nstall.bat c:\t bb_< tbb_version> \t bb\b in\i ntel64\v c14
261279 ` ` `
262280
0 commit comments