Developer Reference for Intel® oneAPI Math Kernel Library for C

ID 766684
Date 6/24/2024
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_output_file

Write output in Intel® oneAPI Math Kernel Library (oneMKL) Verbose mode to a file.

Syntax

int mkl_verbose_output_file (const char*filename);

Include Files

  • mkl.h

Input Parameters

Name

Type

Description

filename

char

Name of file. Specify the complete path of the output file.

Description

This function writes the output in Verbose mode to the file specified in the path.

If the write operation is successful, the function returns 0.

If the file does not exist or cannot be opened, the write operation is unsuccessful. The function returns 1 and defaults to mkl_verbose behavior by printing to stdout.

NOTE:

You can alternatively use MKL_VERBOSE_OUTPUT_FILE environment variable instead of calling the mkl_verbose_output_file function. If you want to use the environment variable option, you must set it to the complete path of the output file.

IMPORTANT:
The setting for the verbose output file specified by the mkl_verbose_output_file function takes precedence over the setting specified by the MKL_VERBOSE_OUTPUT_FILE environment variable.

For more information on the Verbose mode, see the Intel® oneAPI Math Kernel Library (oneMKL) Developer Guide, available in the Intel® Software Documentation Library.

Return Values

Name

Type

Description

status

int

  • 0 indicates that the write operation was successful.

  • 1 indicates that the write operation was unsuccessful.