-
Notifications
You must be signed in to change notification settings - Fork 446
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
[GLUTEN-6571][VL] Add platform and arch subdirectory for base lib package #6942
Conversation
Run Gluten Clickhouse CI |
1 similar comment
Run Gluten Clickhouse CI |
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.
Looking good though does this work with 3rd libs?
It's likely the libs are already packaged into specific jars. So I assume we don't have to do anything for that?
cc @PHILO-HE
With vpkg packaging, |
Run Gluten Clickhouse CI |
I personally never used that feature. @PHILO-HE Do you know some? It would sound great if we can remove, as for long term we will completely drop dynamic build support. |
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.
👍
gluten-core/src/main/java/org/apache/gluten/vectorized/JniLibLoader.java
Outdated
Show resolved
Hide resolved
Run Gluten Clickhouse CI |
gluten-core/src/main/java/org/apache/gluten/vectorized/JniLibLoader.java
Outdated
Show resolved
Hide resolved
gluten-core/src/main/java/org/apache/gluten/vectorized/JniLibLoader.java
Outdated
Show resolved
Hide resolved
Yes, third-party lib package will never be used if gluten is built by vcpkg. |
Run Gluten Clickhouse CI |
@zhztheplayer @PHILO-HE Could you please help to see if the failed GA is a relevant failure?
|
Run Gluten Clickhouse CI |
It doesn't seem to be a related failure. I retriggered GA and the previously failed task passed. |
Run Gluten Clickhouse CI |
@zhztheplayer @PHILO-HE Could you please continue looking at it? |
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.
Thanks! Overall looking good.
BTW, is it possible to have a unit test to check on Gluten's behavior when os platform/arch is not supported by Jar? Perhaps we can raise an error like ... not supported by current Gluten build
in that case?
@@ -158,11 +158,10 @@ public static void unloadFromPath(String libPath) { | |||
} | |||
} | |||
|
|||
public void mapAndLoad(String unmappedLibName, boolean requireUnload) { | |||
public void mapAndLoad(String unmappedLibPath, boolean requireUnload) { |
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 remove the method now?
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 remove the method now?
It seems possible, I will remove it.
I will try to add a checker in |
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
What changes were proposed in this pull request?
Add platform and arch subdirectory for base lib package.
closes #6571
How was this patch tested?
Manual package and test.
Check gluten bundle jar:
Successfully load native libs:
Successfully execute tpcds q3.