Learn R Programming

aws (version 1.8-0)

setCores: Set the number of cores to use for openMP.

Description

The function sets the number of cores used in openMP parallelization in part of the Fortran code.

Usage

setCores(n)

Arguments

n
number of cores to use. If n is missing the actual number of cores in use is reported.

Value

  • The function returns the number of cores in use.

Details

The number of cores is restricted to integers between 1 (default) and the number of available cores. openMP parallelization is currenly used in functions aws, aws.gaussian, aws.irreg and aws.segment. Currenly we observe a significant speedup in aws with up to 6-8 cores but only limited improvements in aws.segment.