helloniklas commented on issue #9217: Installing GPU support on Mac
URL: 
https://github.com/apache/incubator-mxnet/issues/9217#issuecomment-354982838
 
 
   @cosmo 
   1. Download Xcode8.3.3 from Apple. This is the version NVIDIA state for Cuda 
9.1 Mac. Unzip and rename to Xcode8.3.3.app.
   2. Run ```sudo xcode-select -s /Applications/Xcode8.3.3.app``` or to 
wherever you have placed Xcode.
   3. Run ```xcode-select --install``` to install all command line tools 
compilers etc.
   4. Run ```git clone --recursive 
https://github.com/apache/incubator-mxnet.git mxnet``` to get the latest 
version currently 1.0.1 which worked for me.
   5. ```cd mxnet```
   6. Edit the make/osx.mk file to set
    ```
   USE_CUDA = 1
   USE_CUDA_PATH = /usr/local/cuda
   USE_CUDNN = 1
   USE_OPENCV = 0
   ```
   7. Copy the mxnet/make/osx.mk to mxnet/config.mk
   8. Run ```make```  If you previously attempted to compile you might want to 
do make clean_all first. You can also run make -j to compile with 
multithreading. There'll be plenty of warnings but should be no errors.
   9. Once finished you should have a file called libmxnet.so in mxnet/lib/ 
   10. Do ```cd python```
   11. Run ```sudo python setup.py install```
   12. Do ```cd ..``` then you should be able to run ```python 
example/image-classification/train_mnist.py --network lenet --gpus 0``` to test 
GPU training.
   
     

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to