Newer
Older
* @copyright 2009-2014 The University of Tennessee and The University of
* Tennessee Research Foundation. All rights reserved.
* Univ. Bordeaux. All rights reserved.
* @comment This file has been automatically generated
* @precisions normal z -> c d s
*

Mathieu Faverge
committed
*/
#include "chameleon_starpu.h"
#include "runtime_codelet_z.h"
#if !defined(CHAMELEON_SIMULATION)
static void cl_zlascal_cpu_func(void *descr[], void *cl_arg)
{
cham_uplo_t uplo;
int M;
int N;
CHAMELEON_Complex64_t alpha;

Mathieu Faverge
committed
CHAM_tile_t *tileA;

Mathieu Faverge
committed
tileA = cti_interface_get(descr[0]);
starpu_codelet_unpack_args(cl_arg, &uplo, &M, &N, &alpha);

Mathieu Faverge
committed
TCORE_zlascal(uplo, M, N, alpha, tileA);
return;
}
#endif /* !defined(CHAMELEON_SIMULATION) */
/*
* Codelet definition
*/
CODELETS_CPU(zlascal, 1, cl_zlascal_cpu_func)
void INSERT_TASK_zlascal(const RUNTIME_option_t *options,
cham_uplo_t uplo,

Mathieu Faverge
committed
const CHAM_desc_t *A, int Am, int An)
{
(void)nb;
struct starpu_codelet *codelet = &cl_zlascal;
void (*callback)(void*) = options->profiling ? cl_zlascal_callback : NULL;
CHAMELEON_BEGIN_ACCESS_DECLARATION;
CHAMELEON_ACCESS_RW(A, Am, An);
CHAMELEON_END_ACCESS_DECLARATION;
starpu_insert_task(
starpu_mpi_codelet(codelet),
STARPU_VALUE, &m, sizeof(int),
STARPU_VALUE, &n, sizeof(int),
STARPU_VALUE, &alpha, sizeof(CHAMELEON_Complex64_t),
STARPU_RW, RTBLKADDR(A, CHAMELEON_Complex64_t, Am, An),
STARPU_PRIORITY, options->priority,
STARPU_CALLBACK, callback,
#if defined(CHAMELEON_CODELETS_HAVE_NAME)