0

The output of which nvcc gives me:

/usr/local/cuda-10.0/bin/nvcc

However, when I execute nvcc --version, I get

-bash: /usr/bin/nvcc: No such file or directory

So which is telling me it is using the nvcc inside /usr/local/cuda-10.0/bin, but the actual nvcc command points to /usr/bin. Shouldn't the nvcc command point to /usr/local/cuda-10.0/bin?

anonuser01
  • 113
  • 1
  • 7
  • What does `type -a nvcc` say? Possibly your shell has hashed a previous location of the command - see for example [Pytest is in PATH but not found](https://askubuntu.com/a/861386/178692) – steeldriver Jan 15 '19 at 13:22
  • Thanks. That seems to be what happened because restarting my computer fixed it. I assume restarting my terminal would have fixed it too, but my computer needed a restart anyways. – anonuser01 Jan 16 '19 at 05:31

0 Answers0