You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by "adamjstewart (via GitHub)" <gi...@apache.org> on 2023/04/11 01:39:59 UTC

[GitHub] [mxnet] adamjstewart opened a new issue, #21193: Unable to build with CUDA support

adamjstewart opened a new issue, #21193:
URL: https://github.com/apache/mxnet/issues/21193

   ## Description
   
   I'm trying to build MXNet from source with the Spack package manager. It seems to be unable to locate CUDA with CMake, even though CMake is installed and other packages (TF, PyTorch) build fine with CUDA support.
   
   ### Error Message
   
   ```
   /usr/bin/ld: cannot find -lcuda
   collect2: error: ld returned 1 exit status
   ```
   Full [build log](https://github.com/apache/mxnet/files/11195252/spack-build-out.txt).
   
   
   ## To Reproduce
   
   ### Steps to reproduce
   
   I'm using the [Spack](https://spack.io) package manager, but it should be possible to reproduce this from source given the same environment. Steps for Spack (using a branch where I'm trying to update our MXNet recipe):
   
   ```console
   $ git clone https://github.com/adamjstewart/spack.git
   $ cd spack
   $ git checkout packages/mxnet
   $ . share/spack/setup-env.sh
   $ spack install mxnet +cuda cuda_arch=80  # may need to change arch for your system
   ```
   
   ## What have you tried to solve it?
   
   I've tried setting `CMAKE_CUDA_COMPILER` and `MXNET_CUDA_ARCH`. Let me know if there are any other flags I can set to help CMake find CUDA.
   
   ## Environment
   
   <details>
   <summary>Environment Information</summary>
   
   ```
   ----------Python Info----------
   Version      : 3.10.10
   Compiler     : Clang 14.0.3 (clang-1403.0.22.14.1)
   Build        : ('main', 'Mar 31 2023 13:44:49')
   Arch         : ('64bit', '')
   ------------Pip Info-----------
   No corresponding pip install for current python.
   ----------MXNet Info-----------
   No MXNet installed.
   ----------System Info----------
   Platform     : macOS-13.3.1-arm64-arm-64bit
   system       : Darwin
   node         : Vesuvius
   release      : 22.4.0
   version      : Darwin Kernel Version 22.4.0: Mon Mar  6 20:59:58 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6020
   ----------Hardware Info----------
   machine      : arm64
   processor    : arm
   b'hw.features.allows_security_research: 0'
   b'machdep.cpu.brand_string: Apple M2 Pro'
   ----------Network Test----------
   Setting timeout: 10
   Timing for MXNet: https://github.com/apache/mxnet, DNS: 0.0209 sec, LOAD: 0.5341 sec.
   Error open Gluon Tutorial(en): http://gluon.mxnet.io, HTTP Error 404: Not Found, DNS finished in 0.33913588523864746 sec.
   Error open Gluon Tutorial(cn): https://zh.gluon.ai, <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)>, DNS finished in 0.18706297874450684 sec.
   Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0251 sec, LOAD: 0.1275 sec.
   Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0145 sec, LOAD: 0.5218 sec.
   Error open Conda: https://repo.continuum.io/pkgs/free/, HTTP Error 403: Forbidden, DNS finished in 0.10099601745605469 sec.
   ----------Environment----------
   ```
   
   </details>
   


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

To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org


[GitHub] [mxnet] github-actions[bot] commented on issue #21193: Unable to build with CUDA support

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #21193:
URL: https://github.com/apache/mxnet/issues/21193#issuecomment-1502564733

   Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue.
   Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly.
   If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on [contributing to MXNet](https://mxnet.apache.org/community/contribute) and our [development guides wiki](https://cwiki.apache.org/confluence/display/MXNET/Developments).


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

To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org


[GitHub] [mxnet] adamjstewart commented on issue #21193: Unable to build with CUDA support

Posted by "adamjstewart (via GitHub)" <gi...@apache.org>.
adamjstewart commented on issue #21193:
URL: https://github.com/apache/mxnet/issues/21193#issuecomment-1520468647

   Fixed this by using `-L/path/to/cuda/lib/stubs` instead of `-L/path/to/cude/lib`.


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

To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org


[GitHub] [mxnet] adamjstewart closed issue #21193: Unable to build with CUDA support

Posted by "adamjstewart (via GitHub)" <gi...@apache.org>.
adamjstewart closed issue #21193: Unable to build with CUDA support
URL: https://github.com/apache/mxnet/issues/21193


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

To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org