Skip to content

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

Open
sgasho wants to merge 1 commit into
rust-lang:mainfrom
sgasho:offload-doc-fix
Open

Fix sample code for std::offload at usage.md#156667
sgasho wants to merge 1 commit into
rust-lang:mainfrom
sgasho:offload-doc-fix

Conversation

@sgasho
Copy link
Copy Markdown
Contributor

@sgasho sgasho commented May 17, 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
Copy link
Copy Markdown
Collaborator

rustbot commented May 17, 2026

The rustc-dev-guide subtree was changed. If this PR only touches the dev guide consider submitting a PR directly to rust-lang/rustc-dev-guide otherwise thank you for updating the dev guide with your changes.

cc @BoxyUwU, @tshepang

@rustbot rustbot added A-rustc-dev-guide Area: rustc-dev-guide S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-rustc-dev-guide Area: rustc-dev-guide S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants