CPU as host and intel HD 4000 as device 1 and discrete gpu as device 2 in opencl

Is it possible to use integrated graphics Intel HD 4000 and a discrete graphics processor simultaneously with OpenCL (or CUDA) as devices and a central processor as a host? I want some code to work on integrated graphics, and another code to work on my GPU at the same time.

+4
source share
1 answer

You can run OpenCL on some Ivy Bridge integrated GPUs using Intel's latest Windows OpenCL SDK (available here ). Intel ICD will list both the main processor and the integrated GPU as devices that support OpenCL. Then you will need to use the manufacturer’s discrete SDK and ICD to identify and list this as an OpenCL device. Once this is done, contexts can be set on the GPUs, and the standard OpenCL multi-gpu designttert template is used to run code on both devices. Whether this will actually work in practice will depend on the support and stability of both vendor SDKs.

I have a discrete Ivy-Bridge + GPU system and have confirmed that Intel ICD lists the HD4000 as a computing device. I have not tried OpenCL simultaneously on both devices.

NVIDIA does not support CUDA on anything other than its own GPUs.

+5
source

All Articles