mxnet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] aaronmarkham commented on a change in pull request #8578: Add development instructions and update installation instructions
Date Thu, 01 Jan 1970 00:00:00 GMT
aaronmarkham commented on a change in pull request #8578: Add development instructions and
update installation instructions
URL: https://github.com/apache/incubator-mxnet/pull/8578#discussion_r149697872
 
 

 ##########
 File path: DEVELOPMENT.md
 ##########
 @@ -0,0 +1,69 @@
+# Developing MXNet
+
+## Build MXNet from source with CMake
+
+It's recommended that you install CMake and Ninja.
+
+Chose the options that you want to compile with in a similar fashion as above. In particular
this one is a debug CPU
+build in OSx.
+
+```
+mkdir build && cd build
+cmake -DUSE_CUDA=OFF -DUSE_OPENCV=OFF -DUSE_OPENMP=OFF -DCMAKE_BUILD_TYPE=Debug -GNinja ..
+ninja
+```
+You can check the available CMake options in CMakeLists.txt file: `cat CMakeLists.txt | grep
mxnet_option`. Similar
+options are needed if you want to use CLion. Under settings you can modify the CMake options
so code navigation and
+build works.
+
+Then you can use the library and install with pip. It's recommended that you use a python
virtualenv or similar tool for having multiple
+installed versions and managing the python interpreter.
+
+```
+virtualenv -p /usr/bin/python3.5 py3
 
 Review comment:
   Can you update the env name to mxnet_p36? It would help keep some new docs in alignment
so we can use the same examples. Also if you end up mentioning how to create a 2.7 env, then
use mxnet_p27.

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


With regards,
Apache Git Services

Mime
View raw message