elpa2_kernels_real.F90 3.34 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
!    This file is part of ELPA.
!
!    The ELPA library was originally created by the ELPA consortium,
!    consisting of the following organizations:
!
!    - Max Planck Computing and Data Facility (MPCDF), formerly known as
!      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,
13
!    - Max-Plack-Institut für Mathematik in den Naturwissenschaften,
14 15 16 17 18 19 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 50 51 52 53 54 55 56
!      Leipzig, Abt. Komplexe Strukutren in Biologie und Kognition,
!      and
!    - IBM Deutschland GmbH
!
!
!    More information can be found here:
!    http://elpa.mpcdf.mpg.de/
!
!    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 contains the compute intensive kernels for the Householder transformations.
! It should be compiled with the highest possible optimization level.
!
! On Intel use -O3 -xSSE4.2 (or the SSE level fitting to your CPU)
!
! Copyright of the original code rests with the authors inside the ELPA
! consortium. The copyright of any additional modifications shall rest
! with their original authors, but shall adhere to the licensing terms
! distributed along with the original code in the file "COPYING".
!
! --------------------------------------------------------------------------------------------------
#include "config-f90.h"
57
#ifdef USE_ASSUMED_SIZE
58 59 60 61 62
#define PACK_REAL_TO_COMPLEX
#else
#undef PACK_REAL_TO_COMPLEX
#endif

63
#ifndef USE_ASSUMED_SIZE
64 65 66
module real_generic_kernel

  private
Andreas Marek's avatar
Andreas Marek committed
67
  public double_hh_trafo_real_generic_double
68 69

#ifdef WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
70
  public double_hh_trafo_real_generic_single
71 72 73 74 75
#endif

  contains
#endif

Andreas Marek's avatar
Andreas Marek committed
76 77 78
#define REALCASE 1
#define DOUBLE_PRECISION 1
#include "../precision_macros.h"
79
#include "elpa2_kernels_real_template.X90"
Andreas Marek's avatar
Andreas Marek committed
80 81
#undef REALCASE
#undef DOUBLE_PRECISION
82 83

#ifdef WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
84 85 86
#define REALCASE 1
#define SINGLE_PRECISION 1
#include "../precision_macros.h"
87
#include "elpa2_kernels_real_template.X90"
Andreas Marek's avatar
Andreas Marek committed
88 89
#undef REALCASE
#undef SINGLE_PRECISION
90
#endif
91

92
#ifndef USE_ASSUMED_SIZE
93 94 95
end module real_generic_kernel
#endif
! --------------------------------------------------------------------------------------------------