Results 1 to 2 of 2

Thread: get_compute_unit_id and get_processing_element_id functions

  1. #1
    Senior Member
    Join Date
    Mar 2011
    Location
    Seoul
    Posts
    118

    get_compute_unit_id and get_processing_element_id functions

    Currently there is only the software abstracted get_num_groups and get_local_id, but how about the querying about the hardware those are mapped to, something like get_compute_unit_id or get_processing_element_id (and size functions too)? For example, if one were to use atomic operations (I know, they're slow) to perform some kind of reduction, then knowing the compute unit or processing element a work group and work item were mapped to could permit doing local atomic operations rather than global atomic operations.

  2. #2
    Senior Member
    Join Date
    Mar 2011
    Location
    Seoul
    Posts
    118

    Re: get_compute_unit_id and get_processing_element_id functi

    I forgot that work-items from different work-groups cannot access the same local memory, so local atomic operations as described above is not correct. They would still be global atomic operations, but possibly faster than general global atomic operations if each atomic operation is localized to their respective compute units?

Similar Threads

  1. Built-in Functions: Work-Item Functions
    By sean.settle in forum Suggestions for next release
    Replies: 7
    Last Post: 11-17-2011, 07:39 AM
  2. Cannot use math functions
    By iassael in forum OpenCL
    Replies: 10
    Last Post: 12-05-2010, 07:38 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
  •