Control CImg's parallelisation

Description

On supported architectures CImg can parallelise many operations using OpenMP. Use this function to turn parallelisation on or off.

Usage

1
cimg.use.openmp(mode = "adaptive")

Arguments

mode

Either "adaptive","always" or "none". The default is adaptive (parallelisation for large images only).

Value

NULL (function is used for side effects)

Author(s)

Simon Barthelme

Examples

1
cimg.use.openmp("never") #turn off parallelisation

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.