tree: 2959b071acbf129290ec6190db8a8c5670b36749 [path history] [tgz]

MXNet Static Build

This folder contains the core script used to build the static library. This README provides information on how to use the scripts in this folder. Please be aware, all of the scripts are designed to be run under the root folder.

This script is a wrapper around ` It simplifies the things by automatically identifing the system version, number of cores, and all environment variable settings. Here are examples you can run with this script:

tools/staticbuild/ cu92 maven

This would build the mxnet package based on CUDA9.2 and Maven (Scala) build setttings.

tools/staticbuild/ mkl pip

This would build the mxnet package based on MKLDNN and and pypi configuration settings.

As the result, users would have a complete static dependencies in /staticdeps in the root folder as well as a static-linked file lives in lib. You can build your language binding by using the

This script clones the most up-to-date master and builds the MXNet backend with a static library. In order to run the static library, you must set the following environment variables:

  • DEPS_PATH Path to your static dependencies
  • STATIC_BUILD_TARGET Either pip or maven as your publish platform
  • PLATFORM linux, darwin
  • VARIANT cpu, cu*, cu*mkl, mkl

It is not recommended to run this file alone since there are a bunch of variables need to be set.

After running this script, you would have everything you need ready in the /lib folder.

This script builds the python package. It also runs a sanity test.