cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

aymankh
Journeyman III

Question using instance and domainsize in brook

Hi,

 I have a question using domainsize in a compute kernel in brook.

The function takes a uint4. What are the components ?

I also have a queson abount instance() in a compute kernel because threads are 1 D in CAL now, so how brook computes x and y in instance().

 

0 Likes
1 Reply
gaurav_garg
Adept I

Brook+ generated IL has calculation to convert 1D thread id into 2D or 3D thread id using stream dimensions. You can avoid this calculation if you declare the kernel parameter with 1D scatter stream.

0 Likes