I have a kernel that uses code that I directly copied from some CPU-only versions. The two versions give identical results, except that something is causing the CUDA version to give NaN in some spots. I looked throught the code, and of course there are normal operators. The only other things are some pow(), abs() and those types of math operations. I am also using the cuComplex library for workingw ith complext numbers, but it is also being used in the CPU version.
Are there any operations that I should look out for that could be particularly troublesome? Is there any way to set a breakpoint for a particular array index value in cuda-gdb, this way I could inspect the values when that index got changed?