CuAssembler
CuAssembler copied to clipboard
Assembling failed (NewModi): Unknown modifiers: ({'2_R.64'})
mhi, big god my CuAssembler raise exception when I test the "TestData" my nvcc is 11.3, and my arch is sm_86 it throw following exception when I executed "make hack":
`2023-09-16 23:27:38,221 - ERROR - Assertion failed in:
File hack.cudatest.sm_86.cuasm:2876 :
[B------:R-:W2:-:S01] /*0050*/ LDG.E R5, [R22.64] ;
Error when assembling instruction "[B------:R-:W2:-:S01] LDG.E R5, [R22.64] ;":
Assembling failed (NewModi): Unknown modifiers: ({'2_R.64'})
Known Records:
LDG.E R6, [R4] ;
LDG.E R0, [R4] ;
LDG.E R25, [R18] ;
@P1 LDG.E R58, [R58] ;
@P2 LDG.E.128 R36, [R48] ;
@P2 LDG.E.128 R68, [R76+0x80] ;
@P1 LDG.E.64 R96, [R96] ;
@P0 LDG.E.U16 R38, [R38] ;
@P0 LDG.E.LTC128B R42, [R88] ;
@!P0 LDG.E.STRONG.GPU R40, [R34] ;
LDG.U16.CONSTANT R17, [R17] ;
LDG.U16.CONSTANT R9, [R9+-0x40] ;
LDG.U8.CONSTANT R17, [R17] ;
LDG.U16 R13, [R6] ;
@P2 LDG.E.EL.LTC128B.STRONG.GPU R190, [R188] ;
@P2 LDG.E.EL.LTC128B.STRONG.GPU R190, [R188] ;`
and the codes around line2876 in "hack.cudatest.sm_86.cuasm" as following:
`2871 [B------:R-:W-:Y:S02] /0000/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ;
2872 [B------:R-:W-:-:S01] /*0010*/ IMAD.MOV.U32 R22, RZ, RZ, c[0x0][0x160] ;
2873 [B------:R-:W-:-:S01] /*0020*/ ULDC.64 UR36, c[0x0][0x118] ;
2874 [B------:R-:W-:-:S01] /*0030*/ IMAD.MOV.U32 R23, RZ, RZ, c[0x0][0x164] ;
2875 [B------:R-:W-:Y:S04] /*0040*/ IADD3 R1, R1, -0x28, RZ ;
2876 [B------:R-:W2:-:S01] /*0050*/ LDG.E R5, [R22.64] ;
2877 [B------:R-:W-:-:S02] /*0060*/ MOV R2, 32@lo(flist) ;
2878 [B------:R-:W-:-:S01] /*0070*/ MOV R3, 32@hi(flist) ;
2879 [B------:R-:W0:-:S04] /*0080*/ S2R R17, SR_CTAID.X ;
2880 [B------:R-:W0:-:S01] /*0090*/ S2R R0, SR_TID.X ;
2881 [B------:R-:W-:-:S02] /*00a0*/ IMAD.MOV.U32 R18, RZ, RZ, 0x4 ;`
and line2876 in "hack.cudatest.sm_86.cuasm" as following:
2876 [B------:R-:W2:-:S01] /*0050*/ LDG.E R5, [R22.64] ;
it will be ok when I change arch to sm_60/sm_75。 it will throw above exceptions if I change arch to sm_80/86 but, my real hardware is sm_86, so, I cannot pass these exceptions. I don't know how to fix this trouble, would you like to help me to fix this trouble? or, would you like to tell me the reason?