Unable do Compile Rust-CUDA because missing CUDNN includes.
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 28/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- rust, ubuntu
- 領域
- build-system, hpc
調査の方向性
crates/cudnn-sys/build/main.rs から始め、報告された Ubuntu、CUDA、cuDNN、cargo のバージョンを使って失敗を再現します。ビルドスクリプトが cuDNN の include ディレクトリをどのように検出するかを追跡します。リポジトリが、文書化された動作する include-path 設定でビルドできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hello everyone,
I am trying to compile Rust-Cuda on Ubuntu 24.04 with Cuda Toolkit 12.8 and driver 550.120. Cargo version is cargo 1.86.0 (adf9b6ad1 2025-02-28). I have just cloned the repository from the main branch.
First, I had problems regarding the Optix SDK. cargo build returned that it could not find the SDK. After digging a bit, I found this line on the optix-sys crate:
const OPTIX_ROOT_ENVS: &[&str] = &["OPTIX_ROOT", "OPTIX_ROOT_DIR"];
So I set OPTIX_ROOT to directory where I placed the SDK, and it worked. But now I got another problem:
error: failed to run custom build command for `cudnn-sys v0.1.0 (/home/npbrust/Rust-CUDA/crates/cudnn-sys)`
Caused by:
process didn't exit successfully: `/home/npbrust/Rust-CUDA/target/debug/build/cudnn-sys-640a99c44abeadd2/build-script-main` (exit status: 101)
--- stderr
thread 'main' panicked at crates/cudnn-sys/build/main.rs:7:42:
Cannot create cuDNN SDK instance.: "Cannot find cuDNN include directory."
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
So I download the cuDNN (cudnn-linux-x86_64-9.8.0.87_cuda12-archive). After expanding the file, I copied the contents of the include and lib directories into /usr/local/cuda/include and /usr/local/cuda/lib64. cargo build gave me the same error. Then I tried setting the variables CUDNN_INCLUDE_DIR and CUDNN_LIBRARY to the include and lib directories, but that got me nowhere. The question is: how should I point cargo do find the CUDNN includes? Looking at the code for the cudnn_sys crate gave me no directions.
Best Regards.
- 主要言語
- Rust
- スター
- 5.4k
- フォーク
- 251
- 平均マージ
- 4日 15時間
- マージ済み PR(30日)
- 4
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Rust-GPU/rust-cuda のほかの issue
-
Default NvvmArch::Compute75 silently produces InvalidPtx on pre-Turing GPUs (Pascal/Maxwell/Volta)オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
-
Array parameters lose alignment metadata and ICE on >16 byte alignments対応中かも @Snehal-Reddy が 164 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
Rust-GPU/rust-cuda の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 63/100
pop-os/cosmic-files#2117 ·
メンテナーはふだん 2 日以内に返信
-
L: java:gradle L: java:maven L: ruby:bundler T: bug 🐞
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
dependabot/dependabot-core#16547 ·
メンテナーはふだん 1 日以内に返信
-
bug status:ready-for-test
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
UniClipboard/UniClipboard#1985 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
RustCrypto/SSH#596 ·
-
area:breg rust
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
registrystack/registry-stack#2034 ·
メンテナーはふだん 1 日以内に返信