AnsweredAssumed Answered

Trouble with cl::Platform

Question asked by illoran on Sep 22, 2012
Latest reply on Sep 23, 2012 by illoran

Hi all,

i am very new to OpenCL, so obviously my first step was to do the "Hello World!" thingy from


I'm using the recent AMD APP SDK on an Ubuntu 12.04 Installation. I Have a i7-3770-CPU and no

GPU installed. Everything seems to work fine except for two lines of code:


cl::vector<cl::Platform> platformList;



The gcc-Compiler tell me that there is no method that can take the platformlist of the Type cl::vector<cl::Platform>, it also suggest to

use the STL-Vector, but when i do so there are hundreds of Compiler errors.


gcc -Wall -o hello -L /opt/AMDAPP/lib/ -I /opt/AMDAPP/include/ main.cpp

main.cpp: In Funktion »int main()«:

main.cpp:26:33: Fehler: keine passende Funktion für Aufruf von »cl::Platform::get(cl::vector<cl::Platform>*)«

main.cpp:26:33: Anmerkung: Kandidaten sind:

/opt/AMDAPP/include/CL/cl.hpp:1728:19: Anmerkung: static cl_int cl::Platform::get(std::vector<cl::Platform>*)

/opt/AMDAPP/include/CL/cl.hpp:1728:19: Anmerkung:   keine bekannte Umwandlung für Argument 1 von »cl::vector<cl::Platform>*« nach »std::vector<cl::Platform>*«


Any ideas might be helpful =)

so long Illo


PS : Sry for german error-messages, i hope they become understandable from the context.