-
Notifications
You must be signed in to change notification settings - Fork 180
Running examples: Dependency problems, Linux target, errors in codegen_nvvm #129
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
Comments
Hi @welahi. We've just got done updating the toolchain to night-2025-03-02. Do the latest changes resolve your issues? |
Thanks for rebooting the project :) Disclaimer: I needed Rust-CUDA for a student project, which is over now; feel free to de-prioritize my issue.
Please note that I'm still working on Linux, so i had to manually uncomment the It seems that there is some trouble with finding the shared library, which was supposed to be build. Here's the detailed error message:
|
I'm only one windows, but have encountered similar issues where the codegen backend failed to load due to my environment not being setup correctly. The docker file in our repo has a step in it to configure the loader to include the nvvm libs (see this line). Could you try that and see if that works? |
I hit this today in our ubuntu24 container. I've tried adding the path to LD_LIBRARY_PATH and to ldconfig, but it's still not picking it up.
Can anyone else try running |
Sure. I'll get add example revived later today. |
Just as an update from my side: As I mentioned, my student project has been done for a while and now my access to the system where I set this up has been finally revoked; hence, I won't be able to try anything new and from my perspective this issue can be closed. I didn't close it because other people seem to have encountered similar issues, but feel free to close it when you think it is appropriate. |
System: Alma Linux 8.10
CUDA: 12.6.3
I cloned the Rust-CUDA and tried to compile
examples/cuda/cpu/add
usingcargo run
, having Rust nightly installed. Therust-toolchain
file makes rustup install 1.59.0-nightly. However, thelog
-crate, which is required in version 0.4.25, needs Rust 1.60.0 or higher.Changing the toolchain
nightly-2022-04-07
leads to a similar error, whereopenssl-sys v0.9.104
needs 1.63.0 or higher.Then, I removed the toolchain-file to just use the newest version of the rustc. The problem with the dependencies was solved, but the buildscript of
rustc_codegen_nvvm
nags about the target. In the buildscript I found this uncommented match armIs Linux basically not supported?
I removed the comment and tried again, this time getting a bunch of errors while trying to compile codegen_nvvm. Some of them where solved running
rustup component add rust-src rustc-dev llvm-tools-preview
. However, I'm stuck here now:extern crate rustc_attr
could not be found, and the suggested solution is again to install the llvm tools, which I already did.use rustc_codegen_ssa::traits::BaseTypeMethods;: no BaseTypeMethods in traits
incrates/rustc_codegen_nvvm/src/abi.rs:9:5
, which I have no idea how to solve.Does anyone know how to resolve the issues?
The text was updated successfully, but these errors were encountered: