Developer Guide

Contents

Managing Invalid Input Checking in LAPACKE Functions

The high-level interface includes an optional, on by default, NaN check on all matrix inputs before calling any LAPACK routine. This option affects all routines. If an input matrix contains any NaNs, the input parameter corresponding to this matrix is flagged with a return value error. For example, if the fifth parameter is found to contain a NaN, the routine returns the value,
-5
. The middle-level interface does not contain the NaN check.
NaN checking on matrix input can be expensive. By default, NaN checking is turned
on
. LAPACKE provides a way to set it through the environment variable:
  • Setting environment variable
    LAPACKE_NANCHECK
    to
    0
    turns OFF NaN-checking
  • Setting environment variable
    LAPACKE_NANCHECK
    to
    1
    turns ON NaN-checking
The other way is the call the
LAPACKE_set_nancheck
function; see the Developer Reference for C's section for more information.
Note that the NaN-checking flag value set by the call to
LAPACKE_set_nancheck
always has higher priority than the environment variable,
LAPACKE_NANCHECK
.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804