MAGMA  1.2.0
MatrixAlgebraonGPUandMulticoreArchitectures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
xerbla.cpp File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "common_magma.h"
Include dependency graph for xerbla.cpp:

Go to the source code of this file.

Functions

void magma_xerbla (const char *srname, magma_int_t info)

Function Documentation

void magma_xerbla ( const char *  srname,
magma_int_t  info 
)

Definition at line 8 of file xerbla.cpp.

{
/* -- MAGMA (version 1.2.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
May 2012
Purpose
=======
magma_xerbla is an error handler for the MAGMA routines.
It is called by a MAGMA routine if an input parameter has an
invalid value. It calls the LAPACK XERBLA routine, which by default
prints an error message and stops execution.
Installers may consider modifying the STOP statement in order to
call system-specific exception-handling facilities.
Arguments
=========
SRNAME (input) CHARACTER*(*)
The name of the routine which called XERBLA.
In C it is convenient to use __func__.
INFO (input) INTEGER
The position of the invalid parameter in the parameter list
of the calling routine.
===================================================================== */
int len = strlen( srname );
lapackf77_xerbla( srname, &info, len );
}