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