I have a problem in my code and need to debug it. Tried everything I can think of, but cannot find the problem without a debug similar to serial debug and my problem comes down to this:
This is a part of a sample code, which is the one that presents itself if you create new cuda project in VS , but my question is:
I’ve added just the lines 13-18 and several breakpoints, which is describing my problem. How can I debug this kernel (let’s say thread 1) and get n to actually iterate from 0-4, because like this, the loop seems to iterate (if i click continue, it jumps through breakpoints 5 times), but n is always ‘n’ has no value at the target location