AMD and OpenCL 2.0

>> Wednesday, October 1, 2014

The good news is that AMD has released new drivers that enable OpenCL 2.0 support on existing graphics cards. This makes AMD the first company to provide real-world support for OpenCL 2.0.

The bad news is that all my attempts to install the Linux driver have failed. My target system runs 64-bit CentOS 6.5, but when I ran Catalyst, it gave me a 32-bit RPM. This made me nervous, but I uninstalled the existing driver, installed the 32-bit software dependencies, and finished the driver installation. Now when I start the computer, it hangs during the bootloading process. Grr...

I've been a fan of AMD even since they released the Athlon 64 CPU. But dealing with fglrx is murder. I have never installed an AMD graphics driver without repeated trial and error.

5 comments:

David November 19, 2014 at 1:35 PM  

I didn't have any problem installing the driver, but I can't compile the examples. The AMD APP SDK only supports OpenCL 1.2. How are we supposed to use the examples?

BinarySearchDeviceSideEnqueue.cpp:(.text+0x416f): undefined reference to `clCreateCommandQueueWithProperties'

David November 19, 2014 at 3:02 PM  

Well, I can get the examples to compile if I add -L/usr/lib/fglrx to the link arguments, but they still won't run. I think it's because my video card (Radeon HD 7670) doesn't support OpenCL 2.0 (Required CL_DEVICE_OPENCL_C_VERSION 2.0 or higher). I guess I'll stick with 1.2 for a while.

Matt Scarpino November 19, 2014 at 3:46 PM  

I'm sorry to hear that you weren't able to run your app, but I'm glad to hear the installation process worked for you. I'll have to give it another try soon.

Pradeep December 1, 2014 at 6:34 AM  

“@Matt : AMD OpenCL 2.0 14.41 driver supports RHEL 6.5 and Ubuntu 14.04 as mentioned in the link. I see that you have CentOS 6.5. While typically it is expected to run on CentOS too, its possible issues might be observed on non-supported OS. Can you try installing the driver on Ubuntu 14.04 or RHEL 6.5?

@David: It seems like you are trying to compile the 2.0 sample provided in the blog using OpenCL headers/libs in APP SDK which, at the time of writing, only supports 1.2. You need to use the 2.0 headers bundled along with zip file provided in blog

Pradeep January 4, 2015 at 7:48 PM  

Also, in case you have not checked, APP SDK 3.0 Beta is available (released on Dec 9 2014). This SDK includes several samples demonstrating various features of OpenCL 2.0. It also includes OpenCL 2.0 headers and libraries. Try this with the latest AMD Catalyst Omega (14.12) driver.

APP SDK 3.0 Beta can be downloaded from http://developer.amd.com/tools-and-sdks/opencl-zone/amd-accelerated-parallel-processing-app-sdk/
AMD Catalyst can be downloaded from http://support.amd.com/en-us/download

Post a Comment

  © Blogger template Werd by Ourblogtemplates.com 2009

Back to TOP