Skip to content

torch.cuda.is_available() is false after CUDA 9.0.176 installed. Could anyone help me with this? Thanks! #15612

Closed
@Dee-Ma

Description

@Dee-Ma

🐛 Bug

Hi,

I just got a very strange problem:

I used the commands: "print(torch.version)
print(torch.version.cuda)
print(torch.backends.cudnn.version())", the output were:

0.4.1.post2 (PyTorch version)
9.0.176 (CUDA version)
7.1.2 (cuDNN version)

I also used the "nvcc --version", the results were:

capture4

It was very strange, it seems that the CUDA version installed in Linux system is 9.0.176, and the CUDA that the PyTorch needed is also 9.0.176, but, the "cuda.is_available()" still returns "False".

Could anyone help me with this? Many thanks!

Environment

  • PyTorch Version (e.g., 1.0): 0.4.1.post2
  • OS (e.g., Linux): Linux
  • Python version: 3.6.5 : : Anaconda, Inc.
  • CUDA/cuDNN version: 9.0.176 (CUDA version); 7.1.2 (cuDNN version)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions