Mise à jour terminée. Pour connaître les apports de la version 13.8.4 par rapport à notre ancienne version vous pouvez lire les "Release Notes" suivantes :
https://about.gitlab.com/releases/2021/02/11/security-release-gitlab-13-8-4-released/
https://about.gitlab.com/releases/2021/02/05/gitlab-13-8-3-released/

common.h 3.45 KB
Newer Older
1
/**
2 3
 *
 * @file common.h
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.
7 8
 * @copyright 2012-2015 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
 *                      Univ. Bordeaux. All rights reserved.
9
 *
Mathieu Faverge's avatar
Mathieu Faverge committed
10
 ***
11
 *
12
 * @brief Chameleon common header file
13
 *
Mathieu Faverge's avatar
Mathieu Faverge committed
14
 * @version 1.0.0
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
 * @author Mathieu Faverge
 * @author Cedric Castagnede
 * @date 2012-09-15
 *
 **/
/*******************************************************************************
 *  MORSE facilities of interest to both MORSE core developer
 *  and also of interest to MORSE community contributor.
 **/
#ifndef _MORSE_COMMON_H_
#define _MORSE_COMMON_H_


#if defined( _WIN32 ) || defined( _WIN64 )
#include <io.h>
#else
#include <unistd.h>
#endif

/** ****************************************************************************
 * Implementation headers
 **/
37
#if defined(CHAMELEON_USE_CUDA) && !defined(CHAMELEON_SIMULATION)
38 39 40
#include <cuda.h>
#include <cuda_runtime.h>
#include <cuda_runtime_api.h>
41
#if defined(CHAMELEON_USE_CUBLAS_V2)
42
#include <cublas.h>
43 44
#include <cublas_v2.h>
#else
45 46
#include <cublas.h>
#endif
47
#endif
48

49
#if defined(CHAMELEON_USE_OPENCL) && !defined(CHAMELEON_SIMULATION)
50 51 52
#include <OpenCL/cl.h>
#endif

53
#if defined(CHAMELEON_USE_MPI)
54 55 56 57
#include <mpi.h>
#endif

/** ****************************************************************************
58 59
 *  Line to avoid conflict with other linear algebra libraries, because, we
 *  don't know why but lapacke provide a wrong interface of lapack in fortran
60 61 62 63
 **/
#ifndef LAPACK_NAME
#define LAPACK_NAME(a, b) lapackef77_##a
#endif
64 65 66 67 68 69

/** ****************************************************************************
 *  Chameleon header files
 **/
#include "morse.h"

70 71
#include "control/global.h"
#include "control/auxiliary.h"
72 73
#include "control/context.h"
#include "control/descriptor.h"
74
#include "control/async.h"
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90

/*******************************************************************************
 *  Global shortcuts
 **/
#define MORSE_RANK        morse_rank(morse)
#define MORSE_SIZE        morse->world_size
#define MORSE_GRPSIZE     morse->group_size
#define MORSE_NB          morse->nb
#define MORSE_IB          morse->ib
#define MORSE_NBNBSIZE    morse->nbnbsize
#define MORSE_IBNBSIZE    morse->ibnbsize
#define MORSE_SCHEDULING  morse->scheduling
#define MORSE_RHBLK       morse->rhblock
#define MORSE_TRANSLATION morse->translation
#define MORSE_PARALLEL    morse->parallel_enabled
#define MORSE_PROFILING   morse->profiling_enabled
91
#if defined(CHAMELEON_USE_MPI)
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
#define MORSE_MPI_RANK    morse->my_mpi_rank
#define MORSE_MPI_SIZE    morse->mpi_comm_size
#endif

/*******************************************************************************
 *  IPT internal define
 **/
#define MorseIPT_NoDep   0
#define MorseIPT_Panel   1
#define MorseIPT_All     2

/*******************************************************************************
 *  Global array of LAPACK constants
 **/
extern char *morse_lapack_constants[];
107
#define morse_lapack_const(morse_const) morse_lapack_constants[morse_const][0]
108 109 110 111 112

#ifdef __cplusplus
extern "C" {
#endif

113 114
#include "control/compute_s.h"
#include "control/compute_d.h"
115
#define COMPLEX
116 117
#include "control/compute_c.h"
#include "control/compute_z.h"
118 119 120 121 122 123 124 125 126 127 128 129 130 131
#undef COMPLEX

/*
void morse_pdlag2s(MORSE_context_t *morse);
void morse_pzlag2c(MORSE_context_t *morse);
void morse_pslag2d(MORSE_context_t *morse);
void morse_pclag2z(MORSE_context_t *morse);
*/

#ifdef __cplusplus
}
#endif

#endif