-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathrt_env.h
More file actions
47 lines (37 loc) · 1.88 KB
/
Copy pathrt_env.h
File metadata and controls
47 lines (37 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//-*-c-*-
//=============================================================================
//
// Copyright (c) Ant Group Co., Ltd
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//=============================================================================
#ifndef RTLIB_COMMON_RT_ENV_H
#define RTLIB_COMMON_RT_ENV_H
//! @brief rt_env.h
//! Define environment variables used by rtlib
//! environment variable to control rtlib timing output
//! RTLIB_TIMING_OUTPUT=string: stdout, stderr or file name. default: NULL
#define ENV_RTLIB_TIMING_OUTPUT "RTLIB_TIMING_OUTPUT"
//! environment variable to control trace file name
//! RTLIB_TRACE_FILE=string: stdout, stderr or file name. default: fhe_trace.t
#define ENV_RTLIB_TRACE_FILE "RTLIB_TRACE_FILE"
//! environment variable to control plaintext manager (PT_MGR)
//! PT_ENTRY_COUNT=int: number of pt kept in memory. default: 8
#define ENV_PT_ENTRY_COUNT "PT_ENTRY_COUNT"
//! PT_PREFETCH_COUNT: number of pt for prefetching. default: 2
#define ENV_PT_PREFETCH_COUNT "PT_PREFETCH_COUNT"
//! PT_MSG_DUMP_COUNT=int: number of message values to dump. default: 0
#define ENV_PT_MSG_DUMP_COUNT "PT_MSG_DUMP_COUNT"
//! environment variable to control rt data file reader (RT_DATA_FILE)
//! RT_DATA_ASYNC_READ=0|1: use asynchronous read. default: 0
#define ENV_RT_DATA_ASYNC_READ "RT_DATA_ASYNC_READ"
//! environment variable to control using even polynomial
//! in mod_reduce of bootstrapping
#define ENV_BOOTSTRAP_EVEN_POLY "RTLIB_BTS_EVEN_POLY"
//! environment variable to control fusion for decompose and modup op
#define ENV_OP_FUSION_DECOMP_MODUP "OP_FUSION_DECOMP_MODUP"
//! environment variable to control clear imaginary part at the end of bootstrap
#define ENV_BOOTSTRAP_CLEAR_IMAG "RT_BTS_CLEAR_IMAG"
//! environment variable to control keyswitch dot product optimization
#define ENV_FAST_DOT_PROD "FAST_DOT_PROD"
#endif // RTLIB_COMMON_RT_ENV_H