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

use CC=gcc-7 CXX=g++-7 for all unix CI builds #19701

Merged
merged 3 commits into from
Dec 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/docker/Dockerfile.build.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
unzip \
pandoc \
## Development tools
cmake \
build-essential \
ninja-build \
git \
Expand All @@ -56,6 +55,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
clang-10 \
clang-tidy-10 \
g++ \
g++-7 \
g++-8 \
intel-mkl-2020.0-088 \
libomp-dev \
Expand Down
26 changes: 14 additions & 12 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ build_ubuntu_cpu() {
build_ubuntu_cpu_openblas() {
set -ex
cd /work/build
CXXFLAGS="-Wno-error=strict-overflow" cmake \
CXXFLAGS="-Wno-error=strict-overflow" CC=gcc-7 CXX=g++-7 cmake \
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
-DENABLE_TESTCOVERAGE=ON \
-DUSE_TVM_OP=ON \
Expand All @@ -331,7 +331,7 @@ build_ubuntu_cpu_openblas() {
build_ubuntu_cpu_mkl() {
set -ex
cd /work/build
cmake \
CC=gcc-7 CXX=g++-7 cmake \
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
-DENABLE_TESTCOVERAGE=OFF \
-DUSE_MKLDNN=OFF \
Expand All @@ -347,7 +347,7 @@ build_ubuntu_cpu_mkl() {
build_ubuntu_cpu_cmake_debug() {
set -ex
cd /work/build
cmake \
CC=gcc-7 CXX=g++-7 cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DENABLE_TESTCOVERAGE=ON \
-DUSE_CUDA=OFF \
Expand All @@ -364,7 +364,7 @@ build_ubuntu_cpu_cmake_debug() {
build_ubuntu_cpu_cmake_no_tvm_op() {
set -ex
cd /work/build
cmake \
CC=gcc-7 CXX=g++-7 cmake \
-DUSE_CUDA=OFF \
-DUSE_TVM_OP=OFF \
-DUSE_MKL_IF_AVAILABLE=OFF \
Expand Down Expand Up @@ -509,7 +509,7 @@ build_ubuntu_cpu_clang100_mkldnn() {
build_ubuntu_cpu_mkldnn() {
set -ex
cd /work/build
cmake \
CC=gcc-7 CXX=g++-7 cmake \
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
-DENABLE_TESTCOVERAGE=ON \
-DUSE_MKL_IF_AVAILABLE=OFF \
Expand All @@ -524,7 +524,7 @@ build_ubuntu_cpu_mkldnn() {
build_ubuntu_cpu_mkldnn_mkl() {
set -ex
cd /work/build
cmake \
CC=gcc-7 CXX=g++-7 cmake \
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
-DENABLE_TESTCOVERAGE=OFF \
-DUSE_MKLDNN=ON \
Expand All @@ -541,6 +541,8 @@ build_ubuntu_gpu_tensorrt() {

set -ex

export CC=gcc-7
export CXX=g++-7
export ONNX_NAMESPACE=onnx

# Build ONNX
Expand Down Expand Up @@ -593,7 +595,7 @@ build_ubuntu_gpu_tensorrt() {
build_ubuntu_gpu_mkldnn() {
set -ex
cd /work/build
cmake \
CC=gcc-7 CXX=g++-7 cmake \
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
-DUSE_MKL_IF_AVAILABLE=OFF \
-DUSE_CUDA=ON \
Expand All @@ -607,7 +609,7 @@ build_ubuntu_gpu_mkldnn() {
build_ubuntu_gpu_mkldnn_nocudnn() {
set -ex
cd /work/build
cmake \
CC=gcc-7 CXX=g++-7 cmake \
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
-DUSE_MKL_IF_AVAILABLE=OFF \
-DUSE_CUDA=ON \
Expand All @@ -622,7 +624,7 @@ build_ubuntu_gpu_mkldnn_nocudnn() {
build_ubuntu_gpu() {
set -ex
cd /work/build
cmake \
CC=gcc-7 CXX=g++-7 cmake \
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
-DUSE_MKL_IF_AVAILABLE=OFF \
-DUSE_CUDA=ON \
Expand All @@ -640,7 +642,7 @@ build_ubuntu_gpu() {
build_ubuntu_gpu_debug() {
set -ex
cd /work/build
cmake \
CC=gcc-7 CXX=g++-7 cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DUSE_MKL_IF_AVAILABLE=OFF \
-DUSE_CUDA=ON \
Expand All @@ -657,7 +659,7 @@ build_ubuntu_gpu_debug() {
build_ubuntu_cpu_large_tensor() {
set -ex
cd /work/build
cmake \
CC=gcc-7 CXX=g++-7 cmake \
-DUSE_SIGNAL_HANDLER=ON \
-DUSE_CUDA=OFF \
-DUSE_CUDNN=OFF \
Expand All @@ -671,7 +673,7 @@ build_ubuntu_cpu_large_tensor() {
build_ubuntu_gpu_large_tensor() {
set -ex
cd /work/build
cmake \
CC=gcc-7 CXX=g++-7 cmake \
-DUSE_SIGNAL_HANDLER=ON \
-DUSE_CUDA=ON \
-DUSE_CUDNN=ON \
Expand Down