Make sure you are specifying the correct size. Specifying a domain of size (x1, x2), means part of stream from x1 to x2-1 would be used. So, the maximum domain extent can be (0, width) if you want to use complete stream.
or
(0,0) to (width, height) in case of 2D stream.
Originally posted by: gaurav.garg
Make sure you are specifying the correct size. Specifying a domain of size (x1, x2), means part of stream from x1 to x2-1 would be used. So, the maximum domain extent can be (0, width) if you want to use complete stream.
or
(0,0) to (width, height) in case of 2D stream.
For single element extent should be-
unsigned int begin[]={0,0};
unsigned int end[]={1,1};
Originally posted by: gaurav.garg
For single element extent should be-
unsigned int begin[]={0,0};
unsigned int end[]={1,1};
I think the sample given is correct. You can take a look at the given CPU function to verify GPU output and see what it intends to do.