File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed
Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ option(TILEDB_GIT_TAG "Git tag to use for building" "")
5555option (FORCE_BUILD_TILEDB "Force building TileDB and don't check for system installation" OFF )
5656option (DOWNLOAD_TILEDB_PREBUILT "If tiledb is being super built, this controls downloading prebuilt artifacts or building from source" ON )
5757option (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 precompiled Linux binaries with AVX2. if we build from source the architecture will match the current CPU" OFF )
5859
5960############################################################
6061# Superbuild setup
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ plugins {
99}
1010
1111group ' io.tiledb'
12- version ' 0.19.5 -SNAPSHOT'
12+ version ' 0.19.6 -SNAPSHOT'
1313
1414repositories {
1515 jcenter()
@@ -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)) {
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ TILEDB_SERIALIZATION=OFF
88FORCE_BUILD_TILEDB =OFF
99DOWNLOAD_TILEDB_PREBUILT =ON
1010TILEDB_SKIP_S3AWSSDK_DIR_LENGTH_CHECK =ON
11+ USE_AVX2 =OFF
You can’t perform that action at this time.
0 commit comments