Sys.BlasLapack {base}R Documentation

Get BLAS & LAPACK Library Information

Description

Reports information on the BLAS and LAPACK libraries in use.

Usage

Sys.BlasLapack()

Details

Oracle's distribution of R can be compiled to load Intel Math Kernel Library (MKL) or AMD Core Math Library (ACML) dynamically at run time. (See ‘INSTALL’ file for more information.)

If dynamic loading of external BLAS and LAPACK is enabled, R will first look for ‘libmkl_rt.so’ among the shared libraries (for example, in the paths specified in the LD_LIBRARY_PATH system environment variable) to load MKL dynamically. If MKL is not found, then R will look for ‘libacml.so’ to load ACML dynamically. If neither library is found, then R will use its internal BLAS and LAPACK.

When MKL is dynamically loaded, the number of threads it uses can be changed by either the system environment variable MKL_NUM_THREADS or OMP_NUM_THREADS. The former, if defined, takes precedence.

Value

A list with 2 elements

vendor

The name of the BLAS and LAPACK

nthreads

The number of threads used by the BLAS and LAPACK (relevant only for MKL, where -1 represents the default)

Author(s)

Oracle Corporation

Examples

Sys.BlasLapack()

[Package base version 3.1.1 Index]