SpaceView edited a comment on issue #15492: No CMAKE_CUDA_COMPILER could be 
found
URL: 
https://github.com/apache/incubator-mxnet/issues/15492#issuecomment-543428380
 
 
   Not sure this is gonna help, just my experience.
   Tried various CMake versions, got the same error, I suppose this is a cuda 
version problem, and I checked that visual studio 2019 supports only cuda 10.1 
(I didn't check a lot on old versions), as below,
   
https://developer.nvidia.com/gameworksdownload#?dn=nsight-visual-studio-edition-2019-3
   
   and I checked my build folder, only cuda10.1 exists, as below,
   C:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations
   
   I don't have visual studio 2017 installed, so have no idea about older 
versions.
   I add 
   set(CMAKE_CUDA_COMPILER "C:/Program Files/NVIDIA GPU Computing 
Toolkit/CUDA/v10.1/bin/nvcc.exe")
   before the line 73 project(mxnet C CXX CUDA), and other errors popped up as 
below
   The CUDA compiler
       "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/bin/nvcc.exe"
     is not able to compile a simple test program.
   
   I tested with visual studio 2019 + cuda 10.1, and solved the problem.

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


With regards,
Apache Git Services

Reply via email to