[BUGFIX]: Force unroll a loop that doesn't have compilation constant (#441)
loop times is dangerous. Signed-off-by: Peter Han <fujun.han@iluvatar.ai>
This commit is contained in:
parent
167ac54c65
commit
4c0d6e1eb4
@ -101,7 +101,7 @@ CUTLASS_DEVICE void dump_fragment(Fragment const& frag, int N = 0, int M = 0,
|
||||
for (int tid = 0; tid < N; ++tid) {
|
||||
if (tid == thread_id) {
|
||||
printf("TB%d W%d T%d: ", block_id, tid / 32, tid & 31);
|
||||
CUTLASS_PRAGMA_UNROLL
|
||||
CUTLASS_PRAGMA_NO_UNROLL
|
||||
for (int i = 0; i < M; i += S) {
|
||||
printf("%.0f ", float(typename Fragment::value_type(frag[i])));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user