MAGMA
1.2.0
MatrixAlgebraonGPUandMulticoreArchitectures
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
xerbla.cpp
Go to the documentation of this file.
1
#include <stdlib.h>
2
#include <stdio.h>
3
#include <string.h>
4
5
#include "
common_magma.h
"
6
7
extern
"C"
8
void
magma_xerbla
(
const
char
*srname ,
magma_int_t
info)
9
{
10
/* -- MAGMA (version 1.2.0) --
11
Univ. of Tennessee, Knoxville
12
Univ. of California, Berkeley
13
Univ. of Colorado, Denver
14
May 2012
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
}
magma-1.2.0
control
xerbla.cpp
Generated on Mon May 21 2012 16:42:19 for MAGMA by
1.8.1