OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1718 Discussions

Eclipse Luno does not load after linking with Opencl Code Builder

Thomas_N_
Beginner
2,588 Views

I am using Centos 7 to use Opencl Code Builder. I have already downloaded and installed Intel Media Server Studio for Centos 7 OS. To start programming with Opencl, I use Eclipse Luno (Eclipse for Parallel Application Developers version) and the Eclipse IDE is loaded properly. To link with Code Builder, I followed the discussion here. The instructions are

To enable the OpenCL™ API Offline Compiler plug-in for Eclipse* IDE, do the following:

  1. Copy the plug-in *.jar file from $(INTELOCLSDKROOT)\bin\eclipse-plug-in to $(ECLIPSEROOT)\dropins.
  2. On Linux* OS add $(INTELOCLSDKROOT)\bin to LD_LIBRARY_PATH.
  3. Run Eclipse IDE.
  4. Select Window > Preferences.
  5. Switch to the Intel OpenCL dialog and set OpenCL binary directory$(INTELOCLSDKROOT)\bin\. I have already finished 1 and 2. But when I run Eclipse IDE, I have error and IDE stop loading in halfway. The error is "Cannot get machine list. Could not load required libraries. Please make sure to set the correct path under the Code Builder for Opencl preference page". What is wrong with that error? Thanks

 

0 Kudos
25 Replies
Erickson_LU
Beginner
356 Views

Jeffrey M. (Intel) wrote:

I am seeing this behavior too with the latest release.  Hoping to gather more info on complete setup steps and get back to you.

It looks like your OpenCL setup is fine, so you can hopefully proceed with command line. 

 

Thank you so mushc,but, i encounter the same trouble "the error dialog box appeared and I pressed OK,and the  IDE is not loaded and stop loading after that". 

Please let me know what's the else  info you need?

On the other hand,I will try the command line mode.

Thank you.

Erickson LU

Best regards.

0 Kudos
Erickson_LU
Beginner
356 Views

Jeffrey M. (Intel) wrote:

I am seeing this behavior too with the latest release.  Hoping to gather more info on complete setup steps and get back to you.

It looks like your OpenCL setup is fine, so you can hopefully proceed with command line. 

Hi,Jeffrey

When i try to build the test code as below:

Deleted non public test code submitted by user. *MichaelC 20180724*
 

The ioc64 reports the "Failed to build program...: -11 (CL_BUILD_PROGRAM_FAILURE)"

When i use the command :ioc64 -input=library.cpp -device=gpu

No command specified, using 'build' as default
1 error generated.
OpenCL Intel(R) Graphics device was found!
Device name: Intel(R) HD Graphics
Device version: OpenCL 1.2 
Device vendor: Intel(R) Corporation
Device profile: FULL_PROFILE
/home/sam/CLionProjects/untitled/library.cpp:8:10: fatal error: 'cl.h' file not found

Failed to build program...: -11 (CL_BUILD_PROGRAM_FAILURE)
Build failed!

 

I think maybe i don't set a LD_LIBRARY_PATH cause that.So,i set it in /etc/enviroment as 

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/intel/opencl/SDK/bin"
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu:/usr/lib64:/usr/local/lib
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/intel/opencl:/usr/lib64:/usr/local/lib"

 

It also report the same log as upside.And,after i add the LD _LIBRARY_PATH line in /etc/environment , i use the command "sudo python sys_analyzer_linux.py -v" to check the system,it reports as below:

--------------------------
Hardware readiness checks:
--------------------------
 [ OK ] Processor name: Intel(R) Core(TM) i7-5675C CPU @ 3.10GHz
 [ INFO ] Intel Processor
 [ INFO ] Processor brand: Core
 [ INFO ] Processor arch: Broadwell
--------------------------
OS readiness checks:
--------------------------
 [ INFO ] GPU PCI id     : 1622
 [ INFO ] GPU description: BDW GT3 ULT
 [ OK ] GPU visible to OS
 [ INFO ] no nomodeset in GRUB cmdline (good)
 [ INFO ] Linux distro   : Ubuntu 16.04
 [ INFO ] Linux kernel   : 4.4.0-92-generic
 [ INFO ] glibc version  : 2.23
 [ INFO ] Linux distro suitable for Generic install
 [ INFO ] gcc version    : 20160609 (>=4.8.2 suggested)
--------------------------
Media Server Studio Install:
--------------------------
 [ OK ] user in video group
 [ ERROR ] libva.so.1 not found.  Check LD_LIBRARY_PATH contains '/usr/lib64;/usr/local/lib'
 [ ERROR ] libva not loading Intel iHD
 [ ERROR ] vainfo not reporting codec entry points
 [ INFO ] i915 driver in use by Intel video adapter
 [ ERROR ] could not open /dev/dri/renderD128
--------------------------
Component Smoke Tests:
--------------------------
 [ ERROR ] no libva.so.  Are Intel components installed?
 [ OK ] OpenCL check:platform:Intel(R) OpenCL GPU OK CPU OK
platform:Experimental OpenCL 2.1 CPU Only Platform GPU OK CPU OK

 

Could you help me fix it ?It will help me a lot!

Thanks

Best regards

Erickson

0 Kudos
khanna__udit
Beginner
356 Views

Has this issue been resolved? I am facing the same problem.

 

0 Kudos
Bill_Sung
Beginner
356 Views

Hi Sir,

1) I can implement well at step [1] and [2]  but when I run step [3], there are happen same issue as previous question

     to have error prompt message as below  during start Eclipse.

     "Cannot get machine list. Could not load required libraries. Please make sure to set the correct path under the Code Builder for Opencl preference page"

2)I make sure to have right setting in LD_LIBRARY_PATH and "libKernelBuilderAPI.so" is exist in folder "/etc/alternatives/opencl-intel-tools/lib64".

3) user@user-SKLU-IE1:/etc/alternatives/opencl-intel-tools/lib64$ java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
 

[step 1] 

user@user-SKLU-IE1:~/workarea/intel CV sdk/betaR3$ python sys_analyzer_linux.py  -v
--------------------------
Hardware readiness checks:
--------------------------
 [ OK ] Processor name: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz
 [ INFO ] Intel Processor
 [ INFO ] Processor brand: Core
 [ INFO ] Processor arch: Skylake
--------------------------
OS readiness checks:
--------------------------
 [ INFO ] GPU PCI id     : 1916
 [ INFO ] GPU description: SKL ULT GT2
 [ OK ] GPU visible to OS
 [ INFO ] no nomodeset in GRUB cmdline (good)
 [ INFO ] Linux distro   : Ubuntu 16.04
 [ INFO ] Linux kernel   : 4.7.0.intel.r5.0
 [ INFO ] glibc version  : 2.23
 [ INFO ] Linux distro suitable for Generic install
 [ INFO ] gcc version    : 20160609 (>=4.8.2 suggested)
--------------------------
Media Server Studio Install:
--------------------------
 [ OK ] user in video group
 [ ERROR ] libva.so.1 not found.  Check LD_LIBRARY_PATH contains '/usr/lib64;/usr/local/lib'
 [ ERROR ] libva not loading Intel iHD
 [ ERROR ] vainfo not reporting codec entry points
 [ INFO ] i915 driver in use by Intel video adapter
 [ ERROR ] no libdrm include files. Are Intel components installed?
--------------------------
Component Smoke Tests:
--------------------------
 [ ERROR ] no Media SDK include files.  Are Intel components installed?
 [ OK ] OpenCL check:platform:Intel(R) OpenCL GPU OK CPU OK
platform:Experimental OpenCL 2.1 CPU Only Platform GPU OK CPU OK

 

[step 2]

user@user-SKLU-IE1:~/workarea/intel CV sdk/betaR3$ ioc64 -input=simpleAdd.cl -asm
No command specified, using 'build' as default
OpenCL Intel(R) Graphics device was found!
Device name: Intel(R) HD Graphics
Device version: OpenCL 2.0 
Device vendor: Intel(R) Corporation
Device profile: FULL_PROFILE
fcl build 1 succeeded.
bcl build succeeded.
 
simpleAdd info:
Maximum work-group size: 256
Compiler work-group size: (0, 0, 0)
Local memory size: 0
Preferred multiple of work-group size: 32
Minimum amount of private memory: 0
Amount of spill memory used by the kernel: 0
 
Build succeeded!
0 Kudos
Michael_C_Intel1
Moderator
356 Views

A couple of comments in an attempt to provide guidance for users encountering similar issues.

Erickson.LU's post:

ioc64 is for kernel sources, not host programs. In the post, the  host side C++ application is sent through ioc64. This will fail as ioc64 is not a C++ compiler. Use your host compiler (i.e. cl.exe /TC or cl.exe /TP from msvs, icl.exe /TC or icl.exe /TP from Intel... gcc/g++ from GNU, icc/icpc) for your host program.

 

Bill Sung's post:

The codebuilder interface attempts to see dependencies that aren't immediately available on some newer linux distros... See the prerequisites at the gsg page. Take a look at https://software.intel.com/en-us/articles/sdk-for-opencl-gsg:

Step 2: Install the Intel SDK for OpenCL Applications

  • Install oracle-java8-installer
  • Install mono
  • Install the appropriate libicu version (for Intel® Code Builder for OpenCL™ API plugin support)
  • Install dkms and lsb-core for driver support
  • Note: Update tools need to go out to the web. If your system requires a proxy for the web, make sure your environment variables are visible as root user.

libicu tends to be the missing dependency... see the example linked on the page for a suggestion of obtaining it:

curl -O http://launchpadlibrarian.net/201330288/libicu52_52.1-8_amd64.deb
dpkg -i libicu52_52.1-8_amd64.deb

We'll look to create new bringup guidelines for subsequent releases of the SDK.

 

-MichaelC

0 Kudos
Reply