Skip to content

Update openmp/offload to new LLVM-22 build setup#152011

Draft
ZuseZ4 wants to merge 2 commits intorust-lang:mainfrom
ZuseZ4:update-offload-bootstrap
Draft

Update openmp/offload to new LLVM-22 build setup#152011
ZuseZ4 wants to merge 2 commits intorust-lang:mainfrom
ZuseZ4:update-offload-bootstrap

Conversation

@ZuseZ4
Copy link
Member

@ZuseZ4 ZuseZ4 commented Feb 2, 2026

I'm just testing the libc-gpu build as well, will push an update later.

cc @jhuber6 Does that look like what you have in mind? I'm running all 3 reusing the same output directory (out_dir). I know I shouldn't do that for higher level differences like llvm vs omp/offload builds, but when just having different targets it seems to work fine (?)

cc @Sa4dUs can you test this please for nvidia?

blocked-on LLVM rc3, which should include: llvm/llvm-project#179375

@ZuseZ4 ZuseZ4 added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) F-gpu_offload `#![feature(gpu_offload)]` labels Feb 2, 2026
@rustbot rustbot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Feb 2, 2026
.profile(profile)
.env("LLVM_CONFIG_REAL", &host_llvm_config)
.define("LLVM_ENABLE_ASSERTIONS", "ON")
.define("LLVM_ENABLE_RUNTIMES", "openmp;offload")
Copy link

Choose a reason for hiding this comment

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

offload won't work targeting a GPU. I made a change to silently accept this upstream but I don't think you're on that.

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried it, but I don't think it's worth backporting. Fwiw this config works locally without your LLVM PR.

@jieyouxu jieyouxu self-assigned this Feb 3, 2026
@rustbot rustbot added the A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. label Feb 3, 2026
@rust-log-analyzer

This comment has been minimized.

@ZuseZ4 ZuseZ4 force-pushed the update-offload-bootstrap branch from 1a6f0e4 to a85f0aa Compare February 6, 2026 00:49
@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 6, 2026

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

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. F-gpu_offload `#![feature(gpu_offload)]` S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants