cepera-ang commented on issue #17761: cmake stuck in infinite loop at 
configuration if nvcc is not found
URL: 
https://github.com/apache/incubator-mxnet/issues/17761#issuecomment-594840371
 
 
   I have nvcc in my $PATH as follows: 
   ```
   ➜  build git:(master) echo $PATH
   
/home/cepera/miniconda3/condabin:/home/cepera/bin:/home/cepera/.nvm/versions/node/v12.3.1/bin:
   /home/cepera/.local/bin:/home/cepera/bin:/usr/local/sbin:/usr/local/bin:
   /usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:
   /home/cepera/.fzf/bin:/usr/local/cuda-10.1/bin
   ➜  build git:(master) which nvcc            
   /usr/local/bin/nvcc
   ```
   Also, if I set CUDACXX as you suggested it seems like Cmake ignores it and 
still guesses different path and, unfortunately, still loops:
   
   ```
   ➜  build git:(master) CUDACXX=/usr/local/bin/nvcc cmake -GNinja ..
   -- The C compiler identification is GNU 8.3.0
   -- The CXX compiler identification is GNU 8.3.0
   -- Check for working C compiler: /usr/local/bin/cc
   -- Check for working C compiler: /usr/local/bin/cc -- works
   -- Detecting C compiler ABI info
   -- Detecting C compiler ABI info - done
   -- Detecting C compile features
   -- Detecting C compile features - done
   -- Check for working CXX compiler: /usr/local/bin/c++
   -- Check for working CXX compiler: /usr/local/bin/c++ -- works
   -- Detecting CXX compiler ABI info
   -- Detecting CXX compiler ABI info - done
   -- Detecting CXX compile features
   -- Detecting CXX compile features - done
   -- CMAKE_CROSSCOMPILING FALSE
   -- CMAKE_HOST_SYSTEM_PROCESSOR x86_64
   -- CMAKE_SYSTEM_PROCESSOR x86_64
   -- CMAKE_SYSTEM_NAME Linux
   -- CMake version '3.13.4' using generator 'Ninja'
   -- Looking for a CUDA compiler
   -- Looking for a CUDA compiler - /usr/local/bin/nvcc
   CMake Warning at CMakeLists.txt:95 (message):
     CMAKE_CUDA_COMPILER guessed: /usr/local/cuda/bin/nvcc
   
   
   -- The CUDA compiler identification is NVIDIA 10.1.243
   -- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc
   -- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc -- works
   
   <truncated>
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to