Using Docker
SuperBench runs benchmarks inside Docker container, here are the guides on how to build images and start containers during development.
#
Build imageYou need to clone the code first before building the image.
- CUDA
- ROCm
export DOCKER_BUILDKIT=1docker buildx build \ --platform linux/amd64 --cache-to type=inline,mode=max \ --tag superbench-dev --file dockerfile/cuda12.2.dockerfile .
export DOCKER_BUILDKIT=1docker buildx build \ --platform linux/amd64 --cache-to type=inline,mode=max \ --tag superbench-dev --file dockerfile/rocm5.7.x.dockerfile .
#
Run container- CUDA
- ROCm
docker run \ -itd --name=sb-dev \ --privileged --net=host --ipc=host \ --gpus=all \ -w /root -v /mnt:/mnt \ superbench-dev bash
docker run \ -itd --name=sb-dev \ --privileged --net=host --ipc=host \ --security-opt seccomp=unconfined --group-add video \ -w /root -v /mnt:/mnt \ superbench-dev bash