jordan30001 / aparapi

Automatically exported from code.google.com/p/aparapi
Other
0 stars 0 forks source link

GPU and JTP give different results with complex calculations #85

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
For example code that produces different results please see: 
https://github.com/er453r/Aparapi-RNG/blob/master/src/com/er453r/aparapi/rng/Mer
senneTwisterKernel.java

random method.

To replicate the results one can use: 
https://github.com/er453r/Aparapi-RNG/blob/master/src/com/er453r/aparapi/tests/G
PUCPUComparisonTests.java

From my initial analysis of OpenCL code generated by aparapi the issue is with 
the >>> operator, and how Java doesn't know about unsigned integers.

Original issue reported on code.google.com by er4...@gmail.com on 11 Dec 2012 at 1:37