Mentions légales du service

Skip to content
Snippets Groups Projects
codelet_zplgsy.c 2.58 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_zplgsy.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 d s
 *
 **/
#include "chameleon_parsec.h"
#include "chameleon/morse_tasks_z.h"
#include "coreblas/coreblas_z.h"

static inline int
CORE_zplgsy_parsec( parsec_execution_stream_t *context,
                    parsec_task_t             *this_task )
{
    MORSE_Complex64_t *bump;
    int *m;
    int *n;
    MORSE_Complex64_t *A;
    int *lda;
    int *bigM;
    int *m0;
    int *n0;
    unsigned long long int *seed;

    parsec_dtd_unpack_args(
        this_task,
        UNPACK_VALUE, &bump,
        UNPACK_VALUE, &m,
        UNPACK_VALUE, &n,
        UNPACK_DATA,  &A,
        UNPACK_VALUE, &lda,
        UNPACK_VALUE, &bigM,
        UNPACK_VALUE, &m0,
        UNPACK_VALUE, &n0,
        UNPACK_VALUE, &seed );

    CORE_zplgsy( *bump, *m, *n, A, *lda, *bigM, *m0, *n0, *seed );

    (void)context;
    return 0;
}

void MORSE_TASK_zplgsy( const MORSE_option_t *options,
                        MORSE_Complex64_t bump, int m, int n, const MORSE_desc_t *A, int Am, int An, int lda,
                        int bigM, int m0, int n0, unsigned long long int seed )
{
    parsec_taskpool_t* PARSEC_dtd_taskpool = (parsec_taskpool_t *)(options->sequence->schedopt);

    parsec_dtd_taskpool_insert_task(
        PARSEC_dtd_taskpool, CORE_zplgsy_parsec, options->priority, "zplgsy",
        sizeof(MORSE_Complex64_t), &bump,                          VALUE,
        sizeof(int),               &m,                             VALUE,
        sizeof(int),               &n,                             VALUE,
        PASSED_BY_REF,             RTBLKADDR( A, MORSE_Complex64_t, Am, An ),     OUTPUT | morse_parsec_get_arena_index(A) | AFFINITY,
        sizeof(int),               &lda,                           VALUE,
        sizeof(int),               &bigM,                          VALUE,
        sizeof(int),               &m0,                            VALUE,
        sizeof(int),               &n0,                            VALUE,
        sizeof(unsigned long long int),               &seed,       VALUE,
        0);
}