This is an automated email from the ASF dual-hosted git repository.

lausen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new bd6b80e  CI: Disable AVX instructions in libzstd ccache dependency 
(#17842)
bd6b80e is described below

commit bd6b80edd0ac774dd4569b741966ad1a72b17d03
Author: Leonard Lausen <[email protected]>
AuthorDate: Mon Mar 16 10:28:47 2020 -0700

    CI: Disable AVX instructions in libzstd ccache dependency (#17842)
    
    Caching the source-compiled variants of libzstd1 and libb2 via our Docker 
cache can lead to "Illegal instruction" errors when deploying the docker image 
on an older machines.
---
 ci/docker/install/deb_ubuntu_ccache.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ci/docker/install/deb_ubuntu_ccache.sh 
b/ci/docker/install/deb_ubuntu_ccache.sh
index 76248cf..096f86a 100755
--- a/ci/docker/install/deb_ubuntu_ccache.sh
+++ b/ci/docker/install/deb_ubuntu_ccache.sh
@@ -54,6 +54,9 @@ cd ccache
 # ccache 4 contains fixes for caching nvcc output: 
https://github.com/ccache/ccache/pull/381
 git checkout 2e7154e67a5dd56852dae29d4c418d4ddc07c230
 
+
+export CFLAGS="-mno-avx"
+export CXXFLAGS="-mno-avx"
 ./autogen.sh
 ./configure --disable-man --with-libzstd-from-internet 
--with-libb2-from-internet
 make -j$(nproc)

Reply via email to