Skip to contents

Returns the cap OpenFHE currently applies to its parallel regions: the number of hardware threads at load, or the value most recently passed to set_num_threads(). Returns 1 when the package was built without OpenMP.

Usage

get_num_threads()

Value

integer; the current thread cap.

Examples

get_num_threads()
#> [1] 4