You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/03/04 21:06:19 UTC

[GitHub] [incubator-mxnet] cepera-ang edited a comment on issue #17761: cmake stuck in infinite loop at configuration if nvcc is not found

cepera-ang edited a comment 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>
   ```
   
   Update: if I set CUDACXX=/usr/local/cuda/bin/nvcc (exactly as Cmake "guesses") then it configures successfully. 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services