cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
924 Views
Registered: ‎07-05-2018

Opencl Synthesis

Jump to solution

Hi,

 

For the following vadd.cl kernel example:

 

__kernel void vadd(__global const int* a, __global const int* b,__global int* c){

    int id;

   id = get_global_id(0);

   c[id] = a[id] + b[id];

}

 

UG1207 mentions OCL Region for synthesis of compute units.

If queue.enqueueNDRangeKernel is used, what is the max number of work items which can be synthesized ?

If the number of work items exceeds this count are they sequentialized ?

 

Thanks,

Maisum

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Xilinx Employee
Xilinx Employee
897 Views
Registered: ‎03-24-2010

The work-item number could be very large in theory: (2^32, 2^32,2^32).

But be careful about NDRange specification. Try to make global size/local size as small as possible. Ideally, it's to set global size to (1,1,1).

Regards,
brucey
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

View solution in original post

3 Replies
Highlighted
Xilinx Employee
Xilinx Employee
898 Views
Registered: ‎03-24-2010

The work-item number could be very large in theory: (2^32, 2^32,2^32).

But be careful about NDRange specification. Try to make global size/local size as small as possible. Ideally, it's to set global size to (1,1,1).

Regards,
brucey
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

View solution in original post

Highlighted
Moderator
Moderator
852 Views
Registered: ‎11-04-2010

Hi, @smhaider ,

Please close the thread if you don't have further question.

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Highlighted
Adventurer
Adventurer
583 Views
Registered: ‎02-28-2015

Hi @brucey

Did u mean that, If I have global work size as {x, y, z} then it is better to have local work size as {x, y, z} ?

Thank you

Tags (1)
0 Kudos