Different Results in Debug and Release Mode for cuSparse

Hello,

I just came across a very strange situation when I try to implement cusparseScsrsm2_solve(). Everything is correct in release mode, however, I will get wrong results in debug mode even though everything is the same and cusparseScsrsm2_solve() still returns cudaSuccess.

Any advice?

Thanks!

The cusparse library call is unaffected by debug vs. release settings. You are calling a routine in a compiled library - it is not recompiled according to your project settings. Therefore I would investigate your own code for the source of the difference.

Thanks! I have already found out what went wrong.