Results 1 to 2 of 2

Thread: Need some help understanding how to obtain a threads warpid

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    12

    Need some help understanding how to obtain a threads warpid

    Hi there,

    Apologies for the newb question im having some trouble getting my head around openCL in relation to a 3d case.

    I'm wanting to obtain the relevant warpId of a given thread, in a 1D case this translates to get_local_id(0)? However I'm unsure how to obtain the warpId for the 3d case, I'm having trouble understanding how the local ids, and group size relate to one another, any help/explanation would be massively appreciated.

  2. #2
    Senior Member
    Join Date
    Jul 2009
    Location
    Northern Europe
    Posts
    311

    Re: Need some help understanding how to obtain a threads warpid

    The global thread id in each dimension is just get_local_id(A) where A is 0=x, 1=y, 2=z.
    The group id is similarly get_group_id().

    These don't exactly translate into Nvidia's warps, but they are close. All the work-items in a work-group execute on the same streaming processor, which is similar to a warp.

Similar Threads

  1. Obtain a pixel color value from an android?
    By as32b in forum OpenGL ES general technical discussions
    Replies: 0
    Last Post: 07-19-2010, 10:28 AM
  2. help! to obtain current viewport, GL_VIEWPORT not recognized
    By vrs762 in forum OpenGL ES general technical discussions
    Replies: 1
    Last Post: 10-27-2005, 01:52 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
  •