Skip to content

use Linux binaries without avx2 by default #321

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

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

DimitrisStaratzis
Copy link
Contributor

@DimitrisStaratzis DimitrisStaratzis commented Nov 3, 2023

This PR will make the Java API to use the Linux noavx2 binaries by default. This resolves #309. Also introduced the USE_AVX2 gradle property.

@DimitrisStaratzis DimitrisStaratzis marked this pull request as draft November 3, 2023 16:52
@DimitrisStaratzis DimitrisStaratzis force-pushed the dstara/use_noavx_linux_binaries branch from 55c90df to 3beb4c6 Compare November 3, 2023 16:57
@@ -64,8 +64,8 @@ if (NOT TILEDB_FOUND)
endif()

else() # Linux
SET(DOWNLOAD_URL "https://github.com/TileDB-Inc/TileDB/releases/download/2.17.4/tiledb-linux-x86_64-2.17.4-a1f648e.tar.gz")
SET(DOWNLOAD_SHA1 "7849cbbf19f5f9252e4be5350328754b01938aaa")
SET(DOWNLOAD_URL "https://github.com/TileDB-Inc/TileDB/releases/download/2.17.4/tiledb-linux-x86_64-noavx2-2.17.4-a1f648e.tar.gz")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you'll need to add an alternate URL for the other set of binaries in order for grade to use them, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes exactly. Will push shortly

@DimitrisStaratzis DimitrisStaratzis force-pushed the dstara/use_noavx_linux_binaries branch 3 times, most recently from 237273c to 54469bd Compare November 8, 2023 17:27
@DimitrisStaratzis DimitrisStaratzis marked this pull request as ready for review November 8, 2023 17:28
@DimitrisStaratzis DimitrisStaratzis force-pushed the dstara/use_noavx_linux_binaries branch from 54469bd to 0f09402 Compare November 8, 2023 18:00
@DimitrisStaratzis DimitrisStaratzis changed the title use Linux binaries without avx2 use Linux binaries without avx2 by default Nov 8, 2023
CMakeLists.txt Outdated
@@ -55,6 +55,7 @@ option(TILEDB_GIT_TAG "Git tag to use for building" "")
option(FORCE_BUILD_TILEDB "Force building TileDB and don't check for system installation" OFF)
option(DOWNLOAD_TILEDB_PREBUILT "If tiledb is being super built, this controls downloading prebuilt artifacts or building from source" ON)
option(TILEDB_SKIP_S3AWSSDK_DIR_LENGTH_CHECK "If true, skip check needed path length for awssdk (TILEDB_S3) dependent builds" OFF)
option(USE_AVX2 "If true TileDB-Java will use the Linux binaries with AVX2" OFF)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: "precompiled" (if we build from source the architecture will match the current CPU)

@DimitrisStaratzis DimitrisStaratzis force-pushed the dstara/use_noavx_linux_binaries branch from 0f09402 to 0de1529 Compare November 8, 2023 20:20
@DimitrisStaratzis DimitrisStaratzis merged commit 8317b67 into master Nov 8, 2023
@DimitrisStaratzis DimitrisStaratzis deleted the dstara/use_noavx_linux_binaries branch November 8, 2023 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running in Docker on OSX gives java.lang.UnsatisfiedLinkError: 'long io.tiledb.libtiledb.tiledbJNI.new_tiledb_config_tpp()'
2 participants