Skip to content

Commit

Permalink
Remove Scala package test on build (apache#15915)
Browse files Browse the repository at this point in the history
Various build improvements to mirror pip build
  • Loading branch information
zachgk authored and Ubuntu committed Aug 20, 2019
1 parent c0e1d38 commit 76318cb
Show file tree
Hide file tree
Showing 15 changed files with 33 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ci/publish/scala/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ set -ex

# Compile tests for discovery later
cd scala-package
mvn -B deploy
mvn -B deploy -DskipTests=true
2 changes: 1 addition & 1 deletion make/maven/maven_darwin_mkl.mk
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ USE_CUDNN = 0
# CUDA_ARCH :=

# whether use cuda runtime compiling for writing kernels in native language (i.e. Python)
USE_NVRTC = 0
ENABLE_CUDA_RTC = 0

# use openmp for parallelization
USE_OPENMP = 0
Expand Down
4 changes: 3 additions & 1 deletion make/maven/maven_linux_cu90mkl.mk
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ USE_NCCL = 1
# CUDA_ARCH :=

# whether use cuda runtime compiling for writing kernels in native language (i.e. Python)
USE_NVRTC = 1
ENABLE_CUDA_RTC = 1

USE_NVTX=1

# use openmp for parallelization
USE_OPENMP = 1
Expand Down
4 changes: 3 additions & 1 deletion make/maven/maven_linux_cu92mkl.mk
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ USE_NCCL = 1
# CUDA_ARCH :=

# whether use cuda runtime compiling for writing kernels in native language (i.e. Python)
USE_NVRTC = 1
ENABLE_CUDA_RTC = 1

USE_NVTX=1

# use openmp for parallelization
USE_OPENMP = 1
Expand Down
2 changes: 1 addition & 1 deletion make/maven/maven_linux_mkl.mk
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ USE_CUDNN = 0
# CUDA_ARCH :=

# whether use cuda runtime compiling for writing kernels in native language (i.e. Python)
USE_NVRTC = 0
ENABLE_CUDA_RTC = 0

# use openmp for parallelization
USE_OPENMP = 1
Expand Down
2 changes: 2 additions & 0 deletions make/pip/pip_linux_cu100.mk
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ USE_NCCL = 1
# whether use cuda runtime compiling for writing kernels in native language (i.e. Python)
ENABLE_CUDA_RTC = 1

USE_NVTX=1

# use openmp for parallelization
USE_OPENMP = 1
USE_OPERATOR_TUNING = 1
Expand Down
2 changes: 2 additions & 0 deletions make/pip/pip_linux_cu100mkl.mk
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ USE_NCCL = 1
# whether use cuda runtime compiling for writing kernels in native language (i.e. Python)
ENABLE_CUDA_RTC = 1

USE_NVTX=1

# use openmp for parallelization
USE_OPENMP = 1
USE_OPERATOR_TUNING = 1
Expand Down
2 changes: 2 additions & 0 deletions make/pip/pip_linux_cu101.mk
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ USE_NCCL = 1
# whether use cuda runtime compiling for writing kernels in native language (i.e. Python)
ENABLE_CUDA_RTC = 1

USE_NVTX=1

# use openmp for parallelization
USE_OPENMP = 1
USE_OPERATOR_TUNING = 1
Expand Down
2 changes: 2 additions & 0 deletions make/pip/pip_linux_cu101mkl.mk
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ USE_NCCL = 1
# whether use cuda runtime compiling for writing kernels in native language (i.e. Python)
ENABLE_CUDA_RTC = 1

USE_NVTX=1

# use openmp for parallelization
USE_OPENMP = 1
USE_OPERATOR_TUNING = 1
Expand Down
2 changes: 2 additions & 0 deletions make/pip/pip_linux_cu91.mk
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ USE_NCCL = 1
# whether use cuda runtime compiling for writing kernels in native language (i.e. Python)
ENABLE_CUDA_RTC = 1

USE_NVTX=1

# use openmp for parallelization
USE_OPENMP = 1
USE_OPERATOR_TUNING = 1
Expand Down
2 changes: 2 additions & 0 deletions make/pip/pip_linux_cu91mkl.mk
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ USE_NCCL = 1
# whether use cuda runtime compiling for writing kernels in native language (i.e. Python)
ENABLE_CUDA_RTC = 1

USE_NVTX=1

# use openmp for parallelization
USE_OPENMP = 1
USE_OPERATOR_TUNING = 1
Expand Down
2 changes: 2 additions & 0 deletions make/pip/pip_linux_cu92.mk
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ USE_NCCL = 1
# whether use cuda runtime compiling for writing kernels in native language (i.e. Python)
ENABLE_CUDA_RTC = 1

USE_NVTX=1

# use openmp for parallelization
USE_OPENMP = 1
USE_OPERATOR_TUNING = 1
Expand Down
2 changes: 2 additions & 0 deletions make/pip/pip_linux_cu92mkl.mk
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ USE_NCCL = 1
# whether use cuda runtime compiling for writing kernels in native language (i.e. Python)
ENABLE_CUDA_RTC = 1

USE_NVTX=1

# use openmp for parallelization
USE_OPENMP = 1
USE_OPERATOR_TUNING = 1
Expand Down
2 changes: 1 addition & 1 deletion tools/dependencies/openblas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# This script builds the static library of openblas that can be used as dependency of mxnet.
set +e # This script throws an error but otherwise works
set -x
OPENBLAS_VERSION=0.3.3
OPENBLAS_VERSION=0.3.5
if [[ ! -e $DEPS_PATH/lib/libopenblas.a ]]; then
# download and build openblas
>&2 echo "Building openblas..."
Expand Down
9 changes: 7 additions & 2 deletions tools/setup_gpu_build_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ fi
if [[ $VARIANT == cu* ]]; then
CUDA_MAJOR_VERSION=$(echo $CUDA_VERSION | tr '-' '.' | cut -d. -f1,2)
CUDA_MAJOR_DASH=$(echo $CUDA_VERSION | tr '-' '.' | cut -d. -f1,2 | tr '.' '-')
CUDA_PATCH_MAJOR_DASH=$(echo $CUDA_PATCH_VERSION | tr '-' '.' | cut -d. -f1,2 | tr '.' '-')
NVIDIA_MAJOR_VERSION=$(echo $LIBCUDA_VERSION | cut -d. -f1)
LIBCUDA_MAJOR=$(echo $LIBCUDA_VERSION | cut -d. -f1)
LIBCUDNN_MAJOR=$(echo $LIBCUDNN_VERSION | cut -d. -f1)
Expand All @@ -83,8 +84,8 @@ if [[ $VARIANT == cu* ]]; then
os_id="ubuntu1604"
fi
export PATH=/usr/lib/binutils-2.26/bin/:${PATH}:$DEPS_PATH/usr/local/cuda-$CUDA_MAJOR_VERSION/bin
export CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}:$DEPS_PATH/usr/local/cuda-$CUDA_MAJOR_VERSION/include
export C_INCLUDE_PATH=${C_INCLUDE_PATH}:$DEPS_PATH/usr/local/cuda-$CUDA_MAJOR_VERSION/include
export CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}:$DEPS_PATH/usr/local/cuda-$CUDA_MAJOR_VERSION/include:$DEPS_PATH/usr/include
export C_INCLUDE_PATH=${C_INCLUDE_PATH}:$DEPS_PATH/usr/local/cuda-$CUDA_MAJOR_VERSION/include:$DEPS_PATH/usr/include
export LIBRARY_PATH=${LIBRARY_PATH}:$DEPS_PATH/usr/local/cuda-$CUDA_MAJOR_VERSION/lib64:$DEPS_PATH/usr/lib/x86_64-linux-gnu:$DEPS_PATH/usr/lib/nvidia-$NVIDIA_MAJOR_VERSION
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$DEPS_PATH/usr/local/cuda-$CUDA_MAJOR_VERSION/lib64:$DEPS_PATH/usr/lib/x86_64-linux-gnu:$DEPS_PATH/usr/lib/nvidia-$NVIDIA_MAJOR_VERSION
export NVCC=$DEPS_PATH/usr/local/cuda-$CUDA_MAJOR_VERSION/bin/nvcc
Expand All @@ -108,6 +109,7 @@ if [[ $VARIANT == cu101* ]]; then
"cuda-cusolver-dev-${CUDA_MAJOR_DASH}_${CUDA_VERSION}_amd64.deb" \
"cuda-misc-headers-${CUDA_MAJOR_DASH}_${CUDA_VERSION}_amd64.deb" \
"cuda-nvcc-${CUDA_MAJOR_DASH}_${CUDA_VERSION}_amd64.deb" \
"cuda-nvtx-${CUDA_MAJOR_DASH}_${CUDA_VERSION}_amd64.deb" \
"libcuda1-${LIBCUDA_MAJOR}_${LIBCUDA_VERSION}_amd64.deb" \
"nvidia-${LIBCUDA_MAJOR}_${LIBCUDA_VERSION}_amd64.deb" \
)
Expand All @@ -132,6 +134,7 @@ elif [[ $VARIANT == cu100* ]]; then
"cuda-cusolver-dev-${CUDA_MAJOR_DASH}_${CUDA_VERSION}_amd64.deb" \
"cuda-misc-headers-${CUDA_MAJOR_DASH}_${CUDA_VERSION}_amd64.deb" \
"cuda-nvcc-${CUDA_MAJOR_DASH}_${CUDA_PATCH_VERSION}_amd64.deb" \
"cuda-nvtx-${CUDA_MAJOR_DASH}_${CUDA_VERSION}_amd64.deb" \
"libcuda1-${LIBCUDA_MAJOR}_${LIBCUDA_VERSION}_amd64.deb" \
"nvidia-${LIBCUDA_MAJOR}_${LIBCUDA_VERSION}_amd64.deb" \
)
Expand All @@ -156,6 +159,7 @@ elif [[ $VARIANT == cu92* ]]; then
"cuda-cusolver-dev-${CUDA_MAJOR_DASH}_${CUDA_VERSION}_amd64.deb" \
"cuda-misc-headers-${CUDA_MAJOR_DASH}_${CUDA_VERSION}_amd64.deb" \
"cuda-nvcc-${CUDA_MAJOR_DASH}_${CUDA_PATCH_VERSION}_amd64.deb" \
"cuda-nvtx-${CUDA_MAJOR_DASH}_${CUDA_VERSION}_amd64.deb" \
"libcuda1-${LIBCUDA_MAJOR}_${LIBCUDA_VERSION}_amd64.deb" \
"nvidia-${LIBCUDA_MAJOR}_${LIBCUDA_VERSION}_amd64.deb" \
)
Expand All @@ -180,6 +184,7 @@ elif [[ $VARIANT == cu91* ]]; then
"cuda-cusolver-dev-${CUDA_MAJOR_DASH}_${CUDA_VERSION}_amd64.deb" \
"cuda-misc-headers-${CUDA_MAJOR_DASH}_${CUDA_VERSION}_amd64.deb" \
"cuda-nvcc-${CUDA_MAJOR_DASH}_9.1.85.2-1_amd64.deb" \
"cuda-nvtx-${CUDA_MAJOR_DASH}_${CUDA_VERSION}_amd64.deb" \
"libcuda1-${LIBCUDA_MAJOR}_${LIBCUDA_VERSION}_amd64.deb" \
"nvidia-${LIBCUDA_MAJOR}_${LIBCUDA_VERSION}_amd64.deb" \
)
Expand Down

0 comments on commit 76318cb

Please sign in to comment.