ghcr.io: ghcr.io/eoeair/cenv:TAG
- ARCH: x86_64
- OS:
- debian testing
- alpine edge
- ROCM: 7.1.0
- CUDA: >= 12.3
- oci:
podman run -it, See therunArgssection of the devcontainer config file for more options. - devcontainer(VScode):
cp -r .devcontainer WORKDIR
- Denv:
gitmay not be loaded on the first run. PleaseReload Window.- Press Ctrl + Shift + P (Windows/Linux) or Cmd + Shift + P (macOS) to open the Command Palette.
- Type
Reload Windowin the search bar. - Select the
Reload Windowcommand.
- C/C++ environment:
.vscodeconfig may not be loaded on the first run. PleaseReload Windowto ensure the configuration is loaded.- if you need source, please run
sed -i 's/Types: deb/Types: deb deb-src/' /etc/apt/sources.list.d/debian.sources
- if you need source, please run
- upython(micropython):
- run
sudo usermod -aG dialout $USERbefore use container, add youself todialout - hardware -> tty:
- raspberry pico:
/dev/ttyACM0 - raspberry pi:
/dev/ttyUSB0
- raspberry pico:
- stub(support pylance):
pip install micropython-XXX-stubs, search onpypi.org.
- run
- cuda:
- Make sure you have installed the NVIDIA driver for your Linux Distribution
- Note that you do not need to install the CUDA Toolkit on the host system, but the NVIDIA driver needs to be installed
- For instructions on getting started with the NVIDIA Container Toolkit, refer to the installation guide
- for china,maybe need a mirror site: run
sed -i 's/developer.download.nvidia.com/developer.download.nvidia.cn/g' /etc/apt/sources.list.d/cuda-debian12-x86_64.list
- rocm:
- run
sudo apt install rocminfo - run
sudo usermod -aG video,render $USERbefore use container, add youself tovideo,render - not include any package, please install what you want(
apt install rocm) - how to run jax/flax:
- apt install hipsolver hipfft miopen-hip rccl rocm-llvm rocprofiler-sdk hsa-amd-aqlprofile libamd-comgr2 libdw1 (I just want to minimize runtime; you can absolutely do a full ROCm installation.)
- see rocm-jax
- for china,maybe need a mirror site:
- run
sed -i 's/repo.radeon.com/radeon.geekery.cn/g' /etc/apt/sources.list.d/amdgpu.list - run
sed -i 's/repo.radeon.com/radeon.geekery.cn/g' /etc/apt/sources.list.d/rocm.list
- run
- how to run pytorch: PyTorch doesn’t require user-space ROCm support;
- run
pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/rocm7.0
- run
- run
Denv: development environmentRenv: runtime environmentGpu: gpu environment
graph LR
Debian-->B{Base}
Alpine-->B
B-->D{Denv}
D-->DA(C)
D-->DB(Cpp)
D-->DF(Debforge)
D-->DC(Python)
D-->DD(Zig)
D-->DE(Upython)
DC-->G{Gpu}-->GA(Rocm)
G-->GB(CUDA)
B-->R{RENV}
R-->RA(Zine)
R-->RB(Steam)
R-->RC(JRE_21)
R-->RD(Novnc)
R-->RE(Crane)
- debian ustc:https://mirrors.ustc.edu.cn/help/debian.html