Merge branch 'ganand1/master_icx_launch' of https://github.com/Intel-tensorflow/tensorflow into ganand1/master_icx_launch

This commit is contained in:
ganand1 2020-11-24 09:22:34 -08:00
commit 1e3889340f
3 changed files with 10 additions and 16 deletions

View File

@ -84,7 +84,7 @@ RUN if [ "${ENABLE_HOROVOD}" = "yes" ]; then \
rm -rf install_openmpi_horovod.sh; \
fi
# Remove crypto python packages due to SWLC
# Remove crypto python packages for software compliance check.
RUN if [ "${RELEASE_CONTAINER}" = "yes" ]; then \
${PIP} uninstall --yes cryptography && \
rm -rf /usr/lib/python3/dist-packages/pycrypto-2.6.1.egg-info; \

View File

@ -169,13 +169,9 @@ function build_container()
fi
# Add build arg GCC8 install
if [[ ${ENABLE_GCC8} == "yes" ]]; then
TF_DOCKER_BUILD_ARGS+=("--build-arg ENABLE_GCC8=${ENABLE_GCC8}")
fi
TF_DOCKER_BUILD_ARGS+=("--build-arg ENABLE_GCC8=${ENABLE_GCC8}")
if [[ ${RELEASE_CONTAINER} == "yes" ]]; then
TF_DOCKER_BUILD_ARGS+=("--build-arg RELEASE_CONTAINER=${RELEASE_CONTAINER}")
fi
TF_DOCKER_BUILD_ARGS+=("--build-arg RELEASE_CONTAINER=${RELEASE_CONTAINER}")
# Perform docker build
debug "Building docker image with image name and tag: ${TEMP_IMAGE_NAME}"

View File

@ -25,6 +25,7 @@ OPENMPI_DOWNLOAD_URL=${OPENMPI_DOWNLOAD_URL:-https://www.open-mpi.org/software/o
INSTALL_HOROVOD_FROM_COMMIT=${INSTALL_HOROVOD_FROM_COMMIT:-no}
BUILD_SSH=${BUILD_SSH:-no}
HOROVOD_VERSION=${HOROVOD_VERSION:-0.19.1}
SSH_CONFIG_PATH=/etc/ssh/ssh_config
# Install Open MPI
echo "Installing OpenMPI version ${OPENMPI_VERSION} ..."
@ -69,11 +70,8 @@ if [[ ${BUILD_SSH} == "yes" ]]; then
make install
apt-get clean && apt-get update && \
apt-get install -y --no-install-recommends --fix-missing \
libnuma-dev cmake
grep -v StrictHostKeyChecking /usr/local/etc/ssh_config > /usr/local/etc/ssh_config.new
# Allow OpenSSH to talk to containers without asking for confirmation
echo " StrictHostKeyChecking no" >> /usr/local/etc/ssh_config.new
mv /usr/local/etc/ssh_config.new /usr/local/etc/ssh_config
libnuma-dev cmake
SSH_CONFIG_PATH=/usr/loca/etc/ssh_config
else
apt-get clean && apt-get update && \
apt-get install -y --no-install-recommends --fix-missing \
@ -90,12 +88,12 @@ else
echo "Unsupported Linux distribution. Aborting!" && exit 1
fi
fi
grep -v StrictHostKeyChecking /etc/ssh/ssh_config > /etc/ssh/ssh_config.new
# Allow OpenSSH to talk to containers without asking for confirmation
echo " StrictHostKeyChecking no" >> /etc/ssh/ssh_config.new
mv /etc/ssh/ssh_config.new /etc/ssh/ssh_config
fi
mkdir -p /var/run/sshd
grep -v StrictHostKeyChecking ${SSH_CONFIG_PATH} > /etc/ssh/ssh_config.new
# Allow OpenSSH to talk to containers without asking for confirmation
echo " StrictHostKeyChecking no" >> /etc/ssh/ssh_config.new
mv /etc/ssh/ssh_config.new ${SSH_CONFIG_PATH}
# Install Horovod
if [[ ${INSTALL_HOROVOD_FROM_COMMIT} == "yes" ]]; then