root / include / hpl_ptest.h @ 1
Historique | Voir | Annoter | Télécharger (5,82 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_PTEST_H
|
47 |
#define HPL_PTEST_H
|
48 |
/*
|
49 |
* ---------------------------------------------------------------------
|
50 |
* Include files
|
51 |
* ---------------------------------------------------------------------
|
52 |
*/
|
53 |
#include "hpl_misc.h" |
54 |
#include "hpl_blas.h" |
55 |
#include "hpl_auxil.h" |
56 |
#include "hpl_gesv.h" |
57 |
|
58 |
#include "hpl_pmisc.h" |
59 |
#include "hpl_pauxil.h" |
60 |
#include "hpl_panel.h" |
61 |
#include "hpl_pgesv.h" |
62 |
|
63 |
#include "hpl_ptimer.h" |
64 |
#include "hpl_pmatgen.h" |
65 |
/*
|
66 |
* ---------------------------------------------------------------------
|
67 |
* Data Structures
|
68 |
* ---------------------------------------------------------------------
|
69 |
*/
|
70 |
typedef struct HPL_S_test |
71 |
{ |
72 |
double epsil; /* epsilon machine */ |
73 |
double thrsh; /* threshold */ |
74 |
FILE * outfp; /* output stream (only in proc 0) */
|
75 |
int kfail; /* # of tests failed */ |
76 |
int kpass; /* # of tests passed */ |
77 |
int kskip; /* # of tests skipped */ |
78 |
int ktest; /* total number of tests */ |
79 |
} HPL_T_test; |
80 |
|
81 |
/*
|
82 |
* ---------------------------------------------------------------------
|
83 |
* #define macro constants for testing only
|
84 |
* ---------------------------------------------------------------------
|
85 |
*/
|
86 |
#define HPL_LINE_MAX 256 |
87 |
#define HPL_MAX_PARAM 20 |
88 |
#define HPL_ISEED 100 |
89 |
/*
|
90 |
* ---------------------------------------------------------------------
|
91 |
* global timers for timing analysis only
|
92 |
* ---------------------------------------------------------------------
|
93 |
*/
|
94 |
#ifdef HPL_DETAILED_TIMING
|
95 |
#define HPL_TIMING_BEG 11 /* timer 0 reserved, used by main */ |
96 |
#define HPL_TIMING_N 6 /* number of timers defined below */ |
97 |
#define HPL_TIMING_RPFACT 11 /* starting from here, contiguous */ |
98 |
#define HPL_TIMING_PFACT 12 |
99 |
#define HPL_TIMING_MXSWP 13 |
100 |
#define HPL_TIMING_UPDATE 14 |
101 |
#define HPL_TIMING_LASWP 15 |
102 |
#define HPL_TIMING_PTRSV 16 |
103 |
#endif
|
104 |
/*
|
105 |
* ---------------------------------------------------------------------
|
106 |
* Function prototypes
|
107 |
* ---------------------------------------------------------------------
|
108 |
*/
|
109 |
void HPL_pdinfo
|
110 |
STDC_ARGS( ( |
111 |
HPL_T_test *, |
112 |
int *,
|
113 |
int *,
|
114 |
int *,
|
115 |
int *,
|
116 |
HPL_T_ORDER *, |
117 |
int *,
|
118 |
int *,
|
119 |
int *,
|
120 |
int *,
|
121 |
HPL_T_FACT *, |
122 |
int *,
|
123 |
int *,
|
124 |
int *,
|
125 |
int *,
|
126 |
int *,
|
127 |
HPL_T_FACT *, |
128 |
int *,
|
129 |
HPL_T_TOP *, |
130 |
int *,
|
131 |
int *,
|
132 |
HPL_T_SWAP *, |
133 |
int *,
|
134 |
int *,
|
135 |
int *,
|
136 |
int *,
|
137 |
int *
|
138 |
) ); |
139 |
void HPL_pdtest
|
140 |
STDC_ARGS( ( |
141 |
HPL_T_test *, |
142 |
HPL_T_grid *, |
143 |
HPL_T_palg *, |
144 |
const int, |
145 |
const int |
146 |
) ); |
147 |
|
148 |
#endif
|
149 |
/*
|
150 |
* End of hpl_ptest.h
|
151 |
*/
|