Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GCC10] change triton flag #5915

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions triton-inference-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ Requires: openssl opencv protobuf grpc curl python py2-wheel py2-setuptools py2-
sed -i 's/find_package(CURL CONFIG REQUIRED)/find_package(CURL REQUIRED)/' ../%{n}-%{realversion}/src/clients/c++/library/CMakeLists.txt
# remove perf_client which requires rapidjson
sed -i 's/add_subdirectory(perf_client)//' ../%{n}-%{realversion}/src/clients/c++/CMakeLists.txt
#change flag due to bug in gcc10 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95148
if [[ `gcc --version | head -1 | cut -d' ' -f3 | cut -d. -f1,2,3 | tr -d .` -gt 1000 ]] ; then
sed -i -e "s|Werror|Wtype-limits|g" ../%{n}-%{realversion}/build/trtis-clients/CMakeLists.txt
fi

rm -rf ../build
mkdir ../build
Expand All @@ -34,7 +38,9 @@ cmake ../%{n}-%{realversion}/build/trtis-clients \
-DTRTIS_VERSION=%{realversion} \
-DZLIB_ROOT=${ZLIB_ROOT} \
-DOPENSSL_ROOT_DIR=${OPENSSL_ROOT} \
-DCMAKE_CXX_FLAGS="-Wno-error" \
-DCMAKE_PREFIX_PATH="${ZLIB_ROOT}"

make %{makeprocesses}

%install
Expand Down