MAGMA  magma-1.4.0
Matrix Algebra on GPU and Multicore Architectures
 All Data Structures 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.

9 {
10 /* -- MAGMA (version 1.4.0) --
11  Univ. of Tennessee, Knoxville
12  Univ. of California, Berkeley
13  Univ. of Colorado, Denver
14  August 2013
15 
16  Purpose
17  =======
18 
19  magma_xerbla is an error handler for the MAGMA routines.
20  It is called by a MAGMA routine if an input parameter has an
21  invalid value. It calls the LAPACK XERBLA routine, which by default
22  prints an error message and stops execution.
23 
24  Installers may consider modifying the STOP statement in order to
25  call system-specific exception-handling facilities.
26 
27  Arguments
28  =========
29 
30  SRNAME (input) CHARACTER*(*)
31  The name of the routine which called XERBLA.
32  In C it is convenient to use __func__.
33 
34  INFO (input) INTEGER
35  The position of the invalid parameter in the parameter list
36  of the calling routine.
37 
38  ===================================================================== */
39 
40  int len = strlen( srname );
41  lapackf77_xerbla( srname, &info, len );
42 }
#define lapackf77_xerbla
Definition: magma_lapack.h:24