Repository navigation
feat: add packed cvt variants end-to-end example (sm_80+) - #281
Merged
Merged
Conversation
honeyspoon
force-pushed
the
upstream-cvt-packed-example
branch
from
June 24, 2026 13:34
ee1e57a to
20a8fc5
Compare
49 tasks done
Follow-up to NVIDIA#276, adds the GPU-verified example noted as owed. Tests cvt.rz, cvt.rn.relu for both f16x2 and bf16x2, verifying ReLU clamps negatives to zero and rz truncates toward zero. Part of NVIDIA#274 Signed-off-by: abder <[email protected]>
Signed-off-by: nihalp <[email protected]>
nihalpasham
force-pushed
the
upstream-cvt-packed-example
branch
from
June 28, 2026 03:12
20a8fc5 to
a9aa9bd
Compare
Collaborator
|
Thank you for following through with the packed-conversion GPU example. Keeping all five variants in one kernel makes their lane behavior easy to compare. I added a few small finishing touches on the branch:
The corrected |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #276 -- adds the sm_80+ end-to-end GPU example that was noted as still owed.
crates/rustc-codegen-cuda/examples/cvt_packed/with a single kernel that exercises all five packed cvt intrinsics (cvt_f16x2_f32,cvt_rz_f16x2_f32,cvt_rn_relu_f16x2_f32,cvt_rn_relu_bf16x2_f32,cvt_rz_bf16x2_f32) on the same(3.14, -2.5)inputs|result| <= |input|0.0cvt_f16x2examplePart of #274
Test plan
cargo oxide run cvt_packedon an sm_80+ (Ampere or later) GPUSUCCESS