6 #define _TYPE PLASMA_Complex64_t
8 #define _LAMCH LAPACKE_dlamch_work
10 #define _NAME "PLASMA_zpotrf"
12 #define _FMULS (n * (1.0 / 6.0 * n + 0.5) * n)
13 #define _FADDS (n * (1.0 / 6.0 * n ) * n)
20 PLASMA_Complex64_t *
A, *Acpy, *b, *x;
27 int uplo = PlasmaLower;
30 A = (PLASMA_Complex64_t *)malloc(lda*n*
sizeof(PLASMA_Complex64_t));
34 printf(
"Out of Memory \n ");
43 Acpy = (PLASMA_Complex64_t *)malloc(lda*n*
sizeof(PLASMA_Complex64_t));
44 LAPACKE_zlacpy_work(LAPACK_COL_MAJOR,
' ', n, n, A, lda, Acpy, lda);
60 b = (PLASMA_Complex64_t *)malloc(ldb*nrhs*
sizeof(PLASMA_Complex64_t));
61 x = (PLASMA_Complex64_t *)malloc(ldb*nrhs*
sizeof(PLASMA_Complex64_t));
62 LAPACKE_zlarnv_work(1,
ISEED, n*nrhs, x);
63 LAPACKE_zlacpy_work(LAPACK_COL_MAJOR,
'A', n, nrhs, x, ldb, b, ldb);
72 free(Acpy); free(b); free(x);