Hi,
A for loop won't generate brk instructions. You saw it because you were
debugging it, the debuggers (cuda-gdb or nsight) use brk to hot patch
your code to implement a breakpoint.
The compiler won't generate this instruction unless you use the inline
ptx equvilant statement asm volatile ("brkpt;");
Kernels with this ptx statement, will generate a force manually
breakpoint under nsight/cuda-gdb.
And will cause a execution abortion when run directly.
So you can ignore this instruction, it's used by debuggers. Not by you.
> --
> You received this message because you are subscribed to the Google
> Groups "asfermi" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
asfermi+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>