"ppocr/modeling/transforms/tps_spatial_transformer.py" did not exist on "55c28ed5b4d5d3482c7ad0bb5b8706eaf122a755"
Commit 2a4766f7 authored by Paul's avatar Paul
Browse files

Add gcc7

parent a9c48b34
......@@ -6,9 +6,12 @@ ARG PREFIX=/usr/local
RUN dpkg --add-architecture i386
# Add rocm repository
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y curl apt-utils wget
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y curl apt-utils wget software-properties-common
RUN curl https://raw.githubusercontent.com/RadeonOpenCompute/ROCm-docker/master/add-rocm.sh | bash
# Add ubuntu toolchain
RUN apt-get update && add-apt-repository ppa:ubuntu-toolchain-r/test -y
# Install dependencies
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-unauthenticated \
apt-utils \
......@@ -19,6 +22,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-
cmake \
curl \
doxygen \
g++-7 \
gdb \
git \
hsa-rocr-dev \
......@@ -26,14 +30,14 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-
lcov \
libelf-dev \
libncurses5-dev \
libpthread-stubs0-dev \
libnuma-dev \
libpthread-stubs0-dev \
python \
python-dev \
python-pip \
rocminfo \
rocm-opencl \
rocm-opencl-dev \
rocminfo \
software-properties-common \
wget && \
apt-get clean && \
......
......@@ -97,11 +97,15 @@ rocmtest tidy: rocmnode('rocmtest') { cmake_build ->
stage('Clang Release') {
cmake_build('hcc', '-DCMAKE_BUILD_TYPE=release')
}
}, gcc: rocmnode('rocmtest') { cmake_build ->
stage('GCC Debug') {
}, gcc5: rocmnode('rocmtest') { cmake_build ->
stage('GCC 5 Debug') {
cmake_build('g++-5', '-DCMAKE_BUILD_TYPE=debug')
}
stage('GCC Release') {
stage('GCC 5 Release') {
cmake_build('g++-5', '-DCMAKE_BUILD_TYPE=release')
}
}, gcc7: rocmnode('rocmtest') { cmake_build ->
stage('GCC 7 Debug') {
cmake_build('g++-7', '-DCMAKE_BUILD_TYPE=debug')
}
}
......@@ -68,6 +68,19 @@ else()
-Wno-sign-compare
)
# Flags for gcc 7
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "7.0")
list(APPEND CMAKE_COMPILER_WARNINGS
-Wduplicated-branches
-Wduplicated-cond
-Wno-noexcept-type
-Wodr
-Wshift-negative-value
-Wshift-overflow=2
)
endif()
endif()
if (CMAKE_${COMPILER}_COMPILER_ID MATCHES "Clang")
list(APPEND CMAKE_COMPILER_WARNINGS
-Weverything
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment