This is an automated email from the ASF dual-hosted git repository.
weitingchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git
The following commit(s) were added to refs/heads/main by this push:
new f85b3d68c [VL] Support tencentos 2.4 (#5207)
f85b3d68c is described below
commit f85b3d68c901d9f6b7016fd6121c1e8cacd6d4a6
Author: zhixingheyi-tian <[email protected]>
AuthorDate: Thu Jul 4 22:57:52 2024 +0800
[VL] Support tencentos 2.4 (#5207)
Co-authored-by: xiangxshen <[email protected]>
---
.../org/apache/gluten/backendsapi/velox/VeloxListenerApi.scala | 4 +++-
dev/package.sh | 4 +++-
ep/build-velox/src/build_velox.sh | 7 +++++++
ep/build-velox/src/get_velox.sh | 1 +
4 files changed, 14 insertions(+), 2 deletions(-)
diff --git
a/backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxListenerApi.scala
b/backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxListenerApi.scala
index e1abbdd7c..e5c3cb084 100644
---
a/backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxListenerApi.scala
+++
b/backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxListenerApi.scala
@@ -78,6 +78,8 @@ class VeloxListenerApi extends ListenerApi {
new SharedLibraryLoaderCentos8
} else if (systemName.contains("Anolis") && systemVersion.startsWith("7"))
{
new SharedLibraryLoaderCentos7
+ } else if (system.contains("tencentos") && system.contains("2.4")) {
+ new SharedLibraryLoaderCentos7
} else if (system.contains("tencentos") && system.contains("3.2")) {
new SharedLibraryLoaderCentos8
} else if (systemName.contains("Red Hat") &&
systemVersion.startsWith("9")) {
@@ -94,7 +96,7 @@ class VeloxListenerApi extends ListenerApi {
throw new GlutenException(
s"Found unsupported OS($systemName, $systemVersion)! Currently,
Gluten's Velox backend" +
" only supports Ubuntu 20.04/22.04, CentOS 7/8, " +
- "Alibaba Cloud Linux 2/3 & Anolis 7/8, tencentos 3.2, RedHat 7/8/9,
" +
+ "Alibaba Cloud Linux 2/3 & Anolis 7/8, tencentos 2.4/3.2, RedHat
7/8, " +
"Debian 11/12.")
}
}
diff --git a/dev/package.sh b/dev/package.sh
index 1b9ca85e9..7e7e793bd 100755
--- a/dev/package.sh
+++ b/dev/package.sh
@@ -68,7 +68,9 @@ elif [ "$LINUX_OS" == "alinux" ]; then
process_setup_centos_7
fi
elif [ "$LINUX_OS" == "tencentos" ]; then
- if [ "$VERSION" == "3.2" ]; then
+ if [ "$VERSION" == "2.4" ]; then
+ process_setup_centos_7
+ elif [ "$VERSION" == "3.2" ]; then
process_setup_centos_8
fi
elif [ "$LINUX_OS" == "debian" ]; then
diff --git a/ep/build-velox/src/build_velox.sh
b/ep/build-velox/src/build_velox.sh
index 47d0398c0..747eec3f8 100755
--- a/ep/build-velox/src/build_velox.sh
+++ b/ep/build-velox/src/build_velox.sh
@@ -265,6 +265,13 @@ function setup_linux {
esac
elif [[ "$LINUX_DISTRIBUTION" == "tencentos" ]]; then
case "$LINUX_VERSION_ID" in
+ 2.4)
+ scripts/setup-centos7.sh
+ set +u
+ export
PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/pkgconfig:$PKG_CONFIG_PATH
+ source /opt/rh/devtoolset-9/enable
+ set -u
+ ;;
3.2) scripts/setup-centos8.sh ;;
*)
echo "Unsupported tencentos version: $LINUX_VERSION_ID"
diff --git a/ep/build-velox/src/get_velox.sh b/ep/build-velox/src/get_velox.sh
index 6cd62332a..9193d7f89 100755
--- a/ep/build-velox/src/get_velox.sh
+++ b/ep/build-velox/src/get_velox.sh
@@ -286,6 +286,7 @@ function setup_linux {
esac
elif [[ "$LINUX_DISTRIBUTION" == "tencentos" ]]; then
case "$LINUX_VERSION_ID" in
+ 2.4) process_setup_centos7 ;;
3.2) process_setup_tencentos32 ;;
*)
echo "Unsupport tencentos version: $LINUX_VERSION_ID"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]