-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[AMDGPU] Handle hazard in v_scalef32_sr_fp4_* conversions #118589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -642,17 +642,18 @@ body: | | |
| ... | ||
|
|
||
| --- | ||
| name: test_scalef32_sr_pk_fp4_bf16_neg_opsel0_hazard | ||
| name: test_scalef32_sr_pk_fp4_bf16_opsel0_hazard | ||
| body: | | ||
| bb.0: | ||
| liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3, $vgpr4 | ||
| ; GCN-LABEL: name: test_scalef32_sr_pk_fp4_bf16_neg_opsel0_hazard | ||
| ; GCN-LABEL: name: test_scalef32_sr_pk_fp4_bf16_opsel0_hazard | ||
| ; GCN: liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3, $vgpr4 | ||
| ; GCN-NEXT: {{ $}} | ||
| ; GCN-NEXT: S_WAITCNT 0 | ||
| ; GCN-NEXT: renamable $vgpr0 = GLOBAL_LOAD_DWORD killed renamable $vgpr0_vgpr1, 0, 0, implicit $exec | ||
| ; GCN-NEXT: S_WAITCNT 3952 | ||
| ; GCN-NEXT: early-clobber renamable $vgpr1 = V_CVT_SCALEF32_SR_PK_FP4_BF16_e64 0, killed $vgpr2, 0, killed $vgpr3, 0, killed $vgpr4, killed $vgpr0, 0, implicit $mode, implicit $exec | ||
| ; GCN-NEXT: S_NOP 0 | ||
| ; GCN-NEXT: renamable $vgpr0 = V_ADD_U32_e32 killed $vgpr1, $vgpr1, implicit $exec | ||
| ; GCN-NEXT: S_SETPC_B64_return undef $sgpr30_sgpr31, implicit killed $vgpr0 | ||
| S_WAITCNT 0 | ||
|
|
@@ -731,17 +732,18 @@ body: | | |
| ... | ||
|
|
||
| --- | ||
| name: test_scalef32_sr_pk_fp4_f32_neg_opsel0_hazard | ||
| name: test_scalef32_sr_pk_fp4_f32_opsel0_hazard | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why rename here?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change adds
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was never a negative test though, it was pre-commited for this |
||
| body: | | ||
| bb.0: | ||
| liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3, $vgpr4, $vgpr5 | ||
| ; GCN-LABEL: name: test_scalef32_sr_pk_fp4_f32_neg_opsel0_hazard | ||
| ; GCN-LABEL: name: test_scalef32_sr_pk_fp4_f32_opsel0_hazard | ||
| ; GCN: liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3, $vgpr4, $vgpr5 | ||
| ; GCN-NEXT: {{ $}} | ||
| ; GCN-NEXT: S_WAITCNT 0 | ||
| ; GCN-NEXT: renamable $vgpr0 = GLOBAL_LOAD_DWORD killed renamable $vgpr0_vgpr1, 0, 0, implicit $exec | ||
| ; GCN-NEXT: S_WAITCNT 3952 | ||
| ; GCN-NEXT: early-clobber renamable $vgpr1 = V_CVT_SCALEF32_SR_PK_FP4_F32_e64 0, killed $vgpr2_vgpr3, 0, killed $vgpr4, 0, killed $vgpr5, killed $vgpr0, 0, implicit $mode, implicit $exec | ||
| ; GCN-NEXT: S_NOP 0 | ||
| ; GCN-NEXT: renamable $vgpr0 = V_ADD_U32_e32 killed $vgpr1, $vgpr1, implicit $exec | ||
| ; GCN-NEXT: S_SETPC_B64_return undef $sgpr30_sgpr31, implicit killed $vgpr0 | ||
| S_WAITCNT 0 | ||
|
|
@@ -1119,17 +1121,18 @@ body: | | |
| ... | ||
|
|
||
| --- | ||
| name: test_cvt_scale_cvt_scalef32_sr_pk_fp4_f16_neg_opsel0_hazard | ||
| name: test_cvt_scale_cvt_scalef32_sr_pk_fp4_f16_opsel0_hazard | ||
| body: | | ||
| bb.0: | ||
| liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3 | ||
| ; GCN-LABEL: name: test_cvt_scale_cvt_scalef32_sr_pk_fp4_f16_neg_opsel0_hazard | ||
| ; GCN-LABEL: name: test_cvt_scale_cvt_scalef32_sr_pk_fp4_f16_opsel0_hazard | ||
| ; GCN: liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3 | ||
| ; GCN-NEXT: {{ $}} | ||
| ; GCN-NEXT: S_WAITCNT 0 | ||
| ; GCN-NEXT: renamable $vgpr2 = V_CVT_SCALEF32_PK_FP4_F16_e64 8, $vgpr0, 0, $vgpr1, 4, killed $vgpr2, 0, implicit $mode, implicit $exec | ||
| ; GCN-NEXT: S_NOP 0 | ||
| ; GCN-NEXT: early-clobber renamable $vgpr4 = V_CVT_SCALEF32_SR_PK_FP4_F16_e64 0, killed $vgpr0, 0, killed $vgpr3, 0, killed $vgpr1, killed $vgpr2, 0, implicit $mode, implicit $exec | ||
| ; GCN-NEXT: S_NOP 0 | ||
| ; GCN-NEXT: $vgpr0 = V_MOV_B32_e32 killed $vgpr4, implicit $exec, implicit $exec | ||
| ; GCN-NEXT: S_SETPC_B64_return undef $sgpr30_sgpr31, implicit killed $vgpr0 | ||
| S_WAITCNT 0 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you combine the fp4 and fp8 queries?