mod_pack_unpack_gpu.F90 3.35 KB
Newer Older
Andreas Marek's avatar
Andreas Marek committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
!    This file is part of ELPA.
!
!    The ELPA library was originally created by the ELPA consortium,
!    consisting of the following organizations:
!
!    - Rechenzentrum Garching der Max-Planck-Gesellschaft (RZG),
!    - Bergische Universität Wuppertal, Lehrstuhl für angewandte
!      Informatik,
!    - Technische Universität München, Lehrstuhl für Informatik mit
!      Schwerpunkt Wissenschaftliches Rechnen ,
!    - Fritz-Haber-Institut, Berlin, Abt. Theorie,
!    - Max-Plack-Institut für Mathematik in den Naturwissenschaften,
!      Leipzig, Abt. Komplexe Strukutren in Biologie und Kognition,
!      and
!    - IBM Deutschland GmbH
!
!
!    More information can be found here:
Andreas Marek's avatar
Andreas Marek committed
19
!    http://elpa.mpcdf.mpg.de/
Andreas Marek's avatar
Andreas Marek committed
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
!
!    ELPA is free software: you can redistribute it and/or modify
!    it under the terms of the version 3 of the license of the
!    GNU Lesser General Public License as published by the Free
!    Software Foundation.
!
!    ELPA is distributed in the hope that it will be useful,
!    but WITHOUT ANY WARRANTY; without even the implied warranty of
!    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
!    GNU Lesser General Public License for more details.
!
!    You should have received a copy of the GNU Lesser General Public License
!    along with ELPA.  If not, see <http://www.gnu.org/licenses/>
!
!    ELPA reflects a substantial effort on the part of the original
!    ELPA consortium, and we ask you to respect the spirit of the
!    license that we chose: i.e., please contribute any changes you
!    may have back to the original ELPA library distribution, and keep
!    any derivatives of ELPA under the same license that we chose for
!    the original distribution, the GNU Lesser General Public License.
!
! This file was written by A. Marek, MPCDF


module pack_unpack_gpu
#include "config-f90.h"
  implicit none

  private

50
51
  public pack_row_group_real_gpu_double, &
         unpack_and_prepare_row_group_real_gpu_double, &
Andreas Marek's avatar
Andreas Marek committed
52
53
         extract_hh_tau_real_gpu_double

54
55
  public pack_row_group_complex_gpu_double, &
         unpack_and_prepare_row_group_complex_gpu_double, &
Andreas Marek's avatar
Andreas Marek committed
56
57
58
         extract_hh_tau_complex_gpu_double

#ifdef WANT_SINGLE_PRECISION_REAL
59
60
  public pack_row_group_real_gpu_single, &
         unpack_and_prepare_row_group_real_gpu_single, &
Andreas Marek's avatar
Andreas Marek committed
61
62
63
64
65
         extract_hh_tau_real_gpu_single

#endif

#ifdef WANT_SINGLE_PRECISION_COMPLEX
66
67
  public pack_row_group_complex_gpu_single, &
         unpack_and_prepare_row_group_complex_gpu_single, &
Andreas Marek's avatar
Andreas Marek committed
68
69
70
71
72
73
74
         extract_hh_tau_complex_gpu_single
#endif
  contains

  !real double precision
#define REALCASE 1
#define DOUBLE_PRECISION 1
75
#include "../general/precision_macros.h"
76
#include "pack_unpack_gpu.F90"
Andreas Marek's avatar
Andreas Marek committed
77
78
79
80
81
82
83
#undef REALCASE
#undef DOUBLE_PRECISION

 ! real single precision
#if defined(WANT_SINGLE_PRECISION_REAL)
#define REALCASE 1
#define SINGLE_PRECISION 1
84
#include "../general/precision_macros.h"
85
#include "pack_unpack_gpu.F90"
Andreas Marek's avatar
Andreas Marek committed
86
87
88
89
90
91
92
#undef REALCASE
#undef SINGLE_PRECISION
#endif

  !complex double precision
#define COMPLEXCASE 1
#define DOUBLE_PRECISION 1
93
#include "../general/precision_macros.h"
94
#include "pack_unpack_gpu.F90"
Andreas Marek's avatar
Andreas Marek committed
95
96
97
98
99
100
101
#undef COMPLEXCASE
#undef DOUBLE_PRECISION

 ! complex single precision
#if defined(WANT_SINGLE_PRECISION_COMPLEX)
#define COMPLEXCASE 1
#define SINGLE_PRECISION 1
102
#include "../general/precision_macros.h"
103
#include "pack_unpack_gpu.F90"
Andreas Marek's avatar
Andreas Marek committed
104
105
106
107
108
109
110
#undef COMPLEXCASE
#undef SINGLE_PRECISION
#endif



end module