amgcl_info: Report AMGCL and OpenMP Capabilities

View source: R/amgcl.R

amgcl_infoR Documentation

Report AMGCL and OpenMP Capabilities

Description

Report the bundled AMGCL version and OpenMP capabilities of the installed package. Querying this information does not change OpenMP settings.

Usage

amgcl_info()

Details

Parallelism is opt-in: amgcl_setup() and amgcl_solve() default to one thread even if OpenMP is enabled. Set OMP_THREAD_LIMIT before starting R to impose a process-wide OpenMP thread limit. Runtime resource constraints can result in fewer worker threads than requested.

Value

A list with components:

openmp

Logical; whether this package was compiled with OpenMP.

max_threads

Available thread capacity, capped by processor count and the OpenMP thread limit, and at least one.

thread_limit

OpenMP thread limit, reflecting OMP_THREAD_LIMIT. One for a serial build.

current_threads

Current calling-task OpenMP thread-count setting. One for a serial build.

amgcl_version

Version of the bundled AMGCL library.

See Also

amgcl_setup, amgcl_solve

Examples

amgcl_info()

RcppAMGCL documentation built on Nov. 26, 2026, 5:08 p.m.