Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
elpa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
elpa
elpa
Commits
48378893
Commit
48378893
authored
Sep 28, 2016
by
Andreas Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
For performance reasons make usage of assumed-size arrays default
This can be switched off via --disable-assumed-size
parent
0ccc9d8f
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
17 deletions
+26
-17
configure.ac
configure.ac
+7
-7
src/elpa2_compute_complex_template.X90
src/elpa2_compute_complex_template.X90
+6
-1
src/elpa2_kernels/elpa2_kernels_real_simple.F90
src/elpa2_kernels/elpa2_kernels_real_simple.F90
+4
-0
src/elpa2_kernels/elpa2_kernels_real_template.X90
src/elpa2_kernels/elpa2_kernels_real_template.X90
+6
-6
src/elpa2_kernels/elpa2_kernels_simple_template.X90
src/elpa2_kernels/elpa2_kernels_simple_template.X90
+1
-1
src/mod_compute_hh_trafo_real.F90
src/mod_compute_hh_trafo_real.F90
+2
-2
No files found.
configure.ac
View file @
48378893
...
...
@@ -983,17 +983,17 @@ DX_MAN_FEATURE(ON)
DX_HTML_FEATURE(ON)
DX_INIT_DOXYGEN([ELPA], [Doxyfile], [docs])
USE_ASSUMED_SIZE=
no
AC_MSG_CHECKING(whether --
en
able-assumed-size is specified)
USE_ASSUMED_SIZE=
yes
AC_MSG_CHECKING(whether --
dis
able-assumed-size is specified)
AC_ARG_ENABLE([assumed-size],
AS_HELP_STRING([--
en
able-assumed-size],
[
use assumed-size Fortran arrays]),
[],
[USE_ASSUMED_SIZE=
no
])
AS_HELP_STRING([--
dis
able-assumed-size],
[do NOT
use assumed-size Fortran arrays]),
[
USE_ASSUMED_SIZE=no
],
[USE_ASSUMED_SIZE=
yes
])
AC_MSG_RESULT([${USE_ASSUMED_SIZE}])
AM_CONDITIONAL([WITH_USE_ASSUMED_SIZE],[test x"$USE_ASSUMED_SIZE" = x"yes"])
if test x"${USE_ASSUMED_SIZE}" = x"yes" ; then
AC_DEFINE([USE_ASSUMED_SIZE],[1],[use assumed size Fortran arrays, even if not debuggable])
AC_DEFINE([USE_ASSUMED_SIZE],[1],[
for performance reasons
use assumed size Fortran arrays, even if not debuggable])
fi
if test x"${want_single_precision}" = x"yes" ; then
...
...
src/elpa2_compute_complex_template.X90
View file @
48378893
...
...
@@ -217,9 +217,12 @@
l_cols_tile = tile_size/np_cols ! local cols of a tile
if (useGPU) then
#if !defined(USE_ASSUMED_SIZE)
if (size(a,dim=1) .ne. lda .or. size(a,dim=2) .ne. na_cols) then
print *,"bandred_complex: sizes of a wrong ? ",lda,size(a,dim=1),na_cols,size(a,dim=2)
endif
#endif
#ifdef DOUBLE_PRECISION_COMPLEX
successCUDA = cuda_memcpy(a_dev, loc(a(1,1)),(lda)*(na_cols)*size_of_double_complex_datatype,cudaMemcpyHostToDevice)
#else
...
...
@@ -1046,10 +1049,12 @@
enddo ! istep
if (useGPU) then
#if !(defined(USE_ASSUMED_SIZE))
if (size(a,dim=1)*size(a,dim=2) .ne. lda*na_cols) then
print *,"bandred_complex: size a ",size(a,dim=1)*size(a,dim=2) , lda*na_cols
endif
#endif
#ifdef DOUBLE_PRECISION_COMPLEX
successCUDA = cuda_memcpy ( loc(a(1,1)), a_dev, lda*na_cols*size_of_double_complex_datatype,cudaMemcpyDeviceToHost)
#else
...
...
src/elpa2_kernels/elpa2_kernels_real_simple.F90
View file @
48378893
...
...
@@ -58,6 +58,7 @@
#include "config-f90.h"
#ifndef USE_ASSUMED_SIZE
module
real_generic_simple_kernel
private
...
...
@@ -68,6 +69,7 @@ module real_generic_simple_kernel
#endif
contains
#endif
#define REALCASE 1
#define DOUBLE_PRECISION_REAL 1
...
...
@@ -87,5 +89,7 @@ module real_generic_simple_kernel
#undef REALCASE
#endif
#ifndef USE_ASSUMED_SIZE
end
module
real_generic_simple_kernel
#endif
! --------------------------------------------------------------------------------------------------
src/elpa2_kernels/elpa2_kernels_real_template.X90
View file @
48378893
...
...
@@ -213,7 +213,7 @@
integer(kind=ik), intent(in) :: nb, ldq, ldh
#ifdef USE_ASSUMED_SIZE
complex(kind=COMPLEX_DATAT
PY
E), intent(inout) :: q(ldq/2,*)
complex(kind=COMPLEX_DATAT
YP
E), intent(inout) :: q(ldq/2,*)
real(kind=REAL_DATATYPE), intent(in) :: hh(ldh,*)
#else
real(kind=REAL_DATATYPE), intent(inout) :: q(:,:)
...
...
@@ -222,7 +222,7 @@
real(kind=REAL_DATATYPE), intent(in) :: s
#ifdef PACK_REAL_TO_COMPLEX
complex(kind=COMPLEX_DATAT
PY
E) :: x1, x2, x3, x4, x5, x6, y1, y2, y3, y4, y5, y6
complex(kind=COMPLEX_DATAT
YP
E) :: x1, x2, x3, x4, x5, x6, y1, y2, y3, y4, y5, y6
#else
real(kind=REAL_DATATYPE) :: x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, &
y1, y2, y3, y4, y5, y6, y7, y8, y9, y10, y11, y12
...
...
@@ -463,7 +463,7 @@
integer(kind=ik), intent(in) :: nb, ldq, ldh
#ifdef USE_ASSUMED_SIZE
complex(kind=COMPLEX_DATAT
PY
E), intent(inout) :: q(ldq/2,*)
complex(kind=COMPLEX_DATAT
YP
E), intent(inout) :: q(ldq/2,*)
real(kind=REAL_DATATYPE), intent(in) :: hh(ldh,*)
#else
real(kind=REAL_DATATYPE), intent(inout) :: q(:,:)
...
...
@@ -471,7 +471,7 @@
#endif
real(kind=REAL_DATATYPE), intent(in) :: s
#ifdef PACK_REAL_TO_COMPLEX
complex(kind=COMPLEX_DATAT
PY
E) :: x1, x2, x3, x4, y1, y2, y3, y4
complex(kind=COMPLEX_DATAT
YP
E) :: x1, x2, x3, x4, y1, y2, y3, y4
#else
real(kind=REAL_DATATYPE) :: x1, x2, x3, x4, x5, x6, x7, x8, &
y1, y2, y3, y4, y5, y6, y7, y8
...
...
@@ -654,7 +654,7 @@
integer(kind=ik), intent(in) :: nb, ldq, ldh
#ifdef USE_ASSUMED_SIZE
complex(kind=COMPLEX_DATAT
PY
E), intent(inout) :: q(ldq/2,*)
complex(kind=COMPLEX_DATAT
YP
E), intent(inout) :: q(ldq/2,*)
real(kind=REAL_DATATYPE), intent(in) :: hh(ldh,*)
#else
real(kind=REAL_DATATYPE), intent(inout) :: q(:,:) !q(1:ldq/2,1:nb+1)
...
...
@@ -663,7 +663,7 @@
real(kind=REAL_DATATYPE), intent(in) :: s
#ifdef PACK_REAL_TO_COMPLEX
complex(kind=COMPLEX_DATAT
PY
E) :: x1, x2, y1, y2
complex(kind=COMPLEX_DATAT
YP
E) :: x1, x2, y1, y2
#else
real(kind=REAL_DATATYPE) :: x1, x2, x3, x4, y1, y2, y3, y4
#endif
...
...
src/elpa2_kernels/elpa2_kernels_simple_template.X90
View file @
48378893
...
...
@@ -202,7 +202,7 @@
call timer%start("kernel real generic simple: double_hh_trafo_real_generic_simple_single")
#endif
#endif
#endif
#endif /* REALCASE==1 */
...
...
src/mod_compute_hh_trafo_real.F90
View file @
48378893
...
...
@@ -84,7 +84,7 @@ module compute_hh_trafo_real
use
cuda_c_kernel
use
cuda_functions
#if defined(WITH_REAL_GENERIC_SIMPLE_KERNEL)
#if defined(WITH_REAL_GENERIC_SIMPLE_KERNEL)
&& !(defined(USE_ASSUMED_SIZE))
use
real_generic_simple_kernel
!, only : double_hh_trafo_generic_simple
#endif
...
...
@@ -668,7 +668,7 @@ module compute_hh_trafo_real
use
cuda_c_kernel
use
cuda_functions
#if defined(WITH_REAL_GENERIC_SIMPLE_KERNEL)
#if defined(WITH_REAL_GENERIC_SIMPLE_KERNEL)
&& !(defined(USE_ASSUMED_SIZE))
use
real_generic_simple_kernel
!, only : double_hh_trafo_generic_simple
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment