I implemented the same algorithm both on CPU and GPU using
CUDA C. In order to check if the results are correct I check if the 2 arrays of double calculated by both are the same with a precision of 1.0E-8 . And the result is that the 2 arrays are not the same. Is it possible to have different results because I'm working on two different entity or there might be some errors in my code?
I have to increase to 1.0E-3 to consider them equal!