From 6500f27f80ba9357cc6f9f1e08fd6db77b3bfc44 Mon Sep 17 00:00:00 2001 From: Tian Jin Date: Fri, 25 Sep 2020 16:13:22 +0700 Subject: [PATCH] Use ubuntu focal as ppc64le base image. (#312) * Use ubuntu focal for ppc64le. * Rebuild prereq docker. * Rebuild prereq docker. * Limit ppc64le build to use two threads only. * Rebuild prereq docker. --- .travis.yml | 2 +- docker/prereq.ppc64le.Dockerfile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 830e494..f47aa31 100644 --- a/.travis.yml +++ b/.travis.yml @@ -113,7 +113,7 @@ jobs: arch: - ppc64le script: - - docker build -t onnxmlirczar/onnx-mlir-llvmimage-partial:ppc64le -f docker/prereq.ppc64le.Dockerfile --build-arg BASE_IMAGE="ubuntu:bionic" ./utils + - docker build -t onnxmlirczar/onnx-mlir-llvmimage-partial:ppc64le -f docker/prereq.ppc64le.Dockerfile --build-arg BASE_IMAGE="ubuntu:focal" ./utils - docker login -u onnxmlirczar -p "$DOCKER_HUB_TOKEN" - docker push onnxmlirczar/onnx-mlir-llvmimage-partial:ppc64le - stage: prereq-0 diff --git a/docker/prereq.ppc64le.Dockerfile b/docker/prereq.ppc64le.Dockerfile index 94b48d0..4c38e35 100644 --- a/docker/prereq.ppc64le.Dockerfile +++ b/docker/prereq.ppc64le.Dockerfile @@ -51,6 +51,7 @@ RUN if [ ! -f "/build/llvm-project/build/CMakeCache.txt" ]; then \ -DLLVM_ENABLE_RTTI=ON; \ fi +ENV MAKEFLAGS=-j2 RUN if timeout 30m cmake --build . --target -- ${MAKEFLAGS} ; then \ cmake --build . --target check-mlir; \ fi