-
Mathieu Faverge authoredMathieu Faverge authored
codelet_zherk.c 2.79 KiB
/**
*
* @copyright (c) 2009-2015 The University of Tennessee and The University
* of Tennessee Research Foundation.
* All rights reserved.
* @copyright (c) 2012-2015 Inria. All rights reserved.
* @copyright (c) 2012-2016 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
*
**/
/**
* @file codelet_zherk.c
*
* MORSE codelets kernel
* MORSE is a software package provided by Univ. of Tennessee,
* Univ. of California Berkeley and Univ. of Colorado Denver
*
* @version 2.5.0
* @author Reazul Hoque
* @precisions normal z -> c
*
**/
#include "chameleon_parsec.h"
#include "chameleon/morse_tasks_z.h"
#include "coreblas/coreblas_z.h"
/***************************************************************************//**
*
* @ingroup CORE_MORSE_Complex64_t
*
**/
static inline int
CORE_zherk_parsec( parsec_execution_stream_t *context,
parsec_task_t *this_task )
{
MORSE_enum uplo;
MORSE_enum trans;
int n;
int k;
double alpha;
MORSE_Complex64_t *A;
int lda;
double beta;
MORSE_Complex64_t *C;
int ldc;
parsec_dtd_unpack_args(
this_task, &uplo, &trans, &n, &k, &alpha, &A, &lda, &beta, &C, &ldc );
CORE_zherk( uplo, trans, n, k,
alpha, A, lda,
beta, C, ldc);
(void)context;
return PARSEC_HOOK_RETURN_DONE;
}
void MORSE_TASK_zherk(const MORSE_option_t *options,
MORSE_enum uplo, MORSE_enum trans,
int n, int k, int nb,
double alpha, const MORSE_desc_t *A, int Am, int An, int lda,
double beta, const MORSE_desc_t *C, int Cm, int Cn, int ldc)
{
parsec_taskpool_t* PARSEC_dtd_taskpool = (parsec_taskpool_t *)(options->sequence->schedopt);
parsec_dtd_taskpool_insert_task(
PARSEC_dtd_taskpool, CORE_zherk_parsec, options->priority, "herk",
sizeof(MORSE_enum), &uplo, VALUE,
sizeof(MORSE_enum), &trans, VALUE,
sizeof(int), &n, VALUE,
sizeof(int), &k, VALUE,
sizeof(double), &alpha, VALUE,
PASSED_BY_REF, RTBLKADDR( A, MORSE_Complex64_t, Am, An ), INPUT | morse_parsec_get_arena_index(A),
sizeof(int), &lda, VALUE,
sizeof(double), &beta, VALUE,
PASSED_BY_REF, RTBLKADDR( C, MORSE_Complex64_t, Cm, Cn ), INOUT | morse_parsec_get_arena_index(C) | AFFINITY,
sizeof(int), &ldc, VALUE,
PARSEC_DTD_ARG_END );
(void)nb;
}