cenv/README_CN.md
ben0i0d 7db1684a8b
Some checks failed
Flow / Base (push) Successful in 5s
Flow / C (push) Successful in 6s
Flow / Cpp (push) Successful in 6s
Flow / JDK (push) Successful in 5s
Flow / JRE (push) Successful in 6s
Flow / JS (push) Successful in 6s
Flow / CUDA_Base (push) Successful in 34s
Flow / Python (push) Successful in 6s
Flow / R (push) Successful in 6s
Flow / MC_BE (push) Successful in 7s
Flow / MC_JRE_8 (push) Successful in 8s
Flow / MC_JRE_11 (push) Successful in 7s
Flow / MC_JRE_17 (push) Successful in 7s
Flow / MC_JRE_21 (push) Successful in 6s
Flow / Steam (push) Successful in 6s
Flow / LLAMA (push) Successful in 7s
Flow / Hexo (push) Successful in 7s
Flow / Jupyterlite (push) Successful in 6s
Flow / Julia (push) Successful in 5s
Flow / Steam_Wine (push) Successful in 6s
Flow / CUDA_Runtime (push) Successful in 1m3s
Flow / CUDA_Devel (push) Successful in 2m10s
Flow / Push (push) Successful in 5m44s
Push_ghcr / Push (push) Failing after 29m49s
switch cuda & rocm to base & disable rocm(not support debian13)
2025-01-20 03:01:55 +08:00

1.5 KiB
Raw Permalink Blame History

gpu

English | 中文

为中国用户的文档

ghcr.io: https://github.com/eoeair/cenv/pkgs/container/cenv

Our Gitea: https://eoelab.org:1027/eoeair/cenv

先决条件

  • CPU : nothing to do
  • ROCM : amdgpu-dkms -> Docker 容器与主机操作系统共享内核。因此,主机上必须安装 ROCm 内核模式驱动程序 ( amdgpu-dkms )
  • CUDA : nvidia-container-toolkit/nvidia-docker2

目标平台

  • OS : debian 13
  • ARCH : x86_64

版本

  • cuda: 12.4
  • rocm: 6.3

使用方法

container

  • CPU just docker run -it
  • ROCM docker run --device /dev/kfd --device /dev/dri --security-opt seccomp=unconfined IMAGE

devcontainer(VScode)

cp -r .devcontainer WORKSDIR

镜像依赖

  • Program:开发环境主要为devcontainer
  • Renv:运行时环境,
  • GS:游戏服务器
graph LR

CPU-->B{Base}
B-->CUDA
B-->ROCM

B-->C{Renv}
C-->CA(Hexo)
C-->CB(Jupyterlite)

B-->G{GS}-->GA{MC}-->GAA(JAVA)
GAA-->GAAA(JRE_8)
GAA-->GAAB(JRE_11)
GAA-->GAAC(JRE_17)
GAA-->GAAD(JRE_21)

G-->GB{MCSM}-->GBA(Web)
GB-->GBB(Daemon)

G-->GC(steam)-->GCA(steam_wine)

B-->P{PROGRAM}
P-->PA(C)
P-->PB(Cpp)
P-->PC(Java)
PC-->PCA(Jdk)
PC-->PCB(Jre)
P-->PD(Js)
P-->PE(Julia)
P-->PF(Python)
P-->PG(R)

镜像源

上游