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.
Related
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
Installing R packages has been super slow on my AWS ec2 computer. I connect to it through terminal. The ec2 OS is amazon linux 2 (red hat-based), though I have also had the same issue trying an ubuntu os on ec2. Compared to on my mac laptop (which can install the same packages in a few seconds), installing packages on my ec2 computer (while running R using the "R" command, tried both "R" and "sudo R") takes several minutes. I have tried running different types of ec2 configurations in terms of RAM and processing power (up to r4.16xlarge 64 cpus 488 memory) with no improvement to the level of speed my laptop has. Additional details: my laptop is the most recent MacBook Pro 16 GB 2133 MHz LPDDR3 3.1 GHz Intel Core i7 Intel HD Graphics 630 1536 MB and I install packages usually in Rstudio using install.packages().
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.
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
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.