-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Installing GPU support on Mac #9217
Comments
GPU version of osx is currently not supported through pip. You can try to build from source. A while back I was able to build mxnet with cuda 8 on OSX. |
@szha right, got you, thanks. So do you know if MXNET 1.0.0 in theory will support cuda 9 if I attempt to build from source. |
@szha Also, it seems Python can't be supported if building from source? https://mxnet.incubator.apache.org/get_started/build_from_source.html |
Yes, mxnet 1.0.0 should support cuda 9 when building from source. The build process is for building the shared object of mxnet, which is a dependency of the python language binding of mxnet. The python language binding doesn't require building so there is no doc listed. |
@szha thanks, can confirm it all works, running macOS 10.13.2 with Cuda 9.1 and cuDNN 7 on a MacBook Pro with Sonnett ePGU and GeForce 1080 gpu. Training the lenet example takes 36 seconds now vs. 14 minutes and 11 seconds on cpu. |
@helloniklas I have a similar setup (macOS 10.13.2, GeForce 1080, cuda 9.1 and cuDNN 7). thanks, any help appreciated! |
|
Wohoo, it works! Thank you very much! :) |
Thanks @helloniklas! |
Was anyone able to confirm that the Mac GPU build will work with OpenCV support (USE_OPENCV=1) in the config? |
@aaronmarkham Haven't tried unfortunately. I'm back on my machine by end of jan. I assume, it's a bit too late :| |
Hi @Cosmo - we're trying to wrap up the instructions for the next incremental release which is imminent. Either way, let me know if you can confirm, and I'll update the install info whenever you can try it out with OpenCV. |
Hi @helloniklas, It said something about "MXNET_CUDNN_AUTOTUNE_DEFAULT = 0" do I need to worry about it? [05:10:49] src/operator/nn/./cudnn/./cudnn_algoreg-inl.h:107: Running performance tests to find the best convolution algorithm, this can take a while... (setting env variable MXNET_CUDNN_AUTOTUNE_DEFAULT to 0 to disable) |
Hi @helloniklas, could you remove the space after |
Hi, @helloniklas I just tried to use your instructions with 10.13.4, Run In file included from src/operator/nn/cudnn/../../../common/cuda_utils.h:31: ideas? |
@bradcar Change the |
my config.mk has the following: USE_BLAS = apple |
@bradcar would you mind sharing some of the compilation outputs from the terminal? |
sure, thanks in advance for your help... |
No problem. The error that you shared is the missing cblas.h. I checked the compilation line for the problem source, and it looks like this: g++ -std=c++11 -c -DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -O3 -DNDEBUG=1 -I/Users/bradcarlile/mxnet/3rdparty/mshadow/ -I/Users/bradcarlile/mxnet/3rdparty/dmlc-core/include -fPIC -I/Users/bradcarlile/mxnet/3rd
party/nnvm/include -I/Users/bradcarlile/mxnet/3rdparty/dlpack/include -I/Users/bradcarlile/mxnet/3rdparty/nnvm/tvm/include -Iinclude -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typ
edefs -msse3 -I/usr/local/cuda/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -I/System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Versions/Current/Headers/ -DMSHADOW_
RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_PASCAL=0 -DMXNET_USE_OPENCV=0 -DMXNET_USE_LAPACK -DMSHADOW_USE_CUDNN=1 -I/Users/bradcarlile/mxnet/3rdparty/cub -DMXNET_ENABLE_CUDA_RTC=1 -DMXNET_USE_NCCL=0 -DMXNET_US
E_LIBJPEG_TURBO=0 -MMD -c src/operator/contrib/krprod.cc -o build/src/operator/contrib/krprod.o Note that there is |
According to this doc from OS X, you need OS X 10.0+ to get veclib. |
I have two macs 10.12.6 and 10.13.4 . I could not find cblas.h in There is no Headers directory in |
I'm not sure what's happening there... Is xcode on your machine? |
xcode Version 9.3 (9E145) |
I re-installed my Xcode command line developer tools Where do I find the proper coda to install for mxnet 1.1.0 for mac? |
Usually it's in |
THANKS! |
That would be https://developer.nvidia.com/cuda-downloads |
Installation steps provided from this discussion have been made available on the mxnet website there: @szha could you please close this issue? |
Anyone managed to install GPU support on macOS? I've got an eGPU running with NVIDIA card. Installed CUDA 9 with cuDNN (version 8 does not seem to run on macOS 10.13.2).
I've read some posts saying that CUDA 9 was supported from MXNET v 0.12.
Running a command like pip install mxnet-cu90 does not work though.
The text was updated successfully, but these errors were encountered: