Rust-GPU / Rust-GPU/rust-cuda

Is it possible to provide a LLVM independent build?

Open
#229 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
5.4k
Forks
249
PR merge metrics
No merged PRs in 30d

Description

I tried to publish another cuda crate without llvm or specific rust compiler support:

https://github.com/Neutron3529/cuda_min

Such crate works very well, and thus I have some doubt: why a specific llvm version and rust version is needed?

It seems that

  1. llvm-bitcode-linker could compile rust code into PTX
  2. nvidia driver could load PTX code directly. (no need to install cudart, nvidia's driver provides interfaces such as cuInit.)

I just wonder why a specific llvm version even a specific rustc version is required. We should have the ability to compile a cuda program easier.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the llvm-bitcode-linker and the NVIDIA driver loading path described in the issue, comparing them with the project's current LLVM and rustc requirements. Determine whether PTX can be compiled and loaded without fixed LLVM or Rust versions; done means a concrete implementation path or a documented reason the independent build is not feasible.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.