Skip to content

Conversation

@madhav-madhusoodanan
Copy link

Context

Ported the asyncAPI sample from NVIDIA/cuda-samples .

Relevant Issue

Copy link
Contributor

@LegNeato LegNeato left a comment

Choose a reason for hiding this comment

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

Thanks for the PR and welcome! 🍾

Two small things:

  1. rustfmt is failing
  2. let's put these in their own subdir with a README so as we add more they are in a single place and folks know where they come from.

@madhav-madhusoodanan
Copy link
Author

Sure thing!
I put this specific example under samples/introduction just to be in line with NVIDIA's folder structure.

I'm looking to get just this one example merged for now, in future PRs I'll add the samples in batches.

Copy link
Contributor

@LegNeato LegNeato left a comment

Choose a reason for hiding this comment

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

Clippy is failing 📋

@madhav-madhusoodanan
Copy link
Author

I'm also curious about the error on Windows:

       Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 10s
  error: failed to run `rustc` to learn about target-specific information

  Caused by:
    process didn't exit successfully: `C:\Users\runneradmin\.rustup\toolchains\nightly-2025-08-04-x86_64-pc-windows-msvc\bin\rustc.exe - --crate-name ___ --print=file-names -Zcodegen-backend=D:\a\rust-cuda\rust-cuda\target\debug\rustc_codegen_nvvm.dll -Zcrate-attr=feature(register_tool) -Zcrate-attr=register_tool(nvvm_internal) -Zcrate-attr=no_std -Zsaturating_float_casts=false "-Cllvm-args=-arch=compute_61 --override-libm" --target nvptx64-nvidia-cuda --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg -Wwarnings` (exit code: 1)
    --- stderr
    error: couldn't load codegen backend \\?\D:\a\rust-cuda\rust-cuda\target\debug\rustc_codegen_nvvm.dll: LoadLibraryExW failed: The specified module could not be found. (os error 126) (The specified module could not be found. (os error 126)) (retried 5 times)


  thread 'main' panicked at samples\introduction\async_api\build.rs:16:10:

@LegNeato
Copy link
Contributor

LegNeato commented Nov 7, 2025

I'm also curious about the error on Windows:

       Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 10s
  error: failed to run `rustc` to learn about target-specific information

  Caused by:
    process didn't exit successfully: `C:\Users\runneradmin\.rustup\toolchains\nightly-2025-08-04-x86_64-pc-windows-msvc\bin\rustc.exe - --crate-name ___ --print=file-names -Zcodegen-backend=D:\a\rust-cuda\rust-cuda\target\debug\rustc_codegen_nvvm.dll -Zcrate-attr=feature(register_tool) -Zcrate-attr=register_tool(nvvm_internal) -Zcrate-attr=no_std -Zsaturating_float_casts=false "-Cllvm-args=-arch=compute_61 --override-libm" --target nvptx64-nvidia-cuda --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg -Wwarnings` (exit code: 1)
    --- stderr
    error: couldn't load codegen backend \\?\D:\a\rust-cuda\rust-cuda\target\debug\rustc_codegen_nvvm.dll: LoadLibraryExW failed: The specified module could not be found. (os error 126) (The specified module could not be found. (os error 126)) (retried 5 times)


  thread 'main' panicked at samples\introduction\async_api\build.rs:16:10:

I think this is #220. I don't have a windows machine so can't debug.

Copy link
Contributor

@LegNeato LegNeato left a comment

Choose a reason for hiding this comment

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

Clippy issues are back

@madhav-madhusoodanan
Copy link
Author

Ahh my bad, fixed the clippy issues.
Let me tinker on my Windows machine to see if I can fix the issue on Windows.

@madhav-madhusoodanan madhav-madhusoodanan force-pushed the add_cuda_examples branch 2 times, most recently from dfb60c9 to 4b0816f Compare November 8, 2025 11:50
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.

2 participants