Closed gmferise closed 11 months ago
It looks like nvcc was not within the environment variable PATH
. Please run which nvcc
on the terminal and post the output.
Then please run nvcc --version
too.
Good that you found a workaround but we should check what's wrong.
Looks like it's working now without the cmake ENV addition.
I didn't have CUDA installed before this. When I installed it added /usr/local/cuda/bin to PATH via my bashrc, then reloaded my bashrc with the source
command. My terminal's history
confirms this. I would have to guess my PATH did not update anyways though, and now that my terminal is fresh it has.
We can call this one user error I suppose 😅
I was able to fix this with the following addition to my command:
cmake -E env CUDACXX=/usr/local/cuda/bin/nvcc cmake -DCMAKE_CUDA_ARCHITECTURES=61 ..