hi, my code runs well in command line (in cuda-gdb it exits with code 12). But when it’s run in the visual profiler, after printing some result in the first iteration, it gives the error saying “exit with code 10”, and quits running. any idea what that’s about? thanks!!
Rule of thumb, if a program exits with anything different than 0, there’s an error. Unless you explicitly added “return 12;” at the end of main, which would be stupid.
Do you clean all allocated device pointers with cudaFree()? Do you put cudaThreadExit() before returning from main?