Skip to content

Instantly share code, notes, and snippets.

@rahul003
Last active February 21, 2018 23:38
Show Gist options
  • Save rahul003/b1fe1e50697b60f6ad0a6324a7af472e to your computer and use it in GitHub Desktop.
Save rahul003/b1fe1e50697b60f6ad0a6324a7af472e to your computer and use it in GitHub Desktop.
MXNet on Mac with CMake
# install protobuf 25
brew install wget
wget https://raw.githubusercontent.com/mli/deps/master/build/protobuf-2.5.0.tar.gz
tar -xvf protobuf-2.5.0.tar.gz
cd protobuf-2.5.0
export CFLAGS=-fPIC
export CXXFLAGS=-fPIC
./configure
make -j 4
make install
# jemalloc
brew install jemalloc
# tested without mkl and openmp for now
# used clang -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment