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" "")
55
55
option (FORCE_BUILD_TILEDB "Force building TileDB and don't check for system installation" OFF )
56
56
option (DOWNLOAD_TILEDB_PREBUILT "If tiledb is being super built, this controls downloading prebuilt artifacts or building from source" ON )
57
57
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 )
58
59
59
60
############################################################
60
61
# Superbuild setup
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ task cmakeTask(type: Exec) {
84
84
" TILEDB_SERIALIZATION" ,
85
85
" FORCE_BUILD_TILEDB" ,
86
86
" TILEDB_SKIP_S3AWSSDK_DIR_LENGTH_CHECK" ,
87
+ " USE_AVX2" ,
87
88
" DOWNLOAD_TILEDB_PREBUILT"
88
89
]. each { v ->
89
90
if (project. hasProperty(v)) {
Original file line number Diff line number Diff line change @@ -62,10 +62,16 @@ if (NOT TILEDB_FOUND)
62
62
SET (DOWNLOAD_URL "https://github.com/TileDB-Inc/TileDB/releases/download/2.17.4/tiledb-macos-arm64-2.17.4-a1f648e.tar.gz" )
63
63
SET (DOWNLOAD_SHA1 "e6ec0634f665943ff9879041ab122bdaa96349df" )
64
64
endif ()
65
-
66
65
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 ()
69
75
endif ()
70
76
71
77
ExternalProject_Add (ep_tiledb
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ TILEDB_S3=ON
5
5
TILEDB_AZURE =OFF
6
6
TILEDB_HDFS =OFF
7
7
TILEDB_SERIALIZATION =OFF
8
- FORCE_BUILD_TILEDB =OFF
8
+ FORCE_BUILD_TILEDB =ON
9
9
DOWNLOAD_TILEDB_PREBUILT =ON
10
10
TILEDB_SKIP_S3AWSSDK_DIR_LENGTH_CHECK =ON
11
+ USE_AVX2 =ON
You can’t perform that action at this time.
0 commit comments