容器

集群支持通过 Pyxis/Enroot 在 Slurm 作业中运行容器。

使用已有 squashfs 镜像

示例:

srun --input=none -N1 -n1 \
  --container-image=/cluster/shared/admin/pyxis-enroot/minroot.sqsh \
  --container-remap-root \
  /bin/hostname

GPU 容器

srun --input=none -N1 -n1 --gres=gpu:1 \
  --container-image=<image.sqsh> \
  nvidia-smi

注意事项

  • 优先使用管理员预导入的镜像。

  • 大镜像不要重复下载到个人目录。

  • 容器内需要读写的路径应使用 /cluster 下的共享目录。

  • 如果需要新增公共镜像,请联系管理员。