Skip to content

Commit

Permalink
use alp repo
Browse files Browse the repository at this point in the history
  • Loading branch information
azimafroozeh committed Sep 16, 2024
1 parent 72899f8 commit 2d213f2
Show file tree
Hide file tree
Showing 19 changed files with 35 additions and 1,493 deletions.
27 changes: 19 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ include(CTest)

# Options : ------------------------------------------------------------------------------------------------------------
option(FLS_BUILD_FLS "Build FLS" ON)
option(FLS_BUILD_ALP "Build ALP" OFF)
option(FLS_BUILD_ALP "Build ALP" ON)
option(FLS_BUILD_TESTING "Build Test" OFF)
option(FLS_BUILD_BENCHMARKING "Enable Benchmark Build" OFF)
option(FLS_BUILD_EXAMPLE "Build Example" OFF)
Expand All @@ -39,6 +39,24 @@ option(FLS_ENABLE_IWYU "Enable include-what-you-use tool" OFF)
option(FLS_ENABLE_DOC "Enable Doc build" OFF)
option(FLS_ENABLE_TABLE_LOG "Enable Table Log" OFF)


# ALP: ---------------------------------------------------------------------------------------------------------------
if (FLS_BUILD_ALP)
message("---------------------------------------------------------------------------------------------------------")
message("-- FLS: Build ALP.")

FetchContent_Declare(
alp_repo
GIT_REPOSITORY https://github.com/cwida/ALP.git
GIT_TAG main #
)

FetchContent_MakeAvailable(alp_repo)
include_directories(${alp_repo_SOURCE_DIR}/include)

endif ()


# GTEST : ------------------------------------------------------------------------------------------------------------
if (FLS_BUILD_TESTING OR FLS_BUILD_GPU)
message("---------------------------------------------------------------------------------------------------------")
Expand All @@ -62,13 +80,6 @@ if (FLS_BUILD_TESTING OR FLS_BUILD_GPU)
set_target_properties(gmock_main PROPERTIES CXX_CLANG_TIDY "")
endif ()


# ALP: ---------------------------------------------------------------------------------------------------------------
if (FLS_BUILD_ALP)
message("---------------------------------------------------------------------------------------------------------")
message("-- FLS: Build ALP.")
endif ()

# DATA : ---------------------------------------------------------------------------------------------------------------
if (FLS_BUILD_TESTING OR FLS_BUILD_BENCHMARKING OR FLS_BUILD_EXAMPLE)
message("---------------------------------------------------------------------------------------------------------")
Expand Down
3 changes: 2 additions & 1 deletion include/fls/cor/eng/analyzer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "fls/cor/lyt/buf.hpp"

namespace alp {
template <typename PT>
struct state;
}

Expand Down Expand Up @@ -38,7 +39,7 @@ class AnalyzeState {
Buf compressed_data_buf; //
Buf compressed_offs_buf; //
/* ALP */
up<alp::state> alp_state_up; //
up<alp::state<double>> alp_dbl_state_up; //
/* FSST */
void* fsst_encoder; //
/* FSST12 */
Expand Down
9 changes: 0 additions & 9 deletions include/fls/primitive/alp/alp.hpp

This file was deleted.

50 changes: 0 additions & 50 deletions include/fls/primitive/alp/config.hpp

This file was deleted.

225 changes: 0 additions & 225 deletions include/fls/primitive/alp/cutter.hpp

This file was deleted.

Loading

0 comments on commit 2d213f2

Please sign in to comment.