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/07/31 20:14:36 UTC

[GitHub] [incubator-mxnet] eric-haibin-lin opened a new issue #18831: MacOS cmake build instruction broken

eric-haibin-lin opened a new issue #18831:
URL: https://github.com/apache/incubator-mxnet/issues/18831


   Following the instructions in https://github.com/apache/incubator-mxnet/blob/master/config/darwin.cmake:
   ```
   #  If you want to change the configuration, please use the following steps.
   #  Assume you are on the root directory of mxnet. First copy this file so that
   #  any local changes will be ignored by git
   #
   #  $ cp config/darwin.cmake config.cmake
   #
   #  Next modify the according entries, and then compile by
   #
   #  $ mkdir build; cd build
   #  $ cmake  ..
   #  $ cmake --build .
   ``` 
   it gives me the error below:
   ```
   CMake Error at /usr/local/Cellar/cmake/3.18.1/share/cmake/Modules/CMakeDetermineCUDACompiler.cmake:166 (message):
     Could not find nvcc, please set CUDAToolkit_ROOT.
   Call Stack (most recent call first):
     CMakeLists.txt:117 (enable_language)
   
   
   -- Configuring incomplete, errors occurred!
   See also "/Users/haibilin/dev/mxnet/build/CMakeFiles/CMakeOutput.log".
   See also "/Users/haibilin/dev/mxnet/build/CMakeFiles/CMakeError.log".
   ```
   
   It looks like the template was actually not used by CMake. Alternatively, if i use `cmake  -DUSE_CUDA=0 ..`, the nvcc error disappears. 


----------------------------------------------------------------
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



[GitHub] [incubator-mxnet] leezu commented on issue #18831: MacOS cmake build instruction broken

Posted by GitBox <gi...@apache.org>.
leezu commented on issue #18831:
URL: https://github.com/apache/incubator-mxnet/issues/18831#issuecomment-668238552


   MXNet defaults to build with Cuda, even though cuda 11 no longer supports mac.
   
   https://github.com/apache/incubator-mxnet/blob/master/CMakeLists.txt#L42
   
   I recommend we default to cuda=off and rely on the `config/linux_gpu.cmake` for enabling cuda. WDYT @eric-haibin-lin?


----------------------------------------------------------------
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



[GitHub] [incubator-mxnet] leezu edited a comment on issue #18831: MacOS cmake build instruction broken

Posted by GitBox <gi...@apache.org>.
leezu edited a comment on issue #18831:
URL: https://github.com/apache/incubator-mxnet/issues/18831#issuecomment-668238552


   MXNet defaults to build with Cuda, even though cuda 11 no longer supports mac.
   
   https://github.com/apache/incubator-mxnet/blob/f872b43407ccfb7d17fe7492c7d869b83194f3a6/CMakeLists.txt#L42
   
   I recommend we default to cuda=off and rely on the `config/linux_gpu.cmake` for enabling cuda. WDYT @eric-haibin-lin?


----------------------------------------------------------------
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



[GitHub] [incubator-mxnet] eric-haibin-lin commented on issue #18831: MacOS cmake build instruction broken

Posted by GitBox <gi...@apache.org>.
eric-haibin-lin commented on issue #18831:
URL: https://github.com/apache/incubator-mxnet/issues/18831#issuecomment-668239805


   i think there’s some problem with cmake where it didn’t look for the right config.cmake. In this issue, darwin.cmake already set USE_CUDA=0


----------------------------------------------------------------
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



[GitHub] [incubator-mxnet] leezu edited a comment on issue #18831: MacOS cmake build instruction broken

Posted by GitBox <gi...@apache.org>.
leezu edited a comment on issue #18831:
URL: https://github.com/apache/incubator-mxnet/issues/18831#issuecomment-668241079


   Did you run the `cp config/darwin.cmake config.cmake` from the mxnet root folder? If so, do you see any reason for
   
   https://github.com/apache/incubator-mxnet/blob/f872b43407ccfb7d17fe7492c7d869b83194f3a6/CMakeLists.txt#L28-L31
   
   being false?


----------------------------------------------------------------
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



[GitHub] [incubator-mxnet] leezu commented on issue #18831: MacOS cmake build instruction broken

Posted by GitBox <gi...@apache.org>.
leezu commented on issue #18831:
URL: https://github.com/apache/incubator-mxnet/issues/18831#issuecomment-668241079


   Did you run the `cp config/darwin.cmake config.cmake` from the mxnet root folder?


----------------------------------------------------------------
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