-
Notifications
You must be signed in to change notification settings - Fork 442
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-825]Enable compiling in macOS. #827
Conversation
Add some no-error compile options.
@CodingCat you may try this PR |
@@ -908,18 +907,6 @@ Java_io_glutenproject_memory_alloc_NativeMemoryAllocator_bytesAllocated(JNIEnv* | |||
JNI_METHOD_END(-1L) | |||
} | |||
|
|||
JNIEXPORT void JNICALL Java_io_glutenproject_tpc_MallocUtils_mallocTrim(JNIEnv* env, jobject obj) { |
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.
After search all project about this interface, I can not find any usage.
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.
@zhztheplayer Can we remove the API?
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.
+1, it should be removed.
can we set a CI/CD step to build on mac? just to ensure that what is committed in this PR will not be broken |
also as discussed in slack, build_velox.sh also need some non-tiny changes....(is the correctness of the script covered by the current CI/CD?) |
I tested this PR, it didn't work in my local, seems GTEST changes is the deal breaker |
After thinking about real usage, build and run in macOS without docker has less benefits, so i would close this pr. |
What changes were proposed in this pull request?
Platform:
MacOS 12.3 (Intel)
Apple clang 13.1.6
Homebrew 3.6.17
This pr enabling compile Gluten in macOS without Docker, pr #819 do similar things with Docker.
Add some no-error compile options, and modify some code to get macOS compatibility.
#825
References:
CPU Affinity on macOS
GTest with CMake
-Wpessimizing-move
How was this patch tested?
manul test.
Contract me if any problem in your macOS.