You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "AntonMoberg (via GitHub)" <gi...@apache.org> on 2025/02/24 16:05:53 UTC
[PR] [BugFix][Codegen, CUDA] Fix faulty codegen for FP8 [tvm]
AntonMoberg opened a new pull request, #17673:
URL: https://github.com/apache/tvm/pull/17673
Fixed bug where CUDA codegen produces faulty code when a vectorizable BufferLoadNode contains a Float8 type.
Codegen generated the invalid signature
"make___nv_fp8x2_e5m2(param_0[v_.x], param_0[v_.y])" where "param_0" is of type "__nv_fp8_e5m2* __restrict__".
This commit adds a missing check "is_float8()" for CodeGenCUDA::PrintVecElemLoadExpr that is called for vectorizable BufferLoadNodes. Which instead correctly generates the signature "_nv_fp8x2_e5m2(make_float2(static_cast<float>(param_0[v_.x], static_cast<float>(param_0[v_.y])))
Additionally this commit removes the added "make_" prefix for float8 in CodeGenCuda::PrintVecConstructor as the correct way to instansiate an nv_fp8x2_[e5m2/e4m3] is through the "_nv_fp8x2_[e5m2/e4m3]" constructor itself.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [BugFix][Codegen, CUDA] Fix faulty codegen for FP8 [tvm]
Posted by "tqchen (via GitHub)" <gi...@apache.org>.
tqchen commented on PR #17673:
URL: https://github.com/apache/tvm/pull/17673#issuecomment-2679464147
thanks @AntonMoberg , @MasterJH5574 would be great if we can validate this PR
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [BugFix][Codegen, CUDA] Fix faulty codegen for FP8 [tvm]
Posted by "AntonMoberg (via GitHub)" <gi...@apache.org>.
AntonMoberg commented on PR #17673:
URL: https://github.com/apache/tvm/pull/17673#issuecomment-2729787471
Ping! @tqchen @MasterJH5574
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [BugFix][Codegen, CUDA] Fix faulty codegen for FP8 [tvm]
Posted by "AntonMoberg (via GitHub)" <gi...@apache.org>.
AntonMoberg commented on PR #17673:
URL: https://github.com/apache/tvm/pull/17673#issuecomment-2710012813
@MasterJH5574 @tqchen This should be ready to be reviewed now.
I am not 100% familiar with this side of the codebase so please make sure I am not making any silly mistakes and that this doesn't break any other things.
Also feel free to make edits if something is fishy :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [BugFix][Codegen, CUDA] Fix faulty codegen for FP8 [tvm]
Posted by "MasterJH5574 (via GitHub)" <gi...@apache.org>.
MasterJH5574 commented on PR #17673:
URL: https://github.com/apache/tvm/pull/17673#issuecomment-2682129244
Thank you @AntonMoberg! Would you mind providing an example which can reproduce the error?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [BugFix][Codegen, CUDA] Fix faulty codegen for FP8 [tvm]
Posted by "AntonMoberg (via GitHub)" <gi...@apache.org>.
AntonMoberg commented on PR #17673:
URL: https://github.com/apache/tvm/pull/17673#issuecomment-2687292725
Hi @tqchen & @MasterJH5574! I am trying to produce a minimal reproducible example but it is proving a bit challenging as the error only occurs in some specific scenarios. However, during this time I have encountered more faulty Codegen related to FP8. I'll get back to you with updates ASAP :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [BugFix][Codegen, CUDA] Fix faulty codegen for FP8 [tvm]
Posted by "AntonMoberg (via GitHub)" <gi...@apache.org>.
AntonMoberg commented on PR #17673:
URL: https://github.com/apache/tvm/pull/17673#issuecomment-2711092998
There we go, it should now be good to go! Had some rebase issues, so sorry for spamming updates
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [BugFix][Codegen, CUDA] Fix faulty codegen for FP8 [tvm]
Posted by "MasterJH5574 (via GitHub)" <gi...@apache.org>.
MasterJH5574 commented on PR #17673:
URL: https://github.com/apache/tvm/pull/17673#issuecomment-2729855034
Thank you @AntonMoberg so much for the update! Will take a look!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [BugFix][Codegen, CUDA] Fix faulty codegen for FP8 [tvm]
Posted by "AntonMoberg (via GitHub)" <gi...@apache.org>.
AntonMoberg commented on PR #17673:
URL: https://github.com/apache/tvm/pull/17673#issuecomment-2690798793
I am converting this PR to draft while I work fleshing it out for more cases. Will provide basic tests and suggested fixes along the way!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [BugFix][Codegen, CUDA] Fix faulty codegen for FP8 [tvm]
Posted by "MasterJH5574 (via GitHub)" <gi...@apache.org>.
MasterJH5574 commented on PR #17673:
URL: https://github.com/apache/tvm/pull/17673#issuecomment-2694916225
Thank you so much @AntonMoberg!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [BugFix][Codegen, CUDA] Fix faulty codegen for FP8 [tvm]
Posted by "AntonMoberg (via GitHub)" <gi...@apache.org>.
AntonMoberg closed pull request #17673: [BugFix][Codegen, CUDA] Fix faulty codegen for FP8
URL: https://github.com/apache/tvm/pull/17673
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org