Statistiques
| Révision :

root / www / HPL_pdtest.html

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

1 1 equemene
<HTML>
2 1 equemene
<HEAD>
3 1 equemene
<TITLE>HPL_pdtest HPL 2.0 Library Functions September 10, 2008</TITLE>
4 1 equemene
</HEAD>
5 1 equemene
6 1 equemene
<BODY BGCOLOR="WHITE" TEXT = "#000000" LINK = "#0000ff" VLINK = "#000099"
7 1 equemene
      ALINK = "#ffff00">
8 1 equemene
9 1 equemene
<H1>Name</H1>
10 1 equemene
<B>HPL_pdtest</B> Perform one test.
11 1 equemene
12 1 equemene
<H1>Synopsis</H1>
13 1 equemene
<CODE>#include "hpl.h"</CODE><BR><BR>
14 1 equemene
<CODE>void</CODE>
15 1 equemene
<CODE>HPL_pdtest(</CODE>
16 1 equemene
<CODE>HPL_T_test *</CODE>
17 1 equemene
<CODE>TEST</CODE>,
18 1 equemene
<CODE>HPL_T_grid *</CODE>
19 1 equemene
<CODE>GRID</CODE>,
20 1 equemene
<CODE>HPL_T_palg *</CODE>
21 1 equemene
<CODE>ALGO</CODE>,
22 1 equemene
<CODE>const int</CODE>
23 1 equemene
<CODE>N</CODE>,
24 1 equemene
<CODE>const int</CODE>
25 1 equemene
<CODE>NB</CODE>
26 1 equemene
<CODE>);</CODE>
27 1 equemene
28 1 equemene
<H1>Description</H1>
29 1 equemene
<B>HPL_pdtest</B>
30 1 equemene
performs  one  test  given a set of parameters such as the
31 1 equemene
process grid, the  problem size, the distribution blocking factor ...
32 1 equemene
This function generates  the data, calls  and times the linear system
33 1 equemene
solver,  checks  the  accuracy  of the  obtained vector solution  and
34 1 equemene
writes this information to the file pointed to by TEST->outfp.
35 1 equemene
36 1 equemene
<H1>Arguments</H1>
37 1 equemene
<PRE>
38 1 equemene
TEST    (global input)                HPL_T_test *
39 1 equemene
        On entry,  TEST  points  to a testing data structure:  outfp
40 1 equemene
        specifies the output file where the results will be printed.
41 1 equemene
        It is only defined and used by the process  0  of the  grid.
42 1 equemene
        thrsh  specifies  the  threshhold value  for the test ratio.
43 1 equemene
        Concretely, a test is declared "PASSED"  if and only if  the
44 1 equemene
        following inequality is satisfied:
45 1 equemene
        ||Ax-b||_oo / ( epsil *
46 1 equemene
                        ( || x ||_oo * || A ||_oo + || b ||_oo ) *
47 1 equemene
                         N )  < thrsh.
48 1 equemene
        epsil  is the  relative machine precision of the distributed
49 1 equemene
        computer. Finally the test counters, kfail, kpass, kskip and
50 1 equemene
        ktest are updated as follows:  if the test passes,  kpass is
51 1 equemene
        incremented by one;  if the test fails, kfail is incremented
52 1 equemene
        by one; if the test is skipped, kskip is incremented by one.
53 1 equemene
        ktest is left unchanged.
54 1 equemene
</PRE>
55 1 equemene
<PRE>
56 1 equemene
GRID    (local input)                 HPL_T_grid *
57 1 equemene
        On entry,  GRID  points  to the data structure containing the
58 1 equemene
        process grid information.
59 1 equemene
</PRE>
60 1 equemene
<PRE>
61 1 equemene
ALGO    (global input)                HPL_T_palg *
62 1 equemene
        On entry,  ALGO  points to  the data structure containing the
63 1 equemene
        algorithmic parameters to be used for this test.
64 1 equemene
</PRE>
65 1 equemene
<PRE>
66 1 equemene
N       (global input)                const int
67 1 equemene
        On entry,  N specifies the order of the coefficient matrix A.
68 1 equemene
        N must be at least zero.
69 1 equemene
</PRE>
70 1 equemene
<PRE>
71 1 equemene
NB      (global input)                const int
72 1 equemene
        On entry,  NB specifies the blocking factor used to partition
73 1 equemene
        and distribute the matrix A. NB must be larger than one.
74 1 equemene
</PRE>
75 1 equemene
76 1 equemene
<H1>See Also</H1>
77 1 equemene
<A HREF="HPL_pddriver.html">HPL_pddriver</A>,
78 1 equemene
<A HREF="HPL_pdinfo.html">HPL_pdinfo</A>.
79 1 equemene
80 1 equemene
</BODY>
81 1 equemene
</HTML>