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

How to read / write pipe in order with different workgroups and CUs?

Chen__Alex
Beginner
176 Views

Hello~

 i am trying to use Pipe in OpenCL2.0, but in my code I use many different workgroups and CUs. 

I have defined below attribute

__attribute__((num_compute_units(2))) 

In my code  it produces random values and put into different workgroups , for example 2 workgroups of 4x4 dimension each , 

write into the pipe, and then read from the pipe.

 I found that that when CU = 1, values write and read from pipe are in order, but when CU > 2, write / read are not in order.

Does anyone has idea about how to read / write pipe in order with many different workgroups and CUs?

Thanks in advance!

 

 

 

0 Kudos
2 Replies
raymond_z_1
Beginner
176 Views

Which compiler are you using? 

Michael_C_Intel1
Moderator
176 Views

Hi AlexC,

Thanks,

-MichaelC

Reply