Skip to content
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

Updated nvvm codegen to 1.72.0 nightly. #111

Open
ZelboK opened this issue Jun 28, 2023 · 3 comments
Open

Updated nvvm codegen to 1.72.0 nightly. #111

ZelboK opened this issue Jun 28, 2023 · 3 comments

Comments

@ZelboK
Copy link

ZelboK commented Jun 28, 2023

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.

@ZelboK
Copy link
Author

ZelboK commented Jun 28, 2023

Also I pulled in @apriori 's PR and worked on top of that.

@LegNeato
Copy link
Contributor

@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
Copy link
Author

ZelboK commented 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.

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 todos will obviously need to be changed. I would just pull my forks main and git diff the differences.

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

No branches or pull requests

2 participants