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’ amongst the shared libraries (e.g. 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 the system environment variable OMP_NUM_THREADS.

Value

A list with 2 elements

vendor

name of BLAS/LAPACK library in use

nthreads

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

Author(s)

Oracle Corporation

Examples

Sys.BlasLapack()

[Package base version 3.0.1 Index]