6 #define _TYPE PLASMA_Complex64_t
8 #define _LAMCH LAPACKE_dlamch_work
10 #define _NAME "PLASMA_zposv_Tile"
12 #define _FMULS (n * (1.0 / 6.0 * n + nrhs + 0.5) * n)
13 #define _FADDS (n * (1.0 / 6.0 * n + nrhs ) * n)
20 PLASMA_Complex64_t *
A, *
AT, *b, *bT, *x;
32 nt = n / nb + ((n % nb == 0) ? 0 : 1);
35 AT = (PLASMA_Complex64_t *)malloc(nt*nt*nb2*
sizeof(PLASMA_Complex64_t));
36 bT = (PLASMA_Complex64_t *)malloc(nt*nb2 *
sizeof(PLASMA_Complex64_t));
39 if ( (!AT) || (!bT) ) {
40 printf(
"Out of Memory \n ");
45 MAGMA_Desc_Create(&descA, AT, PlasmaComplexDouble, nb, nb, nb*nb, n, n, 0, 0, n, n);
46 MAGMA_Desc_Create(&descB, bT, PlasmaComplexDouble, nb, nb, nb*nb, n, nrhs, 0, 0, n, nrhs);
48 LAPACKE_zlarnv_work(1,
ISEED, nt*nb2, bT);
52 A = (PLASMA_Complex64_t *)malloc(lda*n *
sizeof(PLASMA_Complex64_t));
53 b = (PLASMA_Complex64_t *)malloc(ldb*nrhs *
sizeof(PLASMA_Complex64_t));
71 x = (PLASMA_Complex64_t *)malloc(ldb*nrhs *
sizeof(PLASMA_Complex64_t));
77 free(A); free(b); free(x);