Statistiques
| Révision :

root / www / HPL_pdtest.html

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

1
<HTML>
2
<HEAD>
3
<TITLE>HPL_pdtest HPL 2.0 Library Functions September 10, 2008</TITLE> 
4
</HEAD>
5

    
6
<BODY BGCOLOR="WHITE" TEXT = "#000000" LINK = "#0000ff" VLINK = "#000099"
7
      ALINK = "#ffff00">
8

    
9
<H1>Name</H1>
10
<B>HPL_pdtest</B> Perform one test.
11

    
12
<H1>Synopsis</H1>
13
<CODE>#include "hpl.h"</CODE><BR><BR>
14
<CODE>void</CODE>
15
<CODE>HPL_pdtest(</CODE>
16
<CODE>HPL_T_test *</CODE>
17
<CODE>TEST</CODE>,
18
<CODE>HPL_T_grid *</CODE>
19
<CODE>GRID</CODE>,
20
<CODE>HPL_T_palg *</CODE>
21
<CODE>ALGO</CODE>,
22
<CODE>const int</CODE>
23
<CODE>N</CODE>,
24
<CODE>const int</CODE>
25
<CODE>NB</CODE>
26
<CODE>);</CODE>
27

    
28
<H1>Description</H1>
29
<B>HPL_pdtest</B>
30
performs  one  test  given a set of parameters such as the
31
process grid, the  problem size, the distribution blocking factor ...
32
This function generates  the data, calls  and times the linear system
33
solver,  checks  the  accuracy  of the  obtained vector solution  and
34
writes this information to the file pointed to by TEST->outfp.
35

    
36
<H1>Arguments</H1>
37
<PRE>
38
TEST    (global input)                HPL_T_test *
39
        On entry,  TEST  points  to a testing data structure:  outfp
40
        specifies the output file where the results will be printed.
41
        It is only defined and used by the process  0  of the  grid.
42
        thrsh  specifies  the  threshhold value  for the test ratio.
43
        Concretely, a test is declared "PASSED"  if and only if  the
44
        following inequality is satisfied:
45
        ||Ax-b||_oo / ( epsil *
46
                        ( || x ||_oo * || A ||_oo + || b ||_oo ) *
47
                         N )  < thrsh.
48
        epsil  is the  relative machine precision of the distributed
49
        computer. Finally the test counters, kfail, kpass, kskip and
50
        ktest are updated as follows:  if the test passes,  kpass is
51
        incremented by one;  if the test fails, kfail is incremented
52
        by one; if the test is skipped, kskip is incremented by one.
53
        ktest is left unchanged.
54
</PRE>
55
<PRE>
56
GRID    (local input)                 HPL_T_grid *
57
        On entry,  GRID  points  to the data structure containing the
58
        process grid information.
59
</PRE>
60
<PRE>
61
ALGO    (global input)                HPL_T_palg *
62
        On entry,  ALGO  points to  the data structure containing the
63
        algorithmic parameters to be used for this test.
64
</PRE>
65
<PRE>
66
N       (global input)                const int
67
        On entry,  N specifies the order of the coefficient matrix A.
68
        N must be at least zero.
69
</PRE>
70
<PRE>
71
NB      (global input)                const int
72
        On entry,  NB specifies the blocking factor used to partition
73
        and distribute the matrix A. NB must be larger than one.
74
</PRE>
75

    
76
<H1>See Also</H1>
77
<A HREF="HPL_pddriver.html">HPL_pddriver</A>,
78
<A HREF="HPL_pdinfo.html">HPL_pdinfo</A>.
79

    
80
</BODY>
81
</HTML>