-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathoptions.hpp.in
22 lines (19 loc) · 1.01 KB
/
options.hpp.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// (c) 2023 Pascal Mehnert
// This code is licensed under BSD 2-Clause License (see LICENSE for details)
#pragma once
#cmakedefine01 CLI_ENABLE_REDISTRIBUTION
#cmakedefine01 CLI_ENABLE_PREFIX_DOUBLING
#cmakedefine01 CLI_ENABLE_ALLTOALL
#cmakedefine01 CLI_ENABLE_RQUICK_V1
#cmakedefine01 CLI_ENABLE_RQUICK_LCP
#cmakedefine01 USE_SHARED_MEMORY_SORT
#cmakedefine01 USE_RQUICK_SORT
struct CliOptions {
static constexpr bool enable_prefix_doubling = static_cast<bool>(CLI_ENABLE_PREFIX_DOUBLING);
static constexpr bool enable_redistribution = static_cast<bool>(CLI_ENABLE_REDISTRIBUTION);
static constexpr bool enable_alltoall = static_cast<bool>(CLI_ENABLE_ALLTOALL);
static constexpr bool enable_rquick_v1 = static_cast<bool>(CLI_ENABLE_RQUICK_V1);
static constexpr bool enable_rquick_lcp = static_cast<bool>(CLI_ENABLE_RQUICK_LCP);
static constexpr bool use_shared_memory_sort = static_cast<bool>(USE_SHARED_MEMORY_SORT);
static constexpr bool use_rquick_sort = static_cast<bool>(USE_RQUICK_SORT);
};