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

Commit

Permalink
switch centos python to 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
szha committed Apr 22, 2020
1 parent 761d6ac commit 645d508
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
7 changes: 4 additions & 3 deletions ci/docker/Dockerfile.build.centos7
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ RUN yum -y check-update || true && \
protobuf-devel \
# CentOS Software Collections https://www.softwarecollections.org
devtoolset-7 \
rh-python35 \
rh-python36 \
rh-maven35 \
# Libraries
# Provide clbas headerfiles
Expand All @@ -71,7 +71,7 @@ RUN yum -y check-update || true && \

# Make GCC7, Python 3.5 and Maven 3.3 Software Collections available by default
# during build and runtime of this container
SHELL [ "/usr/bin/scl", "enable", "devtoolset-7", "rh-python35", "rh-maven35" ]
SHELL [ "/usr/bin/scl", "enable", "devtoolset-7", "rh-python36", "rh-maven35" ]

# Install minimum required cmake version
RUN cd /usr/local/src && \
Expand Down Expand Up @@ -101,7 +101,8 @@ RUN pip3 install --no-cache-dir --upgrade pip && \
pytest-timeout==1.3.4 \
mock==2.0.0 \
onnx==1.5.0 \
protobuf==3.5.2
protobuf==3.5.2 \
tabulate==0.7.5


ARG USER_ID=0
Expand Down
22 changes: 11 additions & 11 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ sanity_check() {
# $1 -> mxnet_variant: The variant of the libmxnet.so library
cd_unittest_ubuntu() {
set -ex
source /opt/rh/rh-python35/enable
source /opt/rh/rh-python36/enable
export PYTHONPATH=./python/
export MXNET_MKLDNN_DEBUG=0 # Ignored if not present
export MXNET_STORAGE_FALLBACK_LOG_VERBOSE=0
Expand Down Expand Up @@ -1091,7 +1091,7 @@ unittest_ubuntu_tensorrt_gpu() {
unittest_ubuntu_python3_quantization_gpu() {
set -ex
if [ -f /etc/redhat-release ]; then
source /opt/rh/rh-python35/enable
source /opt/rh/rh-python36/enable
fi
export PYTHONPATH=./python/
export MXNET_MKLDNN_DEBUG=0 # Ignored if not present
Expand Down Expand Up @@ -1240,15 +1240,15 @@ unittest_ubuntu_cpu_julia10() {

unittest_centos7_cpu() {
set -ex
source /opt/rh/rh-python35/enable
source /opt/rh/rh-python36/enable
cd /work/mxnet
python -m pytest --durations=50 --cov-report xml:tests_unittest.xml --verbose tests/python/unittest
python -m pytest --durations=50 --cov-report xml:tests_train.xml --verbose tests/python/train
}

unittest_centos7_gpu() {
set -ex
source /opt/rh/rh-python35/enable
source /opt/rh/rh-python36/enable
cd /work/mxnet
export CUDNN_VERSION=${CUDNN_VERSION:-7.0.3}
export DMLC_LOG_STACK_TRACE_DEPTH=10
Expand Down Expand Up @@ -1914,7 +1914,7 @@ build_static_libmxnet() {
set -ex
pushd .
source /opt/rh/devtoolset-7/enable
source /opt/rh/rh-python35/enable
source /opt/rh/rh-python36/enable
export USE_SYSTEM_CUDA=1
local mxnet_variant=${1:?"This function requires a python command as the first argument"}
source tools/staticbuild/build.sh ${mxnet_variant}
Expand All @@ -1926,7 +1926,7 @@ cd_package_pypi() {
set -ex
pushd .
source /opt/rh/devtoolset-7/enable
source /opt/rh/rh-python35/enable
source /opt/rh/rh-python36/enable
local mxnet_variant=${1:?"This function requires a python command as the first argument"}
./cd/python/pypi/pypi_package.sh ${mxnet_variant}
popd
Expand All @@ -1935,7 +1935,7 @@ cd_package_pypi() {
# Sanity checks wheel file
cd_integration_test_pypi() {
set -ex
source /opt/rh/rh-python35/enable
source /opt/rh/rh-python36/enable

local gpu_enabled=${1:-"false"}

Expand Down Expand Up @@ -1991,7 +1991,7 @@ build_static_python_cpu() {
pushd .
export mxnet_variant=cpu
source /opt/rh/devtoolset-7/enable
source /opt/rh/rh-python35/enable
source /opt/rh/rh-python36/enable
./ci/publish/python/build.sh
popd
}
Expand All @@ -2002,7 +2002,7 @@ build_static_python_cu92() {
export mxnet_variant=cu92
export USE_SYSTEM_CUDA=1
source /opt/rh/devtoolset-7/enable
source /opt/rh/rh-python35/enable
source /opt/rh/rh-python36/enable
./ci/publish/python/build.sh
popd
}
Expand All @@ -2013,7 +2013,7 @@ build_static_python_cpu_cmake() {
export mxnet_variant=cpu
export CMAKE_STATICBUILD=1
source /opt/rh/devtoolset-7/enable
source /opt/rh/rh-python35/enable
source /opt/rh/rh-python36/enable
./ci/publish/python/build.sh
popd
}
Expand All @@ -2025,7 +2025,7 @@ build_static_python_cu92_cmake() {
export CMAKE_STATICBUILD=1
export USE_SYSTEM_CUDA=1
source /opt/rh/devtoolset-7/enable
source /opt/rh/rh-python35/enable
source /opt/rh/rh-python36/enable
./ci/publish/python/build.sh
popd
}
Expand Down

0 comments on commit 645d508

Please sign in to comment.