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.

Running OpenCL on MIC got error, but CPU is fine.

zhang_f_
Beginner
543 Views

Hi,

I'm a beginner to OpenCL, and I want to run it on MIC. I download the monte-carlo example from the below url:

https://software.intel.com/en-us/vcsource/samples/monte-carlo/

Run it on CPU if fine, but when I choose to run it on MIC, it goes wrong. Some one could help?

 

MonteCarlo]$ ./montecarlo -d 1
WARNING: All config files need .conf: /etc/modprobe.d/unsupported-modules, it will be ignored in a future release.
WARNING: /etc/modprobe.d/unsupported-modules line 1: ignoring bad line starting with 'allow_unsupported_modules=1'
FATAL: Error inserting nvidia (/lib/modules/2.6.32-358.el6.x86_64/kernel/drivers/video/nvidia.ko): No such device
Platforms (1):
    [0] Intel(R) OpenCL [Selected]
Devices (4):
    [0]       Intel(R) Xeon(R) CPU E5-2697 v2 @ 2.70GHz
    [1] Intel(R) Many Integrated Core Acceleration Card [Selected]
    [2] Intel(R) Many Integrated Core Acceleration Card
    [3] Intel(R) Many Integrated Core Acceleration Card
./montecarlo: relocation error: /opt/intel/opencl-1.2-4.4.0.117/lib64/libmic_device.so: symbol COIProcessSetCacheSize, version COI_1.0 not defined in file libcoi_host.so.0 with link time reference

 

If I run it on CPU, it is OK.

 MonteCarlo]$ ./montecarlo 
WARNING: All config files need .conf: /etc/modprobe.d/unsupported-modules, it will be ignored in a future release.
WARNING: /etc/modprobe.d/unsupported-modules line 1: ignoring bad line starting with 'allow_unsupported_modules=1'
FATAL: Error inserting nvidia (/lib/modules/2.6.32-358.el6.x86_64/kernel/drivers/video/nvidia.ko): No such device
Platforms (1):
    [0] Intel(R) OpenCL [Selected]
Devices (4):
    [0]       Intel(R) Xeon(R) CPU E5-2697 v2 @ 2.70GHz [Selected]
    [1] Intel(R) Many Integrated Core Acceleration Card
    [2] Intel(R) Many Integrated Core Acceleration Card
    [3] Intel(R) Many Integrated Core Acceleration Card
Build program options: "-D__DO_FLOAT__ -cl-denorms-are-zero -cl-fast-relaxed-math -cl-single-precision-constant -DNSAMP=262144"
Running Monte Carlo options pricing for 65536 options, with 262144 samples
Size of memory region for each array: 262144 bytes
Using risk free rate = 0.05 and volatility = 0.2
Host time: 5.54317 sec.
Host perf: 11822.8 Options per second

 

0 Kudos
4 Replies
Dmitry_K_Intel
Employee
543 Views

Looks like you have outdated MPSS version installed.

Please look here: https://software.intel.com/en-us/articles/installation-instructions/

 

0 Kudos
zhang_f_
Beginner
543 Views

I installed the latest MPSS, but it stll got the same error.

./montecarlo: relocation error: /opt/intel/opencl-1.2-4.4.0.117/lib64/libmic_device.so: symbol COIProcessSetCacheSize, version COI_1.0 not defined in file libcoi_host.so.0 with link time reference

 

 

Dmitry Kaptsenel (Intel) wrote:

 

Looks like you have outdated MPSS version installed.

 

Please look here: https://software.intel.com/en-us/articles/installation-instructions/

 

 

 

 

0 Kudos
Dmitry_K_Intel
Employee
543 Views

Please try to uninstall previous MPSS version and then install MPSS 3.2.3 from this page https://software.intel.com/en-us/articles/intel-manycore-platform-software-stack-mpss

 

0 Kudos
zhang_f_
Beginner
543 Views

Thanks!

I use the command /opt/intel/mic/bin/micinfo  but found that it was MPSS Version : 2.1.6720-19

and I reinstall it thoroughly and now it can run opencl now.

 

 

 

Dmitry Kaptsenel (Intel) wrote:

 

Please try to uninstall previous MPSS version and then install MPSS 3.2.3 from this page https://software.intel.com/en-us/articles/intel-manycore-platform-software-stack-mpss

 

 

 

0 Kudos
Reply