UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor smhaider
Visitor
806 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
Xilinx Employee
Xilinx Employee
779 Views
Registered: ‎03-24-2010

Re: Opencl Synthesis

Jump to solution

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.
----------------------------------------------------------------------------------------------
3 Replies
Xilinx Employee
Xilinx Employee
780 Views
Registered: ‎03-24-2010

Re: Opencl Synthesis

Jump to solution

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.
----------------------------------------------------------------------------------------------
Highlighted
Moderator
Moderator
734 Views
Registered: ‎11-04-2010

Re: Opencl Synthesis

Jump to solution

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
Adventurer
Adventurer
465 Views
Registered: ‎02-28-2015

Re: Opencl Synthesis

Jump to solution

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