I am checking my code by enabling the CUDA Memory Checker in Nsight Visual Studio and then running the CUDA debugger. This yields no error messages and my simulation outputs for a number of test cases all look correct. However, when running the same test cases using
compute-sanitizer, many errors are reported. Which of the two should I trust? My issue is that if I try to inspect the offending thread indices using the CUDA Debugger as flagged by
compute-sanitizer, no problems show up, and the results appear to be correct as well.
GTX 1050 Notebook
Nsight Build 2020.3.0.20315