Skip to content

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

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

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
@ZuseZ4
Copy link
Copy Markdown
Member

ZuseZ4 commented May 18, 2026

Oh wait, I just see that you're making the or against r-l/r
Can you make the PR directly against the rustc-dev-guide repo?

@sgasho
Copy link
Copy Markdown
Contributor Author

sgasho commented May 18, 2026

I see, I created a PR at dev guide here: rust-lang/rustc-dev-guide#2874

@sgasho sgasho closed this May 18, 2026
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 18, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants