Learn R Programming

openfhe.R (version 1.6.1)

get_num_threads: 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()

Arguments

Value

integer; the current thread cap.

See Also

set_num_threads()

Examples

Run this code
get_num_threads()

Run the code above in your browser using DataLab