OpenCL.jl CL_PLATFORM_NOT_FOUND_KHR - opencl

This week I've faced a very popular error: CL_PLATFORM_NOT_FOUND_KHR using OpenCL.jl. However nothing found in google helps to overcome it. I've tried complete reinstalling CUDA, using different versions of drivers etc.
What's strange: deviceQuery CUDA tool works as expected, while julia has that error.

I don't know why I have been looking at CUDA but not at OpenCL.
dpkg -l | grep nvidia
shows all the truth:
ii nvidia-375 375.39-0ubuntu5 amd64 NVIDIA binary driver - version 375.39
ii nvidia-375-dev 375.26-0ubuntu1 amd64 NVIDIA binary Xorg driver development files
ii nvidia-driver-local-repo-ubuntu1604 375.51-1 amd64 nvidia-driver-local repository configuration files
ii nvidia-modprobe 375.51-0ubuntu1 amd64 Load the NVIDIA kernel driver and create device files
ii nvidia-opencl-icd-375 375.51-0ubuntu1 amd64 NVIDIA OpenCL ICD
ii nvidia-prime 0.8.4 amd64 Tools to enable NVIDIA's Prime
ii nvidia-settings 375.51-0ubuntu1 amd64 Tool for configuring the NVIDIA graphics driver
Here you can see I've had different versions of nvidia drivers and nvidia-opencl-icd-375. Installing correct version of it with
sudo apt install nvidia-opencl-icd-375=375.39-0ubuntu5
made it finally work.
For some reason I can't yet install latest (375.51) version of nvidia drivers, there are some dependency problems with xorg-video-abi. But that's already enough for me.

Related

ArrayFire OpenCL Issue

I have installed ArrayFire 3.8.0 using the binary installer as per the instructions mentioned in the documentation. All dependencies were installed before installing it. NVIDIA CUDA Toolkit 11.3 is also installed. Installation was successful.
To test the installation, I have also build the examples as mentioned in the guide. There was no error during the build process. CPU & CUDA builds are running fine but OpenCL samples are not running. When I execute ./helloworld_opencl example, nothing happens on terminal. No process is shown in top & nvidia-smi.
Please guide me what could be the issue here. Clinfo command is running fine. I am on Ubuntu 20.04.
Thanks

I can't get clinfo to show gpu or cpu

I am running Ubuntu 18.04 and have an RX 580 amd GPU. I installed the pro drivers (19.10) and I installed opencl, but when I run clinfo it shows 0 platforms. How can I make it detect my GPU.
I had this issue with ubuntu 16.04 as well and I was unable to get it to work with any of the AMD pro drivers or the regular ones.
Ok I just ran "sudo apt install mesa-opencl-icd" and it fixed it. Hope this helps someone.

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

Installing OpenCL on XeonPhi

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.

"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)

Resources