hipBLASLt icon indicating copy to clipboard operation
hipBLASLt copied to clipboard

Removed unused code paths that referrs to unimplemented addInst method.

Open tcgu-amd opened this issue 1 year ago • 4 comments

Related issue: https://github.com/ROCm/hipBLASLt/issues/1223

Removed sections of code that contains addInst & replaced some code paths containing addInst() raise NotImplementedError.

tcgu-amd avatar Oct 29 '24 19:10 tcgu-amd

Could you just comment out (or raise NotImplementedError) the codes where to use addInst()?

Hi, for sure if that's preferred. I was deleting some files because addInst was in an unavoidable code path. E.g. there's only one class in the file and the init function calls addInst unconditionally. I am not sure if raising an error in the init function unconditionally would make sense though, but I can comment out the entire file as opposed to deleting it.

tcgu-amd avatar Oct 30 '24 12:10 tcgu-amd

Hi @jichangjichang I have modified the changes to comment out codes instead. Would you mind taking a look again? Thanks!

tcgu-amd avatar Nov 04 '24 20:11 tcgu-amd

@tcgu-amd Could you just replaced only where use addInst() as raise NotImplementedError. example: Before:

cimod.addInst(VMovB32(dst=vgpr(Holder(name="ValuC+1")), src=vgpr("ValuC+%u"%(srcIdx+accImOffset)), comment="Rearrange MI out reg"))`

After:

# cimod.addInst(VMovB32(dst=vgpr(Holder(name="ValuC+1")), src=vgpr("ValuC+%u"%(srcIdx+accImOffset)), comment="Rearrange MI out reg"))" raise NotImplementedError

jichangjichang avatar Nov 07 '24 09:11 jichangjichang

@tcgu-amd Could you just replaced only where use addInst() as raise NotImplementedError. example: Before:

cimod.addInst(VMovB32(dst=vgpr(Holder(name="ValuC+1")), src=vgpr("ValuC+%u"%(srcIdx+accImOffset)), comment="Rearrange MI out reg"))`

After:

# cimod.addInst(VMovB32(dst=vgpr(Holder(name="ValuC+1")), src=vgpr("ValuC+%u"%(srcIdx+accImOffset)), comment="Rearrange MI out reg"))" raise NotImplementedError

Sure!

tcgu-amd avatar Nov 07 '24 14:11 tcgu-amd

Please resolve merge conflicts or close this PR to complete the task of importing PRs from this repo to the monorepo.

jayhawk-commits avatar Jun 20 '25 18:06 jayhawk-commits

Please resolve merge conflicts or close this PR to complete the task of importing PRs from this repo to the monorepo.

jayhawk-commits avatar Jun 20 '25 18:06 jayhawk-commits