1. base/runtime/devel的区别
CUDA images come in three flavors and are available through the NVIDIA public hub repository.
base: starting from CUDA 9.0, contains the bare minimum (libcudart) to deploy a pre-built CUDA application.
Use this image if you want to manually select which CUDA packages you want to install.runtime: extends thebaseimage by adding all the shared libraries from the CUDA toolkit.
Use this image if you have a pre-built application using multiple CUDA libraries.devel: extends theruntimeimage by adding the compiler toolchain, the debugging tools, the headers and the static libraries.
Use this image to compile a CUDA application from sources.
参考链接:https://github.com/NVIDIA/nvidia-docker/wiki/CUDA
2. 版本对应
版本选择: https://docs.nvidia.com/deeplearning/sdk/cudnn-support-matrix/index.html
ubuntu:https://blog.youkuaiyun.com/hzhj2007/article/details/107376398
本文详细介绍了CUDA镜像的三种类型:base、runtime和devel,分别适用于不同需求的CUDA应用部署与开发。base镜像包含运行预编译CUDA应用所需的最小依赖;runtime镜像在此基础上增加了所有共享库;devel镜像进一步提供了编译工具链、调试工具、头文件和静态库,适合从源代码编译CUDA应用。
1366





