being new to CUDA, I was wondering whether the following FORTRAN statement is correctly translated to CUDA:
FORTRAN-77 iarg=nint( 64i2pi( xarg-aint(xarg)+1. ) )
CUDA iarg = (int)rint(64. * 2pi * (xarg - (float)((int)xarg) + 1.));
Would these two be equivalent? I sometimes get a slightly different result and am not sure whether
this is down to using different compilers, numerical accuracy etc.
Also, when running the code Windows XP is shutting down now and then. This appears at arbitrary points. I’m using an
NVIDIA GTX 285. Each kernel runs for much less than 1 second, has ‘syncthreads()’ at the end and memory usage should not be a problem.
Did anyone else experience a similar problem? Is this perhaps related to the GPU getting too hot? Fortunately, the computer
recovered everytime so far.
Other than this, I’m quite impressed with the speedup that can be achieved.
Many thanks in advance for your advice!