Reputation: 1707
my question is not a duplicate of this
the solution provided in the above does not work when using Nsight as a debugger.
how can i view all the elements of an array inside a kernel when using Nsight as a debugger?
QuickWhatch only shows the first 4 elements of the array!
Upvotes: 2
Views: 1458
Reputation: 579
The number of elements NSight will copy to the host for debugging is set in:
Nsight->Nsight Options->Debugger->Max Array elements
The default is 4, which is why you only see 4 elements. Increase this (and restart your debugging session), and you will be fine.
Upvotes: 1