Skip to contents

Returns omp_get_max_threads(): the maximum number of threads OpenFHE will use for a parallel region under the current settings (see set_num_threads()). Returns 1 when the package was built without OpenMP.

Usage

get_num_threads()

Value

integer; the OpenMP thread limit.

Examples

get_num_threads()
#> [1] 4