From bf463a126c6c50671ad67066a9f055569aafb321 Mon Sep 17 00:00:00 2001 From: Vladimir Lazarev Date: Tue, 24 Dec 2019 16:00:26 +0300 Subject: [PATCH] [SYCL][Doc] Fix TBB installation instructions Signed-off-by: Vladimir Lazarev --- sycl/doc/GetStartedWithSYCLCompiler.md | 39 +++++++++++++++----------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/sycl/doc/GetStartedWithSYCLCompiler.md b/sycl/doc/GetStartedWithSYCLCompiler.md index c420c744d9555..3b17050b592b8 100644 --- a/sycl/doc/GetStartedWithSYCLCompiler.md +++ b/sycl/doc/GetStartedWithSYCLCompiler.md @@ -156,35 +156,42 @@ CL_CONFIG_DEVICES = fpga-emu **Linux** 1) Extract the archive. For example, for the archive -`oclcpu_rt_.tar.gz` you would run the following commands +`oclcpu_rt_.tar.gz` you would run the following commands ```bash -mkdir -p /opt/intel/oclcpuexp -cd /opt/intel/oclcpuexp -tar -zxvf oclcpu_rt_.tar.gz +mkdir -p /opt/intel/oclcpuexp_ +cd /opt/intel/oclcpuexp_ +tar -zxvf oclcpu_rt_.tar.gz ``` 2) Create ICD file pointing to the new runtime ```bash -echo /opt/intel/oclcpuexp/x64/libintelocl.so > /etc/OpenCL/vendors/intel_expcpu.icd +echo /opt/intel/oclcpuexp_/x64/libintelocl.so > + /etc/OpenCL/vendors/intel_expcpu.icd ``` -3) Extract TBB libraries. For example, for the archive tbb2019_oss_lin.tgz +3) Extract TBB libraries. For example, for the archive tbb--lin.tgz ```bash -mkdir -p /opt/intel/tbb -cd /opt/intel/tbb -tar -zxvf tbb2019_oss_lin.tgz +mkdir -p /opt/intel/tbb_ +cd /opt/intel/tbb_ +tar -zxvf tbb*lin.tgz ``` 4) Copy files from or create symbolic links to TBB libraries in OpenCL RT folder: ```bash -ln -s /opt/intel/tbb/lib/intel64/gcc4.8/libtbb.so /opt/intel/oclcpuexp/x64/libtbb.so -ln -s /opt/intel/tbb/lib/intel64/gcc4.8/libtbbmalloc.so +ln -s /opt/intel/tbb_/tbb/lib/intel64/gcc4.8/libtbb.so + /opt/intel/oclcpuexp/x64/libtbb.so +ln -s /opt/intel/tbb_/tbb/lib/intel64/gcc4.8/libtbbmalloc.so /opt/intel/oclcpuexp/x64/libtbbmalloc.so +ln -s /opt/intel/tbb_/tbb/lib/intel64/gcc4.8/libtbb.so.2 + /opt/intel/oclcpuexp/x64/libtbb.so.2 +ln -s /opt/intel/tbb_/tbb/lib/intel64/gcc4.8/libtbbmalloc.so.2 + /opt/intel/oclcpuexp/x64/libtbbmalloc.so.2 ``` 5) Configure library paths ```bash -echo /opt/intel/oclcpuexp/x64 > /etc/ld.so.conf.d/libintelopenclexp.conf +echo /opt/intel/oclcpuexp_/x64 > + /etc/ld.so.conf.d/libintelopenclexp.conf ldconfig -f /etc/ld.so.conf.d/libintelopenclexp.conf ``` **Windows (64-bit)** @@ -192,8 +199,8 @@ ldconfig -f /etc/ld.so.conf.d/libintelopenclexp.conf installing `CPU` runtime as `GPU` runtime installer may re-write some important files or settings and make existing `CPU` runtime not working properly. -2) Extract the archive to some folder. For example, to `c:\oclcpu_rt_` -and `c:\tbb2019_oss`. +2) Extract the archive to some folder. For example, to `c:\oclcpu_rt_` +and `c:\tbb_`. 3) Run `Command Prompt` as `Administrator`. To do that click `Start` button, type `Command Prompt`, click the Right mouse button on it, then click @@ -201,10 +208,10 @@ type `Command Prompt`, click the Right mouse button on it, then click 4) In the opened windows run `install.bat` provided with the extracted files to install runtime to the system and setup environment variables. So, if the -extracted files are in `c:\oclcpu_rt_\` folder, then type the +extracted files are in `c:\oclcpu_rt_\` folder, then type the command: ```bash -c:\oclcpu_rt_\install.bat c:\tbb2019_oss\bin\intel64\vc14 +c:\oclcpu_rt_\install.bat c:\tbb_\tbb\bin\intel64\vc14 ``` ## Test SYCL toolchain