-
Notifications
You must be signed in to change notification settings - Fork 212
Examples: Ported the AsyncAPI example of CUDA samples #297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Examples: Ported the AsyncAPI example of CUDA samples #297
Conversation
LegNeato
left a comment
There was a problem hiding this 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:
- rustfmt is failing
- 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.
|
Sure thing! I'm looking to get just this one example merged for now, in future PRs I'll add the samples in batches. |
LegNeato
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clippy is failing 📋
…the events and buffers when they go out of scope.
0dd095a to
cf47dcd
Compare
|
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. |
LegNeato
left a comment
There was a problem hiding this 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
|
Ahh my bad, fixed the clippy issues. |
dfb60c9 to
4b0816f
Compare
4b0816f to
98fc439
Compare
Context
Ported the
asyncAPIsample fromNVIDIA/cuda-samples.Relevant Issue