Developer Reference for Intel® oneAPI Math Kernel Library for C

ID 766684
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

mkl_verbose

Enables or disables Intel® oneAPI Math Kernel Library (oneMKL) Verbose mode.

Syntax

int mkl_verbose (int enable);

Include Files

  • mkl.h

Input Parameters

Name

Type

Description

enable

int

Desired state of the Intel® oneAPI Math Kernel Library (oneMKL) Verbose mode. Indicates whether printing Intel® oneAPI Math Kernel Library (oneMKL) function call information should be turned on or off. Possible values:

  • 0 – disable the Verbose mode

  • 1 – enable the Verbose mode (GPU application: enable the Verbose mode without timing)

  • 2 – enable the Verbose mode (GPU application: enable the Verbose mode with synchronous timing)

Description

This function enables or disables the Intel® oneAPI Math Kernel Library (oneMKL) Verbose mode, in which computational functions print call description information. For details of the Verbose mode, see theIntel® oneAPI Math Kernel Library (oneMKL) Developer Guide, available in the Intel® Software Documentation Library.

NOTE:

The setting for the Verbose mode specified by the mkl_verbose function takes precedence over the setting specified by the MKL_VERBOSE environment variable.

Return Values

Name

Type

Description

status

int

  • If the requested operation completed successfully, contains previous state of the verbose mode:

    • 0 – Verbose mode was disabled

    • 1 – Verbose mode was enabled (GPU application: Verbose mode was enabled without timing)

    • 2 – Verbose mode was enabled (GPU application: Verbose mode was enabled with synchronous timing)

  • If the function failed to complete the operation because of an incorrect input parameter, equals –1.