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.

Execute OpenCL in sequential (1 work item at a time)

Polar01
Beginner
178 Views

Hi,

I would like to do some test and execute all the work items as sequential (avoid parallelism) (and avoid possible conflicts between parallel work items) and would like to know if there is an option for this ?

Thanks

0 Kudos
1 Reply
Evgeny_F_Intel
Employee
178 Views

Hi,

Please create a queue with additional CL_QUEUE_THREAD_LOCAL_EXEC_ENABLE_INTEL flag. This will cause Intel CPU device to use only the calling thread for execution.

Reply