[Discussion] How to use CUDA SDK installed on host?
- 主要語言
- Go
- 星號
- 13k
- 分支
- 541
- 平均合併
- 20 小時 47 分鐘
- 30 天內合併 PR
- 4
描述
Hi,
I run Fedora 39 on my base system, which has GCC 13.2 that is incompatible with all current versions of nvcc. Thus, I am trying to use distrobox to install a Ubuntu 22.04 container.
When I create the container with `distrobox create --nvidia --name ubuntu-nv --image ubuntu:22.04`, the directory `/usr/local/cuda-12.1` from the host system seems to be made available to the container, but for some reason it does not contain the sub-folder `bin` present on the host system.
When I create the container with `distrobox create --nvidia --name ubuntu-nv --image ubuntu:22.04 --volume /usr/local/cuda-12.1:/usr/local/cuda`, no CUDA folder is made available in the container for some reason.
Am I doing something wrong here? I am aware of the possibility to just access all files of the host via `/run/host`.
貢獻指南
研究方向
這個 issue 涉及在使用 --nvidia 旗標的 distrobox 容器中掛載 CUDA SDK。首先檢查 distrobox 原始碼中的磁碟區掛載邏輯,尤其是 NVIDIA 整合相關的部分。查看 /usr/local/cuda 等主機目錄是如何映射的。測試兩種命令變體,看看容器內部出現了哪些目錄。目標是了解為什麼缺少 bin 子資料夾,或者為什麼手動掛載磁碟區會失敗。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- bash, docker, linux
- 領域
- cli, developer-experience
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100