PLASMA
2.4.5
PLASMA - Parallel Linear Algebra for Scalable Multi-core Architectures
Main Page
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
time_dsposv.c
Go to the documentation of this file.
1
6
#define _TYPE double
7
#define _PREC double
8
#define _LAMCH LAPACKE_dlamch_work
9
10
#define _NAME "PLASMA_dposv"
11
/* See Lawn 41 page 120 */
12
#define _FMULS (FMULS_POTRF( N ) + FMULS_POTRS( N, NRHS ))
13
#define _FADDS (FADDS_POTRF( N ) + FADDS_POTRS( N, NRHS ))
14
15
#include "
./timing.c
"
16
17
static
int
18
RunTest(
int
*iparam,
double
*dparam,
real_Double_t
*t_)
19
{
20
PASTE_CODE_IPARAM_LOCALS
( iparam );
21
int
iter;
22
23
LDA =
max
(LDA, N);
24
25
/* Allocate Data */
26
PASTE_CODE_ALLOCATE_MATRIX
(
A
, 1,
double
, LDA, N );
27
PASTE_CODE_ALLOCATE_MATRIX
(
B
, 1,
double
, LDB, NRHS );
28
29
/* Initialiaze Data */
30
PLASMA_dplgsy
((
double
)N, N,
A
, LDA, 51 );
31
PLASMA_dplrnt
( N, NRHS,
B
, LDB, 5673 );
32
33
PASTE_CODE_ALLOCATE_COPY
( X, 1,
double
,
B
, LDB, NRHS );
34
35
/* PLASMA DSPOSV */
36
START_TIMING
();
37
PLASMA_dsposv
(
PlasmaUpper
, N, NRHS,
A
, LDA,
B
, LDB, X, LDB, &iter);
38
STOP_TIMING
();
39
40
/* Check the solution */
41
if
(check)
42
{
43
dparam[
IPARAM_RES
] =
d_check_solution
(N, N, NRHS,
A
, LDA,
B
, X, LDB,
44
&(dparam[
IPARAM_ANORM
]),
45
&(dparam[
IPARAM_BNORM
]),
46
&(dparam[
IPARAM_XNORM
]));
47
}
48
49
free(
A
); free(
B
); free(X);
50
return
0;
51
}
plasma_2.4.5
timing
time_dsposv.c
Generated on Mon Jul 9 2012 12:45:07 for PLASMA by
1.8.1