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.
1663 Discussions

Does Intel OpenCL SDK support task parallel interfaces

susangao
Beginner
156 Views
Hi,

I read the user guide and try to find some task parallel content (as what TBB does for task management), however, I feel that I still can not get the answer.
Does current release of Intel OpenCL SDK support task parallel? Will the tasks be scheduled by OpenCL implementation?
Sorry for silly question, and thank you for reading this post.
Susan
0 Kudos
3 Replies
Evgeny_F_Intel
Employee
156 Views
Hi Susan,

You have two options for Task Parallelism.
1. Create single Out of Order queue and submit Tasks to it.
2. Create muliple In Order queues and submit tasks that should be run in parallel to different queues.

Don't forget clFlush() in both cases.

Thanks,
Evgeny
susangao
Beginner
156 Views
Thank you very much. So there is task scheduler to map tasks to threads and help on load balance, is it correct?

Thanks,
Susan
Evgeny_F_Intel
Employee
156 Views
Yes,
it's correct.
Reply