Reply – Re: Parallel computation on CPU faster than GPU!
Your Name
Subject
Message
or Cancel
In Reply To
Re: Parallel computation on CPU faster than GPU!
— by Giovanni Idili Giovanni Idili
// an array with available opencl devices detected on your system
CLDevice[] devices = context.getDevices();

for(int i=0; i<devices.length; i++)
{
   out.println("device-" + i + ": " + devices[i]);
}

// have a look at the output and select a device
CLDevice device = devices[0];

Hope it helps!

On Thu, Oct 13, 2011 at 7:07 PM, Abimael [via jogamp] <
ml-node+s762907n3419346h9@n3.nabble.com> wrote:

>
> @Michael
>
> I had heard about it , but how can I do that.? I mean, how can I run OPENCL
> on CPU to compare ?
>
> I recall that I read some day that in either createProgram or build (I do
> not recall which one) , I could pass an argument to redirect to GPU or CPU..
>
>
> Is that the way to run OpenCL on CPU , or should I need to install a proper
> implementation (or libraries) to run on CPU ?
>
> thanks
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://forum.jogamp.org/Parallel-computation-on-CPU-faster-than-GPU-tp2963506p3419346.html
>  To unsubscribe from Parallel computation on CPU faster than GPU!, click
> here<http://forum.jogamp.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2963506&code=Z2lvdmFubmkuaWRpbGlAZ21haWwuY29tfDI5NjM1MDZ8LTEwODg4NzEzNjM=>.
>
>