Maj terminée. Pour consulter la release notes associée voici le lien :
https://about.gitlab.com/releases/2021/07/07/critical-security-release-gitlab-14-0-4-released/

Une nouvelle version du portail de gestion des comptes externes sera mise en production lundi 09 août. Elle permettra d'allonger la validité d'un compte externe jusqu'à 3 ans. Pour plus de détails sur cette version consulter : https://doc-si.inria.fr/x/FCeS

pzlaset.c 3.07 KB
Newer Older
1
/**
2 3
 *
 * @file pzlaset.c
4
 *
Mathieu Faverge's avatar
Mathieu Faverge committed
5 6
 * @copyright 2009-2014 The University of Tennessee and The University of
 *                      Tennessee Research Foundation. All rights reserved.
Mathieu Faverge's avatar
Mathieu Faverge committed
7
 * @copyright 2012-2018 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
8
 *                      Univ. Bordeaux. All rights reserved.
9
 *
Mathieu Faverge's avatar
Mathieu Faverge committed
10
 ***
11
 *
Mathieu Faverge's avatar
Mathieu Faverge committed
12
 * @brief Chameleon zlaset parallel algorithm
13
 *
Mathieu Faverge's avatar
Mathieu Faverge committed
14
 * @version 1.0.0
15
 * @comment This file has been automatically generated
Mathieu Faverge's avatar
Mathieu Faverge committed
16
 *          from Plasma 2.5.0 for CHAMELEON 1.0.0
17 18 19 20 21 22 23
 * @author Hatem Ltaief
 * @author Mathieu Faverge
 * @author Emmanuel Agullo
 * @author Cedric Castagnede
 * @date 2010-11-15
 * @precisions normal z -> s d c
 *
24
 */
25
#include "control/common.h"
26 27

#define A(m,n) A,  m,  n
28
/**
29 30
 *  Parallel initialization a 2-D array A to BETA on the diagonal and
 *  ALPHA on the offdiagonals.
31
 */
Mathieu Faverge's avatar
Mathieu Faverge committed
32
void chameleon_pzlaset(cham_uplo_t uplo,
Mathieu Faverge's avatar
Mathieu Faverge committed
33 34 35
                          CHAMELEON_Complex64_t alpha, CHAMELEON_Complex64_t beta,
                          CHAM_desc_t *A,
                          RUNTIME_sequence_t *sequence, RUNTIME_request_t *request)
36
{
Mathieu Faverge's avatar
Mathieu Faverge committed
37
    CHAM_context_t *chamctxt;
Mathieu Faverge's avatar
Mathieu Faverge committed
38
    RUNTIME_option_t options;
39 40 41 42 43

    int i, j;
    int ldai, ldaj;
    int tempim;
    int tempjm, tempjn;
44
    int minmn = chameleon_min(A->mt, A->nt);
45

Mathieu Faverge's avatar
Mathieu Faverge committed
46
    chamctxt = chameleon_context_self();
Mathieu Faverge's avatar
Mathieu Faverge committed
47
    if (sequence->status != CHAMELEON_SUCCESS)
48 49
        return;

Mathieu Faverge's avatar
Mathieu Faverge committed
50
    RUNTIME_options_init(&options, chamctxt, sequence, request);
51

Mathieu Faverge's avatar
Mathieu Faverge committed
52
    if (uplo == ChamLower) {
53 54 55 56
       for (j = 0; j < minmn; j++){
           tempjm = j == A->mt-1 ? A->m-j*A->mb : A->mb;
           tempjn = j == A->nt-1 ? A->n-j*A->nb : A->nb;
           ldaj = BLKLDD(A, j);
Mathieu Faverge's avatar
Mathieu Faverge committed
57
           INSERT_TASK_zlaset(
58
               &options,
Mathieu Faverge's avatar
Mathieu Faverge committed
59
               ChamLower, tempjm, tempjn, alpha, beta,
60 61 62 63 64
               A(j, j), ldaj);

           for (i = j+1; i < A->mt; i++){
               tempim = i == A->mt-1 ? A->m-i*A->mb : A->mb;
               ldai = BLKLDD(A, i);
Mathieu Faverge's avatar
Mathieu Faverge committed
65
               INSERT_TASK_zlaset(
66
                   &options,
Mathieu Faverge's avatar
Mathieu Faverge committed
67
                   ChamUpperLower, tempim, tempjn, alpha, alpha,
68 69 70 71
                   A(i, j), ldai);
           }
       }
    }
Mathieu Faverge's avatar
Mathieu Faverge committed
72
    else if (uplo == ChamUpper) {
Mathieu Faverge's avatar
Mathieu Faverge committed
73
       for (j = 0; j < A->nt; j++){
74
           tempjn = j == A->nt-1 ? A->n-j*A->nb : A->nb;
Mathieu Faverge's avatar
Mathieu Faverge committed
75
           for (i = 0; i < chameleon_min(j+1, A->mt); i++){
76 77
               tempim = i == A->mt-1 ? A->m-i*A->mb : A->mb;
               ldai = BLKLDD(A, i);
Mathieu Faverge's avatar
Mathieu Faverge committed
78
               INSERT_TASK_zlaset(
79
                   &options,
Mathieu Faverge's avatar
Mathieu Faverge committed
80 81
                   ChamUpperLower, tempim, tempjn,
                   alpha,  (i == j) ? beta : alpha,
82 83 84 85 86 87 88 89 90 91
                   A(i, j), ldai);
           }
       }
    }
    else {
       for (i = 0; i < A->mt; i++){
           tempim = i == A->mt-1 ? A->m-i*A->mb : A->mb;
           ldai = BLKLDD(A, i);
           for (j = 0; j < A->nt; j++){
               tempjn = j == A->nt-1 ? A->n-j*A->nb : A->nb;
Mathieu Faverge's avatar
Mathieu Faverge committed
92
               INSERT_TASK_zlaset(
93
                   &options,
Mathieu Faverge's avatar
Mathieu Faverge committed
94 95
                   ChamUpperLower, tempim, tempjn,
                   alpha, (i == j) ? beta : alpha,
96 97 98 99
                   A(i, j), ldai);
           }
       }
    }
Mathieu Faverge's avatar
Mathieu Faverge committed
100
    RUNTIME_options_finalize(&options, chamctxt);
101
}