$ docker run --gpus all -it --rm nvcr.io/nvidia/pytorch:20.12-py3
============= == PyTorch == =============
NVIDIA Release 20.12 (build 17950526) PyTorch Version 1.8.0a0+1606899
Container image Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
Copyright (c) 2014-2020 Facebook Inc. Copyright (c) 2011-2014 Idiap Research Institute (Ronan Collobert) Copyright (c) 2012-2014 Deepmind Technologies (Koray Kavukcuoglu) Copyright (c) 2011-2012 NEC Laboratories America (Koray Kavukcuoglu) Copyright (c) 2011-2013 NYU (Clement Farabet) Copyright (c) 2006-2010 NEC Laboratories America (Ronan Collobert, Leon Bottou, Iain Melvin, Jason Weston) Copyright (c) 2006 Idiap Research Institute (Samy Bengio) Copyright (c) 2001-2004 Idiap Research Institute (Ronan Collobert, Samy Bengio, Johnny Mariethoz) Copyright (c) 2015 Google Inc. Copyright (c) 2015 Yangqing Jia Copyright (c) 2013-2016 The Caffe contributors All rights reserved.
NVIDIA Deep Learning Profiler (dlprof) Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
Various files include modifications (c) NVIDIA CORPORATION. All rights reserved. NVIDIA modifications are covered by the license terms that apply to the underlying project or file. ERROR: Detected NVIDIA GeForce 940MX GPU, which is not supported by this container ERROR: No supported GPU(s) detected to run this container
ERROR: This container was built for NVIDIA Driver Release 455.32 or later, but version 440.26 was detected and compatibility mode is UNAVAILABLE.
[[CUDA Driver UNAVAILABLE (cuInit(0) returned 803)]]
NOTE: MOFED driver for multi-node communication was not detected. Multi-node communication performance may be reduced.
NOTE: The SHMEM allocation limit is set to the default of 64MB. This may be insufficient for PyTorch. NVIDIA recommends the use of the following flags: nvidia-docker run --ipc=host ...
root@d0301077522d:/workspace#
ERROR
在容器启动时会打印关键日志,其中上面的日志包含了ERROR提示
1 2 3 4 5 6 7
ERROR: Detected NVIDIA GeForce 940MX GPU, which is not supported by this container ERROR: No supported GPU(s) detected to run this container
ERROR: This container was built for NVIDIA Driver Release 455.32 or later, but version 440.26 was detected and compatibility mode is UNAVAILABLE.
[[CUDA Driver UNAVAILABLE (cuInit(0) returned 803)]]