Statistiques
| Révision :

root / man / man3 / HPL_pdtest.3 @ 1

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

1 1 equemene
.TH HPL_pdtest 3 "September 10, 2008" "HPL 2.0" "HPL Library Functions"
2 1 equemene
.SH NAME
3 1 equemene
HPL_pdtest \- Perform one test.
4 1 equemene
.SH SYNOPSIS
5 1 equemene
\fB\&#include "hpl.h"\fR
6 1 equemene
7 1 equemene
\fB\&void\fR
8 1 equemene
\fB\&HPL_pdtest(\fR
9 1 equemene
\fB\&HPL_T_test *\fR
10 1 equemene
\fI\&TEST\fR,
11 1 equemene
\fB\&HPL_T_grid *\fR
12 1 equemene
\fI\&GRID\fR,
13 1 equemene
\fB\&HPL_T_palg *\fR
14 1 equemene
\fI\&ALGO\fR,
15 1 equemene
\fB\&const int\fR
16 1 equemene
\fI\&N\fR,
17 1 equemene
\fB\&const int\fR
18 1 equemene
\fI\&NB\fR
19 1 equemene
\fB\&);\fR
20 1 equemene
.SH DESCRIPTION
21 1 equemene
\fB\&HPL_pdtest\fR
22 1 equemene
performs  one  test  given a set of parameters such as the
23 1 equemene
process grid, the  problem size, the distribution blocking factor ...
24 1 equemene
This function generates  the data, calls  and times the linear system
25 1 equemene
solver,  checks  the  accuracy  of the  obtained vector solution  and
26 1 equemene
writes this information to the file pointed to by TEST->outfp.
27 1 equemene
.SH ARGUMENTS
28 1 equemene
.TP 8
29 1 equemene
TEST    (global input)          HPL_T_test *
30 1 equemene
On entry,  TEST  points  to a testing data structure:  outfp
31 1 equemene
specifies the output file where the results will be printed.
32 1 equemene
It is only defined and used by the process  0  of the  grid.
33 1 equemene
thrsh  specifies  the  threshhold value  for the test ratio.
34 1 equemene
Concretely, a test is declared "PASSED"  if and only if  the
35 1 equemene
following inequality is satisfied:
36 1 equemene
||Ax-b||_oo / ( epsil *
37 1 equemene
                ( || x ||_oo * || A ||_oo + || b ||_oo ) *
38 1 equemene
                 N )  < thrsh.
39 1 equemene
epsil  is the  relative machine precision of the distributed
40 1 equemene
computer. Finally the test counters, kfail, kpass, kskip and
41 1 equemene
ktest are updated as follows:  if the test passes,  kpass is
42 1 equemene
incremented by one;  if the test fails, kfail is incremented
43 1 equemene
by one; if the test is skipped, kskip is incremented by one.
44 1 equemene
ktest is left unchanged.
45 1 equemene
.TP 8
46 1 equemene
GRID    (local input)           HPL_T_grid *
47 1 equemene
On entry,  GRID  points  to the data structure containing the
48 1 equemene
process grid information.
49 1 equemene
.TP 8
50 1 equemene
ALGO    (global input)          HPL_T_palg *
51 1 equemene
On entry,  ALGO  points to  the data structure containing the
52 1 equemene
algorithmic parameters to be used for this test.
53 1 equemene
.TP 8
54 1 equemene
N       (global input)          const int
55 1 equemene
On entry,  N specifies the order of the coefficient matrix A.
56 1 equemene
N must be at least zero.
57 1 equemene
.TP 8
58 1 equemene
NB      (global input)          const int
59 1 equemene
On entry,  NB specifies the blocking factor used to partition
60 1 equemene
and distribute the matrix A. NB must be larger than one.
61 1 equemene
.SH SEE ALSO
62 1 equemene
.BR HPL_pddriver \ (3),
63 1 equemene
.BR HPL_pdinfo \ (3).