Skip to content

Commit 237273c

Browse files
use Linux binaries without avx2
1 parent 8e20074 commit 237273c

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ option(TILEDB_GIT_TAG "Git tag to use for building" "")
5555
option(FORCE_BUILD_TILEDB "Force building TileDB and don't check for system installation" OFF)
5656
option(DOWNLOAD_TILEDB_PREBUILT "If tiledb is being super built, this controls downloading prebuilt artifacts or building from source" ON)
5757
option(TILEDB_SKIP_S3AWSSDK_DIR_LENGTH_CHECK "If true, skip check needed path length for awssdk (TILEDB_S3) dependent builds" OFF)
58+
option(USE_AVX2 "If true TileDB-Java will use the Linux binaries with AVX2" OFF)
5859

5960
############################################################
6061
# Superbuild setup

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ task cmakeTask(type: Exec) {
8484
"TILEDB_SERIALIZATION",
8585
"FORCE_BUILD_TILEDB",
8686
"TILEDB_SKIP_S3AWSSDK_DIR_LENGTH_CHECK",
87+
"USE_AVX2",
8788
"DOWNLOAD_TILEDB_PREBUILT"
8889
].each { v ->
8990
if (project.hasProperty(v)) {

cmake/Modules/FindTileDB_EP.cmake

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,16 @@ if (NOT TILEDB_FOUND)
6262
SET(DOWNLOAD_URL "https://github.com/TileDB-Inc/TileDB/releases/download/2.17.4/tiledb-macos-arm64-2.17.4-a1f648e.tar.gz")
6363
SET(DOWNLOAD_SHA1 "e6ec0634f665943ff9879041ab122bdaa96349df")
6464
endif()
65-
6665
else() # Linux
67-
SET(DOWNLOAD_URL "https://github.com/TileDB-Inc/TileDB/releases/download/2.17.4/tiledb-linux-x86_64-2.17.4-a1f648e.tar.gz")
68-
SET(DOWNLOAD_SHA1 "7849cbbf19f5f9252e4be5350328754b01938aaa")
66+
if (USE_AVX2)
67+
message(STATUS "Using Linux binaries with AVX2")
68+
SET(DOWNLOAD_URL "https://github.com/TileDB-Inc/TileDB/releases/download/2.17.4/tiledb-linux-x86_64-2.17.4-a1f648e.tar.gz")
69+
SET(DOWNLOAD_SHA1 "7849cbbf19f5f9252e4be5350328754b01938aaa")
70+
else()
71+
message(STATUS "Using Linux binaries without AVX2")
72+
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")
73+
SET(DOWNLOAD_SHA1 "f7b959ec521fd0ebd82b266549c454bef20d0a40")
74+
endif()
6975
endif()
7076

7177
ExternalProject_Add(ep_tiledb

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ TILEDB_S3=ON
55
TILEDB_AZURE=OFF
66
TILEDB_HDFS=OFF
77
TILEDB_SERIALIZATION=OFF
8-
FORCE_BUILD_TILEDB=OFF
8+
FORCE_BUILD_TILEDB=ON
99
DOWNLOAD_TILEDB_PREBUILT=ON
1010
TILEDB_SKIP_S3AWSSDK_DIR_LENGTH_CHECK=ON
11+
USE_AVX2=ON

0 commit comments

Comments
 (0)