OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1718 Discussions

How to make use of multiple platforms simultaneously?

zhaopeng
Beginner
277 Views
Hello,

I have a desktop with Intel CPU and Nvidia GPU. The Intel OpenCL SDK and Nvidia Driver have been installed. So I could get two platforms.

Now I try to solve a problem using these two platforms simultaneously. What I should do is to get two platform IDs and the devices IDs of each platform. Then two contexts should be created for each platform and several command queues for each devices. The problem should be split into several parts and each is solved on one devices.

Am I right? Any better ideas?
0 Kudos
1 Reply
Evgeny_F_Intel
Employee
277 Views
Hi,


This is the only solution for two different platforms.
OpenCL enables data and event sharing only within same OpenCL context.

Evgeny
0 Kudos
Reply