Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Enable DIST_KVSTORE by default in staticbuild #18796

Merged
merged 5 commits into from
Jul 31, 2020
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/distribution/darwin_cpu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ set(USE_TVM_OP OFF CACHE BOOL "Enable use of TVM operator build system.")
set(USE_SSE ON CACHE BOOL "Build with x86 SSE instruction support")
set(USE_F16C OFF CACHE BOOL "Build with x86 F16C instruction support")
set(USE_LIBJPEG_TURBO ON CACHE BOOL "Build with libjpeg-turbo")
set(USE_DIST_KVSTORE ON CACHE BOOL "Build with DIST_KVSTORE support")
1 change: 1 addition & 0 deletions config/distribution/linux_cpu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ set(USE_TVM_OP OFF CACHE BOOL "Enable use of TVM operator build system.")
set(USE_SSE ON CACHE BOOL "Build with x86 SSE instruction support")
set(USE_F16C OFF CACHE BOOL "Build with x86 F16C instruction support")
set(USE_LIBJPEG_TURBO ON CACHE BOOL "Build with libjpeg-turbo")
set(USE_DIST_KVSTORE ON CACHE BOOL "Build with DIST_KVSTORE support")
1 change: 1 addition & 0 deletions config/distribution/linux_cu100.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ set(USE_TVM_OP OFF CACHE BOOL "Enable use of TVM operator build system.")
set(USE_SSE ON CACHE BOOL "Build with x86 SSE instruction support")
set(USE_F16C OFF CACHE BOOL "Build with x86 F16C instruction support")
set(USE_LIBJPEG_TURBO ON CACHE BOOL "Build with libjpeg-turbo")
set(USE_DIST_KVSTORE ON CACHE BOOL "Build with DIST_KVSTORE support")

set(CUDACXX "/usr/local/cuda-10.0/bin/nvcc" CACHE STRING "Cuda compiler")
set(MXNET_CUDA_ARCH "3.0;5.0;6.0;7.0" CACHE STRING "Cuda architectures")
1 change: 1 addition & 0 deletions config/distribution/linux_cu101.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ set(USE_TVM_OP OFF CACHE BOOL "Enable use of TVM operator build system.")
set(USE_SSE ON CACHE BOOL "Build with x86 SSE instruction support")
set(USE_F16C OFF CACHE BOOL "Build with x86 F16C instruction support")
set(USE_LIBJPEG_TURBO ON CACHE BOOL "Build with libjpeg-turbo")
set(USE_DIST_KVSTORE ON CACHE BOOL "Build with DIST_KVSTORE support")

set(CUDACXX "/usr/local/cuda-10.1/bin/nvcc" CACHE STRING "Cuda compiler")
set(MXNET_CUDA_ARCH "3.0;5.0;6.0;7.0" CACHE STRING "Cuda architectures")
1 change: 1 addition & 0 deletions config/distribution/linux_cu102.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ set(USE_TVM_OP OFF CACHE BOOL "Enable use of TVM operator build system.")
set(USE_SSE ON CACHE BOOL "Build with x86 SSE instruction support")
set(USE_F16C OFF CACHE BOOL "Build with x86 F16C instruction support")
set(USE_LIBJPEG_TURBO ON CACHE BOOL "Build with libjpeg-turbo")
set(USE_DIST_KVSTORE ON CACHE BOOL "Build with DIST_KVSTORE support")

set(CUDACXX "/usr/local/cuda-10.2/bin/nvcc" CACHE STRING "Cuda compiler")
set(MXNET_CUDA_ARCH "3.0;5.0;6.0;7.0" CACHE STRING "Cuda architectures")
7 changes: 7 additions & 0 deletions tools/dependencies/cityhash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
# This script builds the static library of cityhash that can be used as dependency of mxnet.
set -ex
CITYHASH_VERSION=1.1.1
if [[ $PLATFORM == 'darwin' ]]; then
DY_EXT="dylib"
else
DY_EXT="so"
fi

if [[ ! -f $DEPS_PATH/lib/libcityhash.a ]]; then
# Download and build cityhash
>&2 echo "Building cityhash..."
Expand All @@ -30,5 +36,6 @@ if [[ ! -f $DEPS_PATH/lib/libcityhash.a ]]; then
./configure -prefix=$DEPS_PATH --enable-sse4.2
$MAKE CXXFLAGS="-g -O3 -msse4.2"
$MAKE install
rm $DEPS_PATH/lib/*cityhash*$DY_EXT*
popd
fi
3 changes: 1 addition & 2 deletions tools/dependencies/libpng.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
# This script builds the static library of libpng that can be used as dependency of mxnet/opencv.
set -ex
PNG_VERSION=1.6.35
if [[ ! -f $DEPS_PATH/lib/libpng.a ]]; then
# download and build libpng
if [[ ! -f $DEPS_PATH/lib/libpng.a ]] && [[ ! -f $DEPS_PATH/lib64/libpng.a ]]; then # download and build libpng
>&2 echo "Building libpng..."
download \
https://github.com/glennrp/libpng/archive/v${PNG_VERSION}.zip \
Expand Down
4 changes: 2 additions & 2 deletions tools/dependencies/libturbojpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ if [[ $PLATFORM == 'darwin' ]]; then
JPEG_NASM_OPTION="-D CMAKE_ASM_NASM_COMPILER=/usr/local/bin/nasm"
fi

if [[ ! -f $DEPS_PATH/lib/libjpeg.a ]] || [[ ! -f $DEPS_PATH/lib/libturbojpeg.a ]]; then
# download and build libjpeg
if [[ ( ! -f $DEPS_PATH/lib/libjpeg.a ) || ( ! -f $DEPS_PATH/lib/libturbojpeg.a ) ]] && \
[[ ( ! -f $DEPS_PATH/lib64/libjpeg.a ) || ( ! -f $DEPS_PATH/lib64/libturbojpeg.a ) ]]; then # download and build libjpeg
>&2 echo "Building libjpeg-turbo..."
download \
https://github.com/libjpeg-turbo/libjpeg-turbo/archive/${TURBO_JPEG_VERSION}.zip \
Expand Down
7 changes: 7 additions & 0 deletions tools/dependencies/lz4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
# This script builds the static library of lz4 that can be used as dependency of mxnet.
set -ex
LZ4_VERSION=r130
if [[ $PLATFORM == 'darwin' ]]; then
DY_EXT="dylib"
else
DY_EXT="so"
fi

if [[ ! -f $DEPS_PATH/lib/liblz4.a ]]; then
# Download and build lz4
>&2 echo "Building lz4..."
Expand All @@ -31,5 +37,6 @@ if [[ ! -f $DEPS_PATH/lib/liblz4.a ]]; then
cd $DEPS_PATH/lz4-$LZ4_VERSION
$MAKE
$MAKE PREFIX=$DEPS_PATH install
rm $DEPS_PATH/lib/*lz4*$DY_EXT*
popd
fi
4 changes: 2 additions & 2 deletions tools/dependencies/openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
# This script builds the static library of openssl that can be used as dependency of mxnet.
set -ex
OPENSSL_VERSION=1.1.1b
if [[ ! -f $DEPS_PATH/lib/libssl.a ]] || [[ ! -f $DEPS_PATH/lib/libcrypto.a ]]; then
# download and build openssl
if [[ ( ! -f $DEPS_PATH/lib/libssl.a ) || ( ! -f $DEPS_PATH/lib/libcrypto.a ) ]] && \
[[ ( ! -f $DEPS_PATH/lib64/libssl.a ) || ( ! -f $DEPS_PATH/lib64/libcrypto.a ) ]]; then # download and build openssl
>&2 echo "Building openssl..."
OPENSSL_VERSION=$(echo $OPENSSL_VERSION | sed 's/\./_/g')
download \
Expand Down
1 change: 1 addition & 0 deletions tools/dependencies/protobuf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ if [[ ! -e $LIBPROTOBUF ]] || [[ ! -e $LIBPROTOC ]]; then
./configure -prefix=$DEPS_PATH
$MAKE
$MAKE install
rm $DEPS_PATH/lib/*proto*$DY_EXT*
popd
fi

9 changes: 9 additions & 0 deletions tools/dependencies/zmq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
# This script builds the static library of zeroMQ that can be used as dependency of mxnet.
set -ex
ZEROMQ_VERSION=4.2.2
if [[ $PLATFORM == 'darwin' ]]; then
DY_EXT="dylib"
else
DY_EXT="so"
fi

if [[ ! -f $DEPS_PATH/lib/libzmq.a ]]; then
# Download and build zmq
>&2 echo "Building zmq..."
Expand All @@ -39,8 +45,11 @@ if [[ ! -f $DEPS_PATH/lib/libzmq.a ]]; then
$MAKE install

if [[ ! -f $DEPS_PATH/lib/libzmq.a ]]; then
rm $DEPS_PATH/lib64/*zmq*$DY_EXT*
mkdir -p $DEPS_PATH/lib
cp $DEPS_PATH/lib64/*zmq* $DEPS_PATH/lib
else
rm $DEPS_PATH/lib/*zmq*$DY_EXT*
fi

popd
Expand Down