- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
- Copy the plug-in *.jar file from $(INTELOCLSDKROOT)\bin\eclipse-plug-in to $(ECLIPSEROOT)\dropins.
- On Linux* OS add $(INTELOCLSDKROOT)\bin to LD_LIBRARY_PATH.
- Run Eclipse IDE.
- Select Window > Preferences.
- 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
Link Copied
- « Previous
-
- 1
- 2
- Next »
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Has this issue been resolved? I am facing the same problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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".
[step 1]
[step 2]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- « Previous
-
- 1
- 2
- Next »