Skip to content

Fix sample code for std::offload at usage.md#2874

Merged
ZuseZ4 merged 1 commit into
rust-lang:mainfrom
sgasho:main
May 18, 2026
Merged

Fix sample code for std::offload at usage.md#2874
ZuseZ4 merged 1 commit into
rust-lang:mainfrom
sgasho:main

Conversation

@sgasho
Copy link
Copy Markdown
Contributor

@sgasho sgasho commented May 18, 2026

Sample code at src/doc/rustc-dev-guide/src/offload/usage.md did not work on an NVIDIA gpu server.
It seems it has a typo. _kernel_1 was not defined but referenced at core::intrinsics::offload.
I replaced it with kernel_1 and it worked.

r? @ZuseZ4

@rustbot rustbot added the S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content label May 18, 2026
@ZuseZ4 ZuseZ4 merged commit 669b4b1 into rust-lang:main May 18, 2026
1 check passed
@rustbot rustbot removed the S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content label May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants