I try to run nvidia-smi from the shell on a machine, but it hangs indefinitely: what could be the issue?

Update (2016-08-09): Since this question received no answer, I crossposted it:

  • 1
    In the instances when I've seen this happen, the problem seemed to have been due to internal NVIDIA driver weirdness that went away in a later driver/CUDA revision.
    – lebedov
    Aug 9, 2016 at 19:37
  • Related: stackoverflow.com/questions/41489070/… Jun 22, 2019 at 15:10

1 Answer 1


https://devtalk.nvidia.com/default/topic/942116/system-hangs-when-issuing-quot-nvidia-smi-q-quot-command-after-installing-cuda/ advises the following (when using an EC2 instance):

My suggestion would be:

  1. start over with a clean OS load
  2. Follow the instructions for "runfile installer method" in the cuda 7.5 linux install guide. Don't skip any steps or fail to remove nouveau. Follow the instructions carefully.
  3. Select "no" when prompted to install the driver after launching the CUDA 7.5 runfile installer.
  4. Download the 361.45 driver runfile installer.
  5. Install that driver.
  6. Profit.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.