-
Notifications
You must be signed in to change notification settings - Fork 5
add native support for Apple Silicon macs #310
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
add native support for Apple Silicon macs #310
Conversation
2920ff7
to
118766a
Compare
This pull request has been linked to Shortcut Story #11462: ARM support. |
cmake/Modules/FindTileDB_EP.cmake
Outdated
@@ -51,8 +51,15 @@ if (NOT TILEDB_FOUND) | |||
SET(DOWNLOAD_URL "https://github.com./TileDB-Inc/TileDB/releases/download/2.16.3/tiledb-windows-x86_64-2.16.3-194b5ae.zip") | |||
SET(DOWNLOAD_SHA1 "8e986b6143ef9509201c7f2b3c0a7a53ff41095a") | |||
elseif(APPLE) # macOS | |||
SET(DOWNLOAD_URL "https://github.com./TileDB-Inc/TileDB/releases/download/2.16.3/tiledb-macos-x86_64-2.16.3-194b5ae.tar.gz") | |||
SET(DOWNLOAD_SHA1 "b4d35306771d1c30b49bf2a98651e8e24c91037e") | |||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64") |
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 won't work correctly if we are "cross-compiling" from x86_64, we need to also check CMAKE_OSX_ARCHITECTURES
. See: TileDB-Inc/TileDB-Vector-Search@b3c70a9
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!
|
Yes as soon as I solve the compilation errors I will work on the lib locations/names. We can certainly disable runs for PRs and master merges |
6a91483
to
365b4f7
Compare
Hey @DimitrisStaratzis, Will this fix be applied to the 17.x version? |
Hi @mosabdullah , |
8515e43
to
322de16
Compare
If you meant 2.17.X then yes. It will be released with TileDB-Java-0.19.0 which corresponds to TileDB-2.17.0 |
63ea1cd
to
aebbc8d
Compare
c49dfd0
to
1b3e556
Compare
e7a704b
to
935a573
Compare
935a573
to
fe5135c
Compare
|
||
if (System.getProperty("os.name").contains("mac") | ||
&& System.getProperty("os.arch").equals("aarch64")) { | ||
libDir = "arm" + libDir; |
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.
nit: could use arm-
for more consistency with other target-naming styles
No, I mean the tiledb-java 0.17.0 version, as that is the one we are using. I can check if it is feasible to upgrade to the 0.19 version. If we moved to the 0.19 version, will it be backwards compatible with arrays created with 2.15.X versions? |
This PR adds native support for Apple Silicon macs using the TileDB-Java API. It also adds the ARM native libs in the release jar.
I have modified the CI to test against Apple Silicon. I have also added an additional step just before the "release" to test the functionality of the fatJar on all platforms.
A complete run can be found here: https://github.com./TileDB-Inc/TileDB-Java/actions/runs/6495589089. This run created a draft release. You can inspect the final jar here: https://github.com./TileDB-Inc/TileDB-Java/releases/tag/untagged-8e30ff0d9545eb7048bb
[sc-11462]