-
Notifications
You must be signed in to change notification settings - Fork 191
Closed
Description
As title says I updated and built the crate. Problem is that I'm both a beginner in Rust and LLVM. This is my first rust project.
Things compile for now, I prioritized just getting things to compile so some methods implemented are left in a todo
state. I'll eventually make a PR when I have time but for now if anyone is interested you can check my profile to see the repo.
Currently running into this:
warning: `cuda_std_macros` (lib) generated 2 warnings (run `cargo fix --lib -p cuda_std_macros` to apply 2 suggestions)
Compiling rustc-std-workspace-core v1.99.0 (C:\Users\devel\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\rustc-std-workspace-core)
Compiling alloc v0.0.0 (C:\Users\devel\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\alloc)
error: could not compile `core` (lib)
Caused by:
process didn't exit successfully: `rustc --crate-name core --edition=2021 C:\Users\devel\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg "feature=\"panic_immediate_abort\"" -C metadata=2eed41a84448bb8c -C extra-filename=-2eed41a84448bb8c --out-dir C:\Users\devel\Rust-CUDA\target\cuda-builder\nvptx64-nvidia-cuda\release\deps --target nvptx64-nvidia-cuda -Z force-unstable-if-unmarked -L dependency=C:\Users\devel\Rust-CUDA\target\cuda-builder\nvptx64-nvidia-cuda\release\deps -L dependency=C:\Users\devel\Rust-CUDA\target\cuda-builder\release\deps --cap-lints allow -Zcodegen-backend=C:\Users\devel\Rust-CUDA\target\debug\deps\rustc_codegen_nvvm.dll -Zcrate-attr=feature(register_tool) -Zcrate-attr=register_tool(rust_cuda) -Zcrate-attr=no_std "-Cllvm-args=-arch=compute_61 --override-libm"` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)
warning: build failed, waiting for other jobs to finish...
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: BuildFailed', examples\cuda\cpu\add\build.rs:7:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
As per @RDambrosio016 suggested, I plan on building LLVM 7 from source and enabling debug assertions. If anyone is interested in helping please lmk.
Activity
ZelboK commentedon Jun 28, 2023
Also I pulled in @apriori 's PR and worked on top of that.
LegNeato commentedon Jan 27, 2025
@ZelboK do you have a WIP for this somewhere? I know it has been a long time, but the project is active again (#130) and I'd love to look at what you have done even if you don't intend to finish.
ZelboK commentedon Jan 27, 2025
Oh hey, yeah unfortunately no time to work on this. I have these commits on
main
in my fork(was a bit lazy)ZelboK/RustCUDA@a2d5bc6
ZelboK/RustCUDA@0eaa3e2
ZelboK/RustCUDA@6176cf2
ZelboK/RustCUDA@0ca3e7a
(you can keep clicking parent commit to see them all if you need on github for w/e reason)
but I remember having a few commits that weren't pushed upwards so it's a bit behind. Albeit from the comment it seems like it'll build just keep in mind some of the
todo
s will obviously need to be changed. I would just pull my forksmain
and git diff the differences.LegNeato commentedon Mar 18, 2025
Master has been updated!