tree: efc93045fd015d183a17ba00db8fc6b9e6990c5b [path history] [tgz]
  1. example/
  2. include/
  3. scripts/
  4. tests/
  5. .travis.yml
  6. CMakeLists.txt
  7. cpp-package.mk
  8. LICENSE
  9. README.md
cpp-package/README.md

MXNet C++ Package

To build the C++ package, please refer to this guide.

A basic tutorial can be found at https://mxnet.incubator.apache.org/tutorials/c++/basics.html.

The example directory contains examples for you to get started.

Building C++ examples in examples folder

From cpp-package/examples directory

  • Build all examples in release mode: make all
  • Build all examples in debug mode : make debug

By default, the examples are build to be run on GPU. To build examples to run on CPU:

  • Release: make all MXNET_USE_CPU=1
  • Debug: make debug MXNET_USE_CPU=1

The makefile will also download the necessary data files and store in data folder. (The download will take couple of minutes, but will be done only once on a fresh installation.)