Repository navigation
feat: bf16x2 packed arithmetic operations - #270
Closed
honeyspoon wants to merge 4 commits into
Closed
honeyspoon wants to merge 4 commits into
honeyspoon wants to merge 4 commits into
Conversation
Runs rustfmt, clippy, and unit tests on packages that don't need the CUDA toolkit. Triggers on every push to PR branches.
Add quality gates beyond upstream CI to catch maintainer fixup patterns before pushing PRs: - rustdoc: build docs with -D warnings (catches bare bracket links) - cargo-deny: dependency security and license checks - style-checks job with diff-aware checks for: - em-dashes in doc comments (error) - bare brackets in doc comments (warning) - SPDX license headers on new files (error) - unnecessary &mut on pliron type getters (error) - float equality assertions (warning) - useless &vec![...] patterns (warning) All style checks are diff-aware (only flag added lines, not pre-existing upstream code).
ci: enhance fork CI with rustdoc, style checks, and cargo-deny
Contributor
Author
|
Opened against the wrong repo. Re-creating on honeyspoon/cuda-oxide. |
Open
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
add,sub,mul,min,max,neg,abs=r,r,r(binary) or=r,r(unary) constraintscuda-devicestubs,dialect-nvvmops,mir-importertranslation,mir-lowerPTX codegenCloses #46
Part of #27
Details
add_bf16x2(a, b)add.rn.bf16x2sub_bf16x2(a, b)sub.rn.bf16x2mul_bf16x2(a, b)mul.rn.bf16x2min_bf16x2(a, b)min.bf16x2max_bf16x2(a, b)max.bf16x2neg_bf16x2(a)neg.bf16x2abs_bf16x2(a)abs.bf16x2Each
u32carries two packed bf16 values (low 16 bits = first lane, high 16 bits = second lane). The existingfma_bf16x2(sm_80+) is unchanged.Note:
fma.rn.relu.bf16x2is intentionally not included here (separate feature).Test plan
cargo check -p dialect-nvvm -p mir-lowerpassescargo fmt --allclean