Closed GoogleCodeExporter closed 9 years ago
Well that's embarrasing. Thanks for finding this. Clearly I need another test
case ;)
I will fix this today and put out another binary.
Original comment by frost.g...@gmail.com
on 15 Feb 2012 at 3:34
Ken I just checked in the code for this in the main branch.
I will build a binary now.
Here is the test code I used.
import com.amd.aparapi.Kernel;
import com.amd.aparapi.Range;
public class TestPasses{
public static void main(String[] args) {
final int data[] = new int[64];
Range range = Range.create(data.length);
Kernel kernel = new Kernel(){
@Override public void run() {
data[getGlobalId(0)]+=getPassId();
}
};
kernel.execute(range, 4);
for (int i:data){
System.out.print(i+",");
}
System.out.println();
}
}
Original comment by frost.g...@gmail.com
on 15 Feb 2012 at 4:57
Yes, that seems to fix it for me, thanks.
Original comment by kenneth@hexad.dk
on 16 Feb 2012 at 12:32
Original issue reported on code.google.com by
kenneth@hexad.dk
on 15 Feb 2012 at 12:30