Installing OpenCL on XeonPhi - opencl

Because I don't have device to test so I ask this question
If i use OpenCL on XeonPhi I only want install the driver and runtimes of XeonPhi (https://software.intel.com/en-us/articles/opencl-drivers), then OpenCL can run and complier code, is that right ? And how about MPSS (https://software.intel.com/en-us/articles/intel-manycore-platform-software-stack-mpss-archive#33n-2) i see when deverlop OpenCL on Linux, must install MPSS and driver and runtimes of XeonPhi.
I haven't found a document introduced the detail about using OpenCL on XeonPHi on WindowOS , Can you share with me some document about this ?

The Intel® Xeon Phi™ coprocessor always runs Linux. However, you can run either Linux or Windows on the host system. Regardless of which operating system you run on your host, you will always install a version of the MPSS.
If you want to run Windows on your host system and use OpenCL with the coprocessor, you would use the OpenCL™ Runtime 14.2 for Intel® CPU and Intel® Xeon Phi™ coprocessors for Windows* (64-bit) which would give you a Windows compatible runtime for your host and a Linux compatible runtime for the coprocessor. There is no OpenCL™ Code Builder for Windows, independent of the Intel® INDE and Intel® Media Server Studio, neither of which support the 14.2 version of the runtime.

Related

How to resolve the mismatch between OpenCl Library and OpenCl platform?

Openvino inference crashes. I think the source of issue is the note at the end of clinfo command:
your OpenCL library only supports OpenCL 2.1,
but some installed platforms support OpenCL 3.0.
Programs using 3.0 features may crash or behave unexpectedly
How can I upgrade my OpenCL library to 3.0 to resolve the issue?
OS: Ubuntu 20.04
Kernel: 5.15.2-051502-generic
The content of /etc/OpenCL/vendors/intel.icd file is:
/usr/lib/x86_64-linux-gnu/intel-opencl/libigdrcl.so
Try installing the latest Intel Compute Engine 21.45.21574 and see if it resolves the issue.

How to install AMD Video Drivers for Intel Core 2 Duo - (OpenCL requirement.)

My Laptop does not have any Graphic Card. It is a simple Intel(R) Core(TM)2 Duo CPU T6500 # 2.10GHz with Ubuntu 15.10. I want to work with OpenCL 1.2. I Installed the Ubuntu version of OpenCL from here https://software.intel.com/en-us/forums/opencl/topic/390630.
Now if I run the 'clinfo' command in Terminal, it gives me:
Number of platforms : 1
and the rest of the info about the platform. Till this part, it's working fine.
But then I followed some simple codes to learn OpenCL from https://github.com/HandsOnOpenCL. I try to run any example and it gives me the following error.
Exception
ERROR: clCreateContextFromType(CL_DEVICE_NOT_AVAILABLE)
I followed the error and found out through this CL_DEVICE_NOT_AVAILABLE using Intel Core 2 Duo E8500 CPU that my CPU does not support OpenCL. In the comments section, they have discussed that alternatively AMD video drivers could be used to run OpenCL...
What is the exact procedure for downloading and installing AMD Video drivers for Intel(R) Core(TM)2 Duo CPU T6500 # 2.10GHz with Ubuntu 15.10?? Is there any tutorial that I can follow? Do I have to install the Catalyst?
You just need to install AMD-APP-SDK which stands for AMD OpenCL™ Accelerated Parallel Processing SDK.
The installation procedure is very simple:
sudo apt-get install mesa-common-dev
Download AMD-APP-SDKInstaller-v3.0.130.135-GA-linux64.tar.bz2 from here and install.
sudo reboot

"Unsupported gpu architecture 'compute_30'" while installing gpu tools for R

I was trying to install 'gputools' and 'rpud', but got the same "nvcc fatal : Unsupported gpu architecture 'compute_30" error for both.
I assume something is wrong with my CUDA kit configuration.
I installed:
CUDA drivers 3.1.17
CUDA toolkit 3.2.17
GPU computing SDK 3.1
I can see CUDA panel in system preferences, and the path to NVCC is placed as well.
Machine is MAC Book Pro with OSX 10.6.8, Nividia gt 330m (with drivers 256.00.35f12), Intel Core i7
Maybe someone could help to solve this problem?
I believe that at the time of CUDA Toolkit 3.2 there were no devices of compute capability 3.0. However, support for the cards of compute capability 3.0 is obviously required by 'gputools' and 'rpud' so you should simply install newer CUDA Toolkit such as 6.5, latest driver etc., that already support compute capability 3.0.
Also, your GPU, GT330m, is only of compute capability 1.2, so in the end, once you do all of the above, you won't be able to run the software using your GPU anyway.
Also, I have no knowledge of 'gputools', nor 'rpud', but I presume you are talking about this package. If so, then quoting from linked resource:
SystemRequirements: Nvidia's CUDA toolkit (>= release 5.0)

Creating a binary dependant on Qt 5

I created a development environment with Fedora 18 and Qt 5
When I compile my app it will be 64 bit, and depend on Qt 5. After some research it seems that will be a problem since Centos 6.x is still dependong on Qt 4.6, and Centos 5.x is dependant on earlier Qt, and I'm guessin Ubuntu has its own package limitations.
Is there a "safe" version of Qt I can compile against to ensure it runs everywhere? If not, how can I expect customers to run my program?
If you want to target Linux, then I would recommend using Qt 4.8 (available on most of the Linux Distros), forget about Qt 5 for a year or so. Hardly any Linux distro other than Ubuntu 13.04 and above comes with Qt 5.
Secondly, as far as compiling is considered, if you wish to target Linux distros other than Ubuntu and Fedora than never use Ubuntu or Fedora for compilation. These are bleeding edge Linux distros which include new libraries without much testing. You will not only face the problem of old Qt versions in some Linux distros as you will face the bigger problem of glibc (C library). Make sure the Linux distro you use for compilation has a minimum possible glibc version for Qt 4.8, otherwise even if any Linux distro has Qt 4.8 installed, but has a lower version of glibc, you app still won't run. You can check out distrowatch.com to find out glibc and Qt versions for any Linux Distro
Example:
I compiled my app on Ubuntu 12.04, Qt 4.8.1 with glibc v 2.16 (perhaps). I got a bug report than application does not run on CrunchBang which also has Qt 4.8.1 available but since it is a Debian unstable Linux Distro it uses glibc v2.13. Since that day I always compile my application on CrunchBang (very lighweight, you can Virtual Box for this) and hardly some one complains now.
As far as CentOs is considered, you will need to recompile your code on CentOS.

How can I install OpenCL in Linux Mint

I'm trying to install OpenCL in Linux Mint over an Intel Atom 1.8 32 bits CPU but in the Intel website there are only for 64 bits CPU.
Does anyone know how to install it using a 32 bits CPU?
Unfortunately, Intel's OpenCl runtime has high platform requirements (Core-family with SSE 4.1 for CPU computation or 3rd-gen Core processor for GPU).
Use AMD's OpenCL runtime. It requires just a processor supporting SSE2. http://developer.amd.com/tools/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/

Resources