On 07/06/2012 09:34 PM, Grant Strong [via jogamp] wrote:
I should get both Intel Xeon CPU and an NVIDIA
GeForce GTX 480 GPU. I am only getting the first device in the
call to context.getDevices(). I've tried older and the newest
NVIDIA drivers and nothing changes. I've tried removing everything
to do with the Intel that I could find, and nothing changes. Then
I tried using LexMark and it recognized that both devices are
there, the CPU and GPU. Any ideas why JOCL will not?
multi-device-(type) contets are not a requirement by the spec.
Currently only AMD supports CPU+GPU contexts.
- CLPlatform.listPlatforms() gives you all drivers
- every platform has a set of CLDevices
- they may overlap (but once again its not a requirement to be able
to create a context with all devices in it)
- creating a context without specifying a device will try to give
you a "good" set of devices (see javadoc)
jocl has some concurrency utilities like CLMultiContext, command
queue pools, FJ pools etc to circumvent this detail entirely.
have fun,
--
- - - -
http://michael-bien.com