Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
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_set_exit_handler

Sets the custom handler of fatal errors.

Syntax

external :: myexit

interface = mkl_set_exit_handler( myexit )

Fortran Include Files/Modules

None.

Input Parameters

Name

Interface

Description

myexit

interface
subroutine myexit(iwhy)
integer,value :: iwhy
end subroutine myexit
end interface

The error handler to set.

Description

This function sets the custom handler of fatal errors.

The following example shows how to use a custom handler of fatal errors in your application:

subroutine myexit(rsn)
integer,value :: rsn
call msgbox("Application is terminating")
end myexit

program app
external :: myexit
call mkl_set_exit_handler(myexit)
!... compute using Intel MKL...