MAGMA  1.2.0
MatrixAlgebraonGPUandMulticoreArchitectures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
codelet_zlacpy.c File Reference
#include "morse_starpu.h"
Include dependency graph for codelet_zlacpy.c:

Go to the source code of this file.

Functions

static void cl_zlacpy_cpu_func (void *descr[], void *cl_arg)
void MORSE_zlacpy (MorseOption_t *options, PLASMA_enum uplo, int m, int n, magma_desc_t *A, int Am, int An, magma_desc_t *B, int Bm, int Bn)

Function Documentation

static void cl_zlacpy_cpu_func ( void *  descr[],
void *  cl_arg 
)
static

Definition at line 22 of file codelet_zlacpy.c.

References A, B, starpu_unpack_cl_args(), and uplo.

{
PLASMA_enum uplo;
int M;
int N;
PLASMA_Complex64_t *A;
int LDA;
PLASMA_Complex64_t *B;
int LDB;
starpu_unpack_cl_args(cl_arg, &uplo, &M, &N, &LDA, &LDB);
A = (PLASMA_Complex64_t *)STARPU_MATRIX_GET_PTR(descr[0]);
B = (PLASMA_Complex64_t *)STARPU_MATRIX_GET_PTR(descr[1]);
LAPACKE_zlacpy_work(
LAPACK_COL_MAJOR,
lapack_const(uplo),
M, N, A, LDA, B, LDB);
}

Here is the call graph for this function:

void MORSE_zlacpy ( MorseOption_t options,
PLASMA_enum  uplo,
int  m,
int  n,
magma_desc_t A,
int  Am,
int  An,
magma_desc_t B,
int  Bm,
int  Bn 
)

Definition at line 93 of file codelet_zlacpy.c.

References BLKADDR, BLKLDD, CALLBACK, INPUT, OUTPUT, PRIORITY, starpu_Insert_Task(), and VALUE.

{
starpu_codelet *zlacpy_codelet;
void (*callback)(void*) = options->profiling ? cl_zlacpy_callback : NULL;
int lda = BLKLDD( A, Am );
int ldb = BLKLDD( B, Bm );
#ifdef MORSE_USE_MULTICORE
zlacpy_codelet = options->parallel ? &cl_zlacpy_mc : &cl_zlacpy;
#else
zlacpy_codelet = &cl_zlacpy;
#endif
&cl_zlacpy,
VALUE, &uplo, sizeof(PLASMA_enum),
VALUE, &m, sizeof(int),
VALUE, &n, sizeof(int),
INPUT, BLKADDR( A, PLASMA_Complex64_t, Am, An ),
VALUE, &lda, sizeof(int),
OUTPUT, BLKADDR( B, PLASMA_Complex64_t, Bm, Bn ),
VALUE, &ldb, sizeof(int),
PRIORITY, options->priority,
CALLBACK, callback, NULL,
0);
}

Here is the call graph for this function:

Here is the caller graph for this function: