Developer Reference for Intel® oneAPI Math Kernel Library for C
mkl_cbwr_set
Configures the CNR mode of Intel® oneAPI Math Kernel Library (oneMKL) . The mkl_cbwr_set function must be called only once, before any other Intel® oneAPI Math Kernel Library (oneMKL) functions.
Syntax
intmkl_cbwr_set ( intsetting );
Include Files
mkl.h
Input Parameters
Name |
Type |
Description |
|---|---|---|
setting |
int |
CNR branch to set. See Named Constants for CNR Control for a list of named constants that specify the settings. |
Description
The mkl_cbwr_set function configures the CNR mode. (Specifically, it sets the CNR branch and then turns on the CNR mode.)
The mkl_cbwr_set function must be called only once, before any other Intel® oneMKL functions.
Return Values
Name |
Type |
Description |
|---|---|---|
status |
int |
The status of the function completion:
|
Setting the MKL_CBWR environment variable is equivalent to calling the mkl_cbwr_set function, which fixes the code branch and sets the reproducibility mode.
MKL_CBWR="<branch>[,STRICT]" or
MKL_CBWR="BRANCH=<branch>[,STRICT]"
For more details, refer to Setting the Environment Variable for Conditional Numerical Reproducibility and Named Constants for CNR Control .