Statistiques
| Révision :

root / include / hpl_auxil.h

Historique | Voir | Annoter | Télécharger (5,5 ko)

1
/* 
2
 * -- High Performance Computing Linpack Benchmark (HPL)                
3
 *    HPL - 2.0 - September 10, 2008                          
4
 *    Antoine P. Petitet                                                
5
 *    University of Tennessee, Knoxville                                
6
 *    Innovative Computing Laboratory                                 
7
 *    (C) Copyright 2000-2008 All Rights Reserved                       
8
 *                                                                      
9
 * -- Copyright notice and Licensing terms:                             
10
 *                                                                      
11
 * Redistribution  and  use in  source and binary forms, with or without
12
 * modification, are  permitted provided  that the following  conditions
13
 * are met:                                                             
14
 *                                                                      
15
 * 1. Redistributions  of  source  code  must retain the above copyright
16
 * notice, this list of conditions and the following disclaimer.        
17
 *                                                                      
18
 * 2. Redistributions in binary form must reproduce  the above copyright
19
 * notice, this list of conditions,  and the following disclaimer in the
20
 * documentation and/or other materials provided with the distribution. 
21
 *                                                                      
22
 * 3. All  advertising  materials  mentioning  features  or  use of this
23
 * software must display the following acknowledgement:                 
24
 * This  product  includes  software  developed  at  the  University  of
25
 * Tennessee, Knoxville, Innovative Computing Laboratory.             
26
 *                                                                      
27
 * 4. The name of the  University,  the name of the  Laboratory,  or the
28
 * names  of  its  contributors  may  not  be used to endorse or promote
29
 * products  derived   from   this  software  without  specific  written
30
 * permission.                                                          
31
 *                                                                      
32
 * -- Disclaimer:                                                       
33
 *                                                                      
34
 * THIS  SOFTWARE  IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35
 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,  INCLUDING,  BUT NOT
36
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY
38
 * OR  CONTRIBUTORS  BE  LIABLE FOR ANY  DIRECT,  INDIRECT,  INCIDENTAL,
39
 * SPECIAL,  EXEMPLARY,  OR  CONSEQUENTIAL DAMAGES  (INCLUDING,  BUT NOT
40
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
41
 * DATA OR PROFITS; OR BUSINESS INTERRUPTION)  HOWEVER CAUSED AND ON ANY
42
 * THEORY OF LIABILITY, WHETHER IN CONTRACT,  STRICT LIABILITY,  OR TORT
43
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
44
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
45
 */ 
46
#ifndef HPL_AUXIL_H
47
#define HPL_AUXIL_H
48
/*
49
 * ---------------------------------------------------------------------
50
 * Include files
51
 * ---------------------------------------------------------------------
52
 */
53
#include "hpl_misc.h"
54
#include "hpl_blas.h"
55
/*
56
 * ---------------------------------------------------------------------
57
 * typedef definitions
58
 * ---------------------------------------------------------------------
59
 */
60
typedef enum
61
{ HPL_NORM_A = 800, HPL_NORM_1 = 801, HPL_NORM_I = 802 } HPL_T_NORM;
62

    
63
typedef enum
64
{
65
   HPL_MACH_EPS   = 900,                /* relative machine precision */
66
   HPL_MACH_SFMIN = 901, /* safe minimum st 1/sfmin does not overflow */
67
   HPL_MACH_BASE  = 902,                /* base = base of the machine */
68
   HPL_MACH_PREC  = 903,                          /* prec  = eps*base */
69
   HPL_MACH_MLEN  = 904,   /* number of (base) digits in the mantissa */
70
   HPL_MACH_RND   = 905,        /* 1.0 if rounding occurs in addition */
71
   HPL_MACH_EMIN  = 906,   /* min exponent before (gradual) underflow */
72
   HPL_MACH_RMIN  = 907,        /* underflow threshold base**(emin-1) */
73
   HPL_MACH_EMAX  = 908,          /* largest exponent before overflow */
74
   HPL_MACH_RMAX  = 909  /* overflow threshold - (base**emax)*(1-eps) */
75
 
76
} HPL_T_MACH;
77
/*
78
 * ---------------------------------------------------------------------
79
 * Function prototypes
80
 * ---------------------------------------------------------------------
81
 */
82
void                             HPL_fprintf
83
STDC_ARGS( (
84
   FILE *,
85
   const char *,
86
   ...
87
) );
88
void                             HPL_warn
89
STDC_ARGS( (
90
   FILE *,
91
   int,
92
   const char *,
93
   const char *,
94
   ...
95
) );
96
void                             HPL_abort
97
STDC_ARGS( (
98
   int,
99
   const char *,
100
   const char *,
101
   ...
102
) );
103
void                             HPL_dlacpy
104
STDC_ARGS( (
105
   const int,
106
   const int,
107
   const double *,
108
   const int,
109
   double *,
110
   const int
111
) );
112
void                             HPL_dlatcpy
113
STDC_ARGS( (
114
   const int,
115
   const int,
116
   const double *,
117
   const int,
118
   double *,
119
   const int
120
) );
121
void                             HPL_dlaprnt
122
STDC_ARGS( (
123
   const int,
124
   const int,
125
   double *,
126
   const int,
127
   const int,
128
   const int,
129
   const char *
130
) );
131
double                           HPL_dlange
132
STDC_ARGS( (
133
   const HPL_T_NORM,
134
   const int,
135
   const int,
136
   const double *,
137
   const int
138
) );
139
double                           HPL_dlamch
140
STDC_ARGS( (
141
   const HPL_T_MACH
142
) );
143

    
144
#endif
145
/*
146
 * End of hpl_auxil.h
147
 */