5 Replies Latest reply on Jun 17, 2009 5:02 AM by gaurav.garg

    questions about attribute groupsize

    xmuben

      Attribute[groupsize(x,y,z)] in Stream_Computing_User_Guide.pdf. 

      Attribute[groupsize(256,1,1,1)]:   why is it valid? Does it mean that there are 256 threads in this group? or there are 256 groups and 1*1*1 thread in each group?

      Attribute[groupsize(64,2,1,1)]:    why is it  invalid?

      And why do the both have four parameters?

      If I want to define N groups and M threads in each group, How do I define it?

        • questions about attribute groupsize
          gaurav.garg

          Attribute[groupsize(256,1,1,1)]

          mentions that there are 256 threads in the group. The other 3 dimensions show number of threads in y, z and w direction.

          Currently, only group of 1D size is supported, that's why the second attribute declaration is wrong. But, it can be supported in future.

            • questions about attribute groupsize
              xmuben

               

              Originally posted by: gaurav.garg Attribute[groupsize(256,1,1,1)]

              mentions that there are 256 threads in the group. The other 3 dimensions show number of threads in y, z and w direction.

              Currently, only group of 1D size is supported, that's why the second attribute declaration is wrong. But, it can be supported in future.

               

              Thank you for your answer.  I got it.  Since Brook+ doesn't work like NVidia CUDA. Here I got another question. I want to transfer my application from CUDA to Brook+, and I need a large count of global memory(may be 100M  in 1D form), while the max size of 1D array is 8192 bytes. It can't meet with memory requirement.

              However, My Ati  card memory is 1024M. If I want to use the memory, How do I operate it?