From 878f3ff4e171f78febccc8c9c6f4a2afa39d11a8 Mon Sep 17 00:00:00 2001 From: Umang Yadav Date: Tue, 3 Oct 2023 18:21:01 +0000 Subject: [PATCH 1/2] chages to avoid using template argument deduction for vector --- src/onnx/parse_resize.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/onnx/parse_resize.cpp b/src/onnx/parse_resize.cpp index 13fd4760e22..93ad95bdb27 100644 --- a/src/onnx/parse_resize.cpp +++ b/src/onnx/parse_resize.cpp @@ -320,7 +320,8 @@ struct parse_resize : op_parser // get the number of dimensions std::size_t n_dim = out_lens.size(); - auto vvv_ind = std::vector(n_dim, std::vector(2, std::vector(out_elements))); + std::vector> vv_ind(2, std::vector(out_elements)); + std::vector>> vvv_ind(n_dim, vv_ind); std::vector> delta(n_dim, std::vector(out_elements)); shape_for_each(out_s, [&](const auto& out_idx_v, size_t out_idx) { From 6de612715de9ec76d680c008be31265e3df2ad62 Mon Sep 17 00:00:00 2001 From: Umang Yadav Date: Tue, 3 Oct 2023 18:24:04 +0000 Subject: [PATCH 2/2] add Werror for SLES --- .github/workflows/ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index aad99c2cd1f..0cd5d708749 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -281,6 +281,7 @@ jobs: -DBUILD_DEV=On \ -DCMAKE_CXX_COMPILER_LAUNCHER=/usr/local/bin/ccache \ -DCMAKE_C_COMPILER_LAUNCHER=/usr/local/bin/ccache \ + -DCMAKE_CXX_FLAGS="-Werror" \ -DGPU_TARGETS=gfx908 \ .. make -j$(nproc) tests driver