-
Notifications
You must be signed in to change notification settings - Fork 6.8k
cmake stuck in infinite loop at configuration if nvcc is not found #17761
Comments
Please try again with latest master. cf 64d8e0f |
Nope, it's still looping on my system Fresh cloned latest master, config: linux_gpu
|
what version of cmake are you using? |
```
(base) ➜ ~ cmake --version
cmake version 3.13.4
```
…On Wed, 4 Mar 2020 at 21:52, Leonard Lausen ***@***.***> wrote:
what version of cmake are you using?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#17761>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACRP6O5WCJLGISQOA35Z7LDRF2PNPANCNFSM4LBL7W2A>
.
|
We recently added a convenience functionality in #17293 that attempts to do the right thing even if cuda is not installed correctly. Seems that leads to an infinite loop unfortunately. It needs to be fixed. Thanks for reporting the issue. You didn't install cuda correctly. In particular you didn't do https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#mandatory-post As a quick workaround, you can run with |
I have nvcc in my $PATH as follows:
Also, if I set CUDACXX as you suggested it seems like Cmake ignores it and still guesses different path and, unfortunately, still loops:
Update: if I set CUDACXX=/usr/local/cuda/bin/nvcc (exactly as Cmake "guesses") then it configures successfully. |
Thanks for the update @cepera-ang. Could you try changing
to
Seems in #17293 we used the wrong variable, as per https://gitlab.kitware.com/cmake/cmake/issues/19013 |
Now it fails in different place:
|
The search behavio for CUDAToolkit is specified in https://gitlab.kitware.com/cmake/cmake/-/blob/master/Modules/FindCUDAToolkit.cmake In general, it relies on the location of nvcc, so it may get confused by The infinite loop issue is a separate issue and should be fixed by #17773. |
It is indeed strange location for nvcc and it happens to be some misconfiguration on my machine. Thanks for you time @leezu! It is rare to get this kind of fast and thorough response with open source project and I highly appreciate it. |
Description
I'm trying to build Mxnet from source using this guide https://mxnet.apache.org/get_started/ubuntu_setup and at running
cmake ..
command the build is stuck at infinite loop.Error Message
Last lines look relevant.
And than the process repeats itself indefinitely:
To Reproduce
Follow https://mxnet.apache.org/get_started/ubuntu_setup
Steps to reproduce
(Paste the commands you ran that produced the error.)
1.Install prerequisites
2. Clone repo and copy config
The only change in config I did -- I disabled OpenCV.
What have you tried to solve it?
I uncommented CMAKE_CUDA_COMPILER line and removed cache from there
set(CMAKE_CUDA_COMPILER "nvcc" STRING "Cuda compiler (nvcc)")
And it's building as it should.
Environment
We recommend using our script for collecting the diagnositc information. Run the following command and paste the outputs below:
The text was updated successfully, but these errors were encountered: