-
Notifications
You must be signed in to change notification settings - Fork 137
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
Only check the gcc version ceiling when it is on linux #991
Only check the gcc version ceiling when it is on linux #991
Conversation
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
@@ -119,7 +119,7 @@ fi | |||
# https://github.com/opensearch-project/k-NN/issues/975 | |||
GCC_REQUIRED_VERSION_CEILING=8.0.0 | |||
COMPARE_VERSION_CEILING=`echo $GCC_REQUIRED_VERSION_CEILING $GCC_VERSION | tr ' ' '\n' | sort -V | uniq | tail -n 1` | |||
if [ ! "$COMPARE_VERSION_CEILING" = "$GCC_REQUIRED_VERSION_CEILING" ]; then | |||
if [ "$COMPARE_VERSION_CEILING" != "$GCC_REQUIRED_VERSION_CEILING" ] && (echo "$OSTYPE" | grep -i linux); then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use "$PLATFORM" from top instead ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is temp code specifically for centos7 before we move to rockylinux8.
Both the x64 and the arm64 centos7 image is built based on the same dockerfile thus have same gcc version.
As long as linux is specifically locked to version above 4.9 and lower than 8 we are good.
Codecov Report
@@ Coverage Diff @@
## main #991 +/- ##
=========================================
Coverage 85.13% 85.13%
Complexity 1141 1141
=========================================
Files 154 154
Lines 4683 4683
Branches 423 423
=========================================
Hits 3987 3987
Misses 504 504
Partials 192 192 |
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> (cherry picked from commit 0801408)
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> (cherry picked from commit 0801408)
Description
Only check the gcc version ceiling when it is on linux
Issues Resolved
#975
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.