Repository navigation
fix(tilelib_relu): pass generated call_<decl> kernel names to link_ltoir - #1766
Merged
nihalpasham merged 3 commits intoNov 9, 2026
Merged
Conversation
PR NVIDIA#1367 added expected-kernel verification to `LtoLinker::link_ltoir`, but hardcoded `&["caller"]` in `tilelib_relu` based on the `caller.ltoir` filename. `caller_source` actually emits one `__global__` entry point per callable `#[tile_export]` named `call_<decl>` (`call_relu`, `call_scale_in_place`, `call_warp_sum`), causing `link_ltoir` to reject the linked Cubin for missing `"caller"`. Build the expected kernel list from `exports` (`call_<decl>`) and also ignore generated `*.kernels` sidecar files in `cuda-oxide/.gitignore`. Signed-off-by: nihalpasham <[email protected]>
Collaborator
Author
|
/ok to test 3660422 |
2 of 3 tasks
Signed-off-by: nihalpasham <[email protected]>
…parse_mma_standard_float Signed-off-by: nihalpasham <[email protected]>
Collaborator
Author
|
/ok to test aef7138 |
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.
What This PR Does
Passes the generated
call_<decl>kernel entry names (call_relu,call_scale_in_place,call_warp_sum) toLtoLinker::link_ltoirinexamples/tilelib_reluand ignores*.kernelssidecars incuda-oxide/.gitignore:crates/rustc-codegen-cuda/examples/tilelib_relu/src/main.rs)cuda-oxide/.gitignore)1. Matching
caller.cu's Generated Entry Names intilelib_relucaller_sourceintilelib_relugenerates one__global__wrapper kernel per callable#[tile_export]namedcall_<decl>. Passingexports.iter().map(|desc| format!("call_{}", desc.decl))toLtoLinker::link_ltoirmatches the actual cubin entry table:Verification
cargo oxide run tilelib_relu --emit-nvvm-ir --arch sm_100: PASS (3/3 tile exports verified through the native ABI)cargo clippy --manifest-path cuda-oxide/crates/rustc-codegen-cuda/examples/tilelib_relu/Cargo.toml --all-targets -- -D warnings: PASSrustfmt --check --edition 2024 cuda-oxide/crates/rustc-codegen-cuda/examples/tilelib_relu/src/main.rs: PASS