Newer
Older
*
* @file codelet_zherfb.c
* @copyright 2009-2014 The University of Tennessee and The University of
* Tennessee Research Foundation. All rights reserved.
* @copyright 2012-2014 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
* Univ. Bordeaux. All rights reserved.
* @brief Chameleon core_blas PaRSEC wrapper
* @author Hatem Ltaief
* @date 2010-11-15
* @precisions normal z -> c d s
*

Mathieu Faverge
committed
*/
#include "chameleon_parsec.h"
#include "chameleon/morse_tasks_z.h"
#include "coreblas/coreblas_z.h"
static inline int
CORE_zherfb_parsec( parsec_execution_stream_t *context,
parsec_task_t *this_task )
MORSE_enum uplo;
int n;
int k;
int ib;
int nb;
this_task, &uplo, &n, &k, &ib, &nb, &A, &lda, &T, &ldt, &C, &ldc, &WORK, &ldwork);
CORE_zherfb( uplo, n, k, ib, nb,
A, lda, T, ldt,
C, ldc, WORK, ldwork);
return PARSEC_HOOK_RETURN_DONE;
}
void MORSE_TASK_zherfb(const MORSE_option_t *options,
MORSE_enum uplo,
int n, int k, int ib, int nb,
const MORSE_desc_t *A, int Am, int An, int lda,
const MORSE_desc_t *T, int Tm, int Tn, int ldt,
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_zherfb_parsec, options->priority, "herfb",
sizeof(MORSE_enum), &uplo, VALUE,
sizeof(int), &n, VALUE,
sizeof(int), &k, VALUE,
sizeof(int), &ib, VALUE,
sizeof(int), &nb, VALUE,
PASSED_BY_REF, RTBLKADDR(A, MORSE_Complex64_t, Am, An), INOUT,
PASSED_BY_REF, RTBLKADDR(T, MORSE_Complex64_t, Tm, Tn), INPUT,
PASSED_BY_REF, RTBLKADDR(C, MORSE_Complex64_t, Cm, Cn), INOUT | AFFINITY,
sizeof(MORSE_Complex64_t)*2*nb*nb, NULL, SCRATCH,