get_num_threads: Report the number of OpenMP threads available to OpenFHE

View source: R/utils.R

get_num_threadsR Documentation

Report the number of OpenMP threads available to OpenFHE

Description

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.

See Also

set_num_threads()

Examples

get_num_threads()

openfhe.R documentation built on Nov. 13, 2026, 5:07 p.m.