AnsweredAssumed Answered

General purpose computing using OpenCL with Radeon R5 M330 on Ubuntu 16.04.1 LTS (64-bit): Error: clGetPlatformIDs(-1001)

Question asked by kkmtech on Sep 24, 2016
Latest reply on Sep 26, 2016 by dipak

Hi, I have the Radeon R5 M330 GPU with Intel core i5-5200U CPU in my Lenovo G50-80 notebook. The OS is Ubuntu 16.04.1 LTS (64-bit).

I wish to utilize my Radeon for computational purposes only on Ubuntu and am not bothered with graphics/gaming. I have installed both the AMDAPPSDK-3.0 for AMD’s OpenCL driver support and Intel’s OpenCL SDK.


lspci successfully recognizes the GPU:

04:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330] (rev ff)

I was able to successfully compile my OpenCL program (the host routines are in C++) with both AMD’s and Intel’s OpenCL libraries SEPARATELY. However, on executing both these versions (even with sudo), I get the following error message:

Error: clGetPlatformIDs(-1001)


On running clinfo as sudo in /opt/AMDAPPSDK-3.0/bin/x86_64, I get the following message:

terminate called after throwing an instance of 'cl::Error'

what(): clGetPlatformIDs

Aborted (core dumped)


I am unable to find any specific help on the internet with this issue, as they are mostly windows-based like the following one:


Also, as this is an AMD developers’ forum, let me reiterate that I am NOT seeking help for my Intel version: I just wanted to state the bare facts. I would really like to use my Radeon’s 320 cores to accelerate my embarrasingly parallel application and any kind of help will be greatly appreciated.