Hello all,
I’m experiencing some very unpredictable errors using the cuda compiler with the SDK custom build rule and visual C++ 2008. Simply adding and removing comments either breaks or fixes the kernel code (when it breaks, the cuda kernel fails and gives the unknown error message). Furthermore, the comment could have been added or removed in the .cu file OR in the .cpp file…changing comments in both of these places is causing unpredictable results.
The predictability of the program seems linked to the executable. After compiling, the resulting executable will behave in one of these ways:
- It will never crash
- It will always crash on certain images, but never on others
- It will crash roughly 50% of the time on certain images
After compiling, it consistently behaves in one of the above three ways. Once the project starts producing an unpredictable exe, I start removing bits of code until it works again. Eventually I will find some arbitrary line that seems to be a culprit. ie, commenting out the line avoids the instability. I test this out several times in a row…then add the culprit line back, and the problem has disappeared.
Because of this odd nature of the problem, I haven’t been able to make a test case…is anyone else having issues similar to this?