Results 1 to 2 of 2

Thread: Workload in Ati GPU. How Much work-items i have to put?

  1. #1

    Workload in Ati GPU. How Much work-items i have to put?

    Hi,

    In Programming Guide - ATI Stream Computing OpenCL™ in a example of ATI Radeon HD 5870 have 20 Compute Units, each with 16 stream cores and each of that, having 5 Processing Elements, yeld a 1600 Processing Elements.

    But, in other parts say that have the notion of WaveFronts, indicating that have to put more than workload than stream cores, at first because he run a VLIW instruction.

    How much work-items i have to put to execute?

    Considering only in number of the stream cores (320) or considering all (1600)?

    Thanks,

    Luiz.

  2. #2
    Senior Member
    Join Date
    Aug 2011
    Posts
    271

    Re: Workload in Ati GPU. How Much work-items i have to put?

    For starters, that stuff is wildly out of date, use the AMD APP programming guide - OpenCL. It hasn't been called ATI Stream Computing for nearly 2 years.

    The only important number regarding work items is the 20 compute units, and that they have 64-wide wave-fronts (i.e. you need 64 work items to avoid wasting compute resources).

    i.e. if you had a work size of global=20*64, local=64, you would be running something on every compute unit. You then want some multiple of that (either a larger local size, 128 or 256 or many more 64-wide groups) so that multiple wave-fronts execute concurrently which hides memory latency (think of 'hyper threading').

    The 5 PE's are per work-item, i.e. per stream-core. The 16 stream cores take 4 cycles to retire 1 instruction but have 3 others in flight, which gives you the 64-wide wave-front. You have no direct control over the PE's, they are just used by the compiler to do more work in less instruction slots. You can help by unrolling loops or doing vector operations, but it's always a trade-off.

    Usually the number of work items you use is data-dependent and independent of the hardware layout. e.g. use 1 work-item per-pixel for graphic tasks.

Similar Threads

  1. question on work-items?
    By Arian in forum OpenCL
    Replies: 6
    Last Post: 07-10-2012, 12:51 AM
  2. help with work items in work groups
    By gatodelsol in forum OpenCL
    Replies: 3
    Last Post: 09-14-2011, 09:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •