Repository navigation
feat: support nested functions with #[offload_kernel] - #163077
Conversation
This comment has been minimized.
This comment has been minimized.
|
Error: Failed to set assignee to
Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #triagebot on Zulip. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I think the test runner just took too long? In any case, I finally had a bit more time for thorough testing and can confirm that it works without issues. My main goal was to actually enable nested offload functions in |
|
Our CI timeout is after 6hrs iirc, some of our runners regulary take over 3hrs. Just force-push to trigger a rerun, this might be a spurious failure. github CI is often a bit flaky. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
This comment has been minimized.
This comment has been minimized.
|
PR is rebased, checks are green and the new |
|
lgtm, minor some code feedback. Can you squash it to one or two commits terwards so the wip/fix comments are gone? There's also a bors command for it if you want. |
|
@bors squash message="feat: support nested functions with offload_kernel" |
This comment has been minimized.
This comment has been minimized.
|
🔨 9 commits were squashed into c9d7ee0. |
bfcf563 to
c9d7ee0
Compare
Co-authored-by: xkevio <xkeviota@gmail.com> style: use ecx stmt item method
|
@bors try jobs=test-various |
feat: support nested functions with `#[offload_kernel]` try-job: test-various
This comment has been minimized.
This comment has been minimized.
|
@bors r+ rollup |
feat: support nested functions with `#[offload_kernel]` Related to rust-lang#131513. Allows annotating nested functions with `#[offload_kernel]`, similar to autodiff. Also fixes the error message when `#[offload_kernel]` is used on anything other than functions. r? @ZuseZ4 (@Sa4dUs, ping)
Rollup of 6 pull requests Successful merges: - #165778 (Bump stage0 to 1.101.0-beta.1) - #163077 (feat: support nested functions with `#[offload_kernel]`) - #165578 (Avoid `Hash::hash` when stable-hashing various types) - #165729 (tests: Add regression test for infinite recursive dereference) - #165819 (Avoid redundant scans when extracting stage0 archives) - #165822 (Remove unused compiler modules and types)
feat: support nested functions with `#[offload_kernel]` Related to rust-lang#131513. Allows annotating nested functions with `#[offload_kernel]`, similar to autodiff. Also fixes the error message when `#[offload_kernel]` is used on anything other than functions. r? @ZuseZ4 (@Sa4dUs, ping)
Rollup of 12 pull requests Successful merges: - #165804 (cg_llvm: Use an invariant lifetime brand for LLVM values) - #165778 (Bump stage0 to 1.101.0-beta.1) - #165412 (Implement `core::ops::FnAddr`) - #165487 (Migrate built-in macros `pattern_type` & `view_type` to macros 2.0 that expand to internal syntax) - #165818 (do not lint `redundant_lifetimes` on items from external macros) - #163077 (feat: support nested functions with `#[offload_kernel]`) - #164795 (Extend support of lint `explicit_outlives_requirements` to checked type aliases) - #165578 (Avoid `Hash::hash` when stable-hashing various types) - #165729 (tests: Add regression test for infinite recursive dereference) - #165819 (Avoid redundant scans when extracting stage0 archives) - #165822 (Remove unused compiler modules and types) - #165824 (Add regression test for HRTB projection bound with TryFrom error)
Rollup of 11 pull requests Successful merges: - #165804 (cg_llvm: Use an invariant lifetime brand for LLVM values) - #165778 (Bump stage0 to 1.101.0-beta.1) - #165412 (Implement `core::ops::FnAddr`) - #165487 (Migrate built-in macros `pattern_type` & `view_type` to macros 2.0 that expand to internal syntax) - #165818 (do not lint `redundant_lifetimes` on items from external macros) - #163077 (feat: support nested functions with `#[offload_kernel]`) - #164795 (Extend support of lint `explicit_outlives_requirements` to checked type aliases) - #165578 (Avoid `Hash::hash` when stable-hashing various types) - #165729 (tests: Add regression test for infinite recursive dereference) - #165822 (Remove unused compiler modules and types) - #165824 (Add regression test for HRTB projection bound with TryFrom error)
Rollup merge of #163077 - xkevio:patch-1, r=ZuseZ4 feat: support nested functions with `#[offload_kernel]` Related to #131513. Allows annotating nested functions with `#[offload_kernel]`, similar to autodiff. Also fixes the error message when `#[offload_kernel]` is used on anything other than functions. r? @ZuseZ4 (@Sa4dUs, ping)
Rollup of 11 pull requests Successful merges: - rust-lang/rust#165804 (cg_llvm: Use an invariant lifetime brand for LLVM values) - rust-lang/rust#165778 (Bump stage0 to 1.101.0-beta.1) - rust-lang/rust#165412 (Implement `core::ops::FnAddr`) - rust-lang/rust#165487 (Migrate built-in macros `pattern_type` & `view_type` to macros 2.0 that expand to internal syntax) - rust-lang/rust#165818 (do not lint `redundant_lifetimes` on items from external macros) - rust-lang/rust#163077 (feat: support nested functions with `#[offload_kernel]`) - rust-lang/rust#164795 (Extend support of lint `explicit_outlives_requirements` to checked type aliases) - rust-lang/rust#165578 (Avoid `Hash::hash` when stable-hashing various types) - rust-lang/rust#165729 (tests: Add regression test for infinite recursive dereference) - rust-lang/rust#165822 (Remove unused compiler modules and types) - rust-lang/rust#165824 (Add regression test for HRTB projection bound with TryFrom error)
Rollup of 11 pull requests Successful merges: - rust-lang/rust#165804 (cg_llvm: Use an invariant lifetime brand for LLVM values) - rust-lang/rust#165778 (Bump stage0 to 1.101.0-beta.1) - rust-lang/rust#165412 (Implement `core::ops::FnAddr`) - rust-lang/rust#165487 (Migrate built-in macros `pattern_type` & `view_type` to macros 2.0 that expand to internal syntax) - rust-lang/rust#165818 (do not lint `redundant_lifetimes` on items from external macros) - rust-lang/rust#163077 (feat: support nested functions with `#[offload_kernel]`) - rust-lang/rust#164795 (Extend support of lint `explicit_outlives_requirements` to checked type aliases) - rust-lang/rust#165578 (Avoid `Hash::hash` when stable-hashing various types) - rust-lang/rust#165729 (tests: Add regression test for infinite recursive dereference) - rust-lang/rust#165822 (Remove unused compiler modules and types) - rust-lang/rust#165824 (Add regression test for HRTB projection bound with TryFrom error)
Rollup of 11 pull requests Successful merges: - rust-lang/rust#165804 (cg_llvm: Use an invariant lifetime brand for LLVM values) - rust-lang/rust#165778 (Bump stage0 to 1.101.0-beta.1) - rust-lang/rust#165412 (Implement `core::ops::FnAddr`) - rust-lang/rust#165487 (Migrate built-in macros `pattern_type` & `view_type` to macros 2.0 that expand to internal syntax) - rust-lang/rust#165818 (do not lint `redundant_lifetimes` on items from external macros) - rust-lang/rust#163077 (feat: support nested functions with `#[offload_kernel]`) - rust-lang/rust#164795 (Extend support of lint `explicit_outlives_requirements` to checked type aliases) - rust-lang/rust#165578 (Avoid `Hash::hash` when stable-hashing various types) - rust-lang/rust#165729 (tests: Add regression test for infinite recursive dereference) - rust-lang/rust#165822 (Remove unused compiler modules and types) - rust-lang/rust#165824 (Add regression test for HRTB projection bound with TryFrom error)
Rollup of 11 pull requests Successful merges: - rust-lang/rust#165804 (cg_llvm: Use an invariant lifetime brand for LLVM values) - rust-lang/rust#165778 (Bump stage0 to 1.101.0-beta.1) - rust-lang/rust#165412 (Implement `core::ops::FnAddr`) - rust-lang/rust#165487 (Migrate built-in macros `pattern_type` & `view_type` to macros 2.0 that expand to internal syntax) - rust-lang/rust#165818 (do not lint `redundant_lifetimes` on items from external macros) - rust-lang/rust#163077 (feat: support nested functions with `#[offload_kernel]`) - rust-lang/rust#164795 (Extend support of lint `explicit_outlives_requirements` to checked type aliases) - rust-lang/rust#165578 (Avoid `Hash::hash` when stable-hashing various types) - rust-lang/rust#165729 (tests: Add regression test for infinite recursive dereference) - rust-lang/rust#165822 (Remove unused compiler modules and types) - rust-lang/rust#165824 (Add regression test for HRTB projection bound with TryFrom error)
View all comments
Related to #131513.
Allows annotating nested functions with
#[offload_kernel], similar to autodiff.Also fixes the error message when
#[offload_kernel]is used on anything other than functions.r? @ZuseZ4
(@Sa4dUs, ping)