Skip to content

Update offload test and verify that tgt_(un)register_lib have the right type#150426

Merged
bors merged 1 commit intorust-lang:mainfrom
ZuseZ4:offload-register-lib
Jan 5, 2026
Merged

Update offload test and verify that tgt_(un)register_lib have the right type#150426
bors merged 1 commit intorust-lang:mainfrom
ZuseZ4:offload-register-lib

Conversation

@ZuseZ4
Copy link
Copy Markdown
Member

@ZuseZ4 ZuseZ4 commented Dec 27, 2025

Apparently, we weren't running offload tests when Enzyme wasn't built. Time to fix that.
Also adds a test mode which generates the host IR, but does not expect device IR/artifacts. This way, we don't have to handle artifacts and paths in our tests.
Also removes some outdated documentation.

cc @kevinsala, @Sa4dUs

closes: #150415

blocked on needs-offload infrastructure landing in #150427

@rustbot rustbot added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Dec 27, 2025
@rust-log-analyzer

This comment has been minimized.

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Dec 29, 2025
add has_offload/needs-offload to the test infra

unblocks: rust-lang#150426

Mostly copied from rust-lang#131044
lmk if some of these changes should land separately?

r? jieyouxu
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Dec 29, 2025
add has_offload/needs-offload to the test infra

unblocks: rust-lang#150426

Mostly copied from rust-lang#131044
lmk if some of these changes should land separately?

r? jieyouxu
rust-timer added a commit that referenced this pull request Dec 29, 2025
Rollup merge of #150427 - ZuseZ4:offload-testinfra, r=jieyouxu

add has_offload/needs-offload to the test infra

unblocks: #150426

Mostly copied from #131044
lmk if some of these changes should land separately?

r? jieyouxu
@ZuseZ4
Copy link
Copy Markdown
Member Author

ZuseZ4 commented Dec 30, 2025

@bors2 try aarch64-gnu-llvm-20-1

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Dec 30, 2025

Unknown argument "aarch64-gnu-llvm-20-1". Run @bors2 help to see available commands.

@ZuseZ4 ZuseZ4 force-pushed the offload-register-lib branch from 2341687 to ef942ba Compare December 30, 2025 12:15
@ZuseZ4 ZuseZ4 marked this pull request as ready for review December 30, 2025 12:15
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 30, 2025
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Dec 30, 2025

r? @davidtwco

rustbot has assigned @davidtwco.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Dec 30, 2025
@ZuseZ4 ZuseZ4 force-pushed the offload-register-lib branch from ef942ba to dbd1f05 Compare December 30, 2025 12:17
@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Jan 2, 2026

☔ The latest upstream changes made this pull request unmergeable. Please resolve the merge conflicts.

github-actions bot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request Jan 2, 2026
add has_offload/needs-offload to the test infra

unblocks: rust-lang/rust#150426

Mostly copied from rust-lang/rust#131044
lmk if some of these changes should land separately?

r? jieyouxu
@bors
Copy link
Copy Markdown
Collaborator

bors commented Jan 3, 2026

☔ The latest upstream changes (presumably #150606) made this pull request unmergeable. Please resolve the merge conflicts.

Copy link
Copy Markdown
Member

@davidtwco davidtwco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me after testing this works as expected and this nit is fixed

View changes since this review

@ZuseZ4 ZuseZ4 force-pushed the offload-register-lib branch from dbd1f05 to fa584fa Compare January 4, 2026 15:06
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Jan 4, 2026

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.

@ZuseZ4
Copy link
Copy Markdown
Member Author

ZuseZ4 commented Jan 4, 2026

We still lack some infra to run this code in CI, but it has been verified locally on AMD APUs/GPUs and an NVIDIA GPU.

@bors r=davidtwco rollup

@bors
Copy link
Copy Markdown
Collaborator

bors commented Jan 4, 2026

📌 Commit fa584fa has been approved by davidtwco

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 4, 2026
bors added a commit that referenced this pull request Jan 4, 2026
Rollup of 3 pull requests

Successful merges:

 - #149681 (resolve: Split `Scope::Module` into two scopes for non-glob and glob bindings )
 - #150426 (Update offload test and verify that tgt_(un)register_lib have the right type)
 - #150678 (relate.rs: tiny cleanup: eliminate temp vars)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 1494755 into rust-lang:main Jan 5, 2026
11 checks passed
@rustbot rustbot added this to the 1.94.0 milestone Jan 5, 2026
rust-timer added a commit that referenced this pull request Jan 5, 2026
Rollup merge of #150426 - ZuseZ4:offload-register-lib, r=davidtwco

Update offload test and verify that tgt_(un)register_lib have the right type

Apparently, we weren't running offload tests when Enzyme wasn't built. Time to fix that.
Also adds a test mode which generates the host IR, but does not expect device IR/artifacts. This way, we don't have to handle artifacts and paths in our tests.
Also removes some outdated documentation.

cc `@Kevinsala,` `@Sa4dUs`

closes: #150415

~~blocked on `needs-offload` infrastructure landing in #150427
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Jan 12, 2026
Rollup of 3 pull requests

Successful merges:

 - rust-lang/rust#149681 (resolve: Split `Scope::Module` into two scopes for non-glob and glob bindings )
 - rust-lang/rust#150426 (Update offload test and verify that tgt_(un)register_lib have the right type)
 - rust-lang/rust#150678 (relate.rs: tiny cleanup: eliminate temp vars)

r? `@ghost`
`@rustbot` modify labels: rollup
@ZuseZ4 ZuseZ4 deleted the offload-register-lib branch January 31, 2026 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Offload generates wrong declarations for LLVM target routines

5 participants