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
11166804
Commit
11166804
authored
Aug 25, 2017
by
Pavel Kus
Committed by
Andreas Marek
Aug 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
real/complex unification of declarations
in elpa2_trans_ev_band_to_full_template
parent
3513aec8
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
45 deletions
+5
-45
src/elpa2/elpa2_trans_ev_band_to_full_template.F90
src/elpa2/elpa2_trans_ev_band_to_full_template.F90
+5
-45
No files found.
src/elpa2/elpa2_trans_ev_band_to_full_template.F90
View file @
11166804
...
@@ -102,48 +102,18 @@
...
@@ -102,48 +102,18 @@
use
iso_c_binding
use
iso_c_binding
use
elpa_abstract_impl
use
elpa_abstract_impl
implicit
none
implicit
none
#include "../general/precision_kinds.F90"
class
(
elpa_abstract_impl_t
),
intent
(
inout
)
::
obj
class
(
elpa_abstract_impl_t
),
intent
(
inout
)
::
obj
logical
,
intent
(
in
)
::
useGPU
logical
,
intent
(
in
)
::
useGPU
#if REALCASE == 1
#if REALCASE == 1
logical
,
intent
(
in
)
::
useQR
logical
,
intent
(
in
)
::
useQR
#endif
#endif
integer
(
kind
=
ik
)
::
na
,
nqc
,
lda
,
ldq
,
nblk
,
nbw
,
matrixCols
,
numBlocks
,
mpi_comm_rows
,
mpi_comm_cols
integer
(
kind
=
ik
)
::
na
,
nqc
,
lda
,
ldq
,
nblk
,
nbw
,
matrixCols
,
numBlocks
,
mpi_comm_rows
,
mpi_comm_cols
#if REALCASE == 1
#ifdef USE_ASSUMED_SIZE
real
(
kind
=
REAL_DATATYPE
)
::
a
(
lda
,
*
),
q
(
ldq
,
*
),
tmat
(
nbw
,
nbw
,
*
)
!real(kind=rk8) :: a(lda,*), q(ldq,*), tmat(nbw,nbw,*)
#else
real
(
kind
=
REAL_DATATYPE
)
::
a
(
lda
,
matrixCols
),
q
(
ldq
,
matrixCols
),
tmat
(
nbw
,
nbw
,
numBlocks
)
!real(kind=rk8) :: a(lda,matrixCols), q(ldq,matrixCols), tmat(nbw, nbw, numBlocks)
#endif
#endif
#if COMPLEXCASE == 1
#ifdef USE_ASSUMED_SIZE
#ifdef USE_ASSUMED_SIZE
complex
(
kind
=
COMPLEX_DATATYPE
)
::
a
(
lda
,
*
),
q
(
ldq
,
*
),
tmat
(
nbw
,
nbw
,
*
)
MATH_DATATYPE
(
kind
=
rck
)
::
a
(
lda
,
*
),
q
(
ldq
,
*
),
tmat
(
nbw
,
nbw
,
*
)
!complex(kind=ck8) :: a(lda,*), q(ldq,*), tmat(nbw,nbw,*)
#else
complex
(
kind
=
COMPLEX_DATATYPE
)
::
a
(
lda
,
matrixCols
),
q
(
ldq
,
matrixCols
),
tmat
(
nbw
,
nbw
,
numBlocks
)
!complex(kind=ck8) :: a(lda,matrixCols), q(ldq,matrixCols), tmat(nbw, nbw, numBlocks)
#endif
#endif
#if REALCASE == 1
#ifdef DOUBLE_PRECISION_COMPLEX
real
(
kind
=
REAL_DATATYPE
),
parameter
::
ZERO
=
0.0_rk8
,
ONE
=
1.0_rk8
#else
real
(
kind
=
REAL_DATATYPE
),
parameter
::
ZERO
=
0.0_rk4
,
ONE
=
1.0_rk4
#endif
#endif
#if COMPLEXCASE == 1
#ifdef DOUBLE_PRECISION_COMPLEX
complex
(
kind
=
COMPLEX_DATATYPE
),
parameter
::
ZERO
=
(
0.0_rk8
,
0.0_rk8
),
ONE
=
(
1.0_rk8
,
0.0_rk8
)
#else
#else
complex
(
kind
=
COMPLEX_DATATYPE
),
parameter
::
ZERO
=
(
0.0_rk4
,
0.0_rk4
),
ONE
=
(
1.0_rk4
,
0.0_rk4
)
MATH_DATATYPE
(
kind
=
rck
)
::
a
(
lda
,
matrixCols
),
q
(
ldq
,
matrixCols
),
tmat
(
nbw
,
nbw
,
numBlocks
)
#endif
#endif
#endif
integer
(
kind
=
C_intptr_T
)
::
a_dev
! passed from bandred_real at the moment not used since copied in bandred_real
integer
(
kind
=
C_intptr_T
)
::
a_dev
! passed from bandred_real at the moment not used since copied in bandred_real
integer
(
kind
=
ik
)
::
my_prow
,
my_pcol
,
np_rows
,
np_cols
,
mpierr
integer
(
kind
=
ik
)
::
my_prow
,
my_pcol
,
np_rows
,
np_cols
,
mpierr
...
@@ -152,12 +122,7 @@
...
@@ -152,12 +122,7 @@
integer
(
kind
=
ik
)
::
l_cols
,
l_rows
,
l_colh
,
n_cols
integer
(
kind
=
ik
)
::
l_cols
,
l_rows
,
l_colh
,
n_cols
integer
(
kind
=
ik
)
::
istep
,
lc
,
ncol
,
nrow
,
nb
,
ns
integer
(
kind
=
ik
)
::
istep
,
lc
,
ncol
,
nrow
,
nb
,
ns
#if REALCASE ==1
MATH_DATATYPE
(
kind
=
rck
),
allocatable
::
tmp1
(:),
tmp2
(:),
hvb
(:),
hvm
(:,:)
real
(
kind
=
REAL_DATATYPE
),
allocatable
::
tmp1
(:),
tmp2
(:),
hvb
(:),
hvm
(:,:)
#endif
#if COMPLEXCASE == 1
complex
(
kind
=
COMPLEX_DATATYPE
),
allocatable
::
tmp1
(:),
tmp2
(:),
hvb
(:),
hvm
(:,:)
#endif
! hvm_dev is fist used and set in this routine
! hvm_dev is fist used and set in this routine
! q is changed in trans_ev_tridi on the host, copied to device and passed here. this can be adapted
! q is changed in trans_ev_tridi on the host, copied to device and passed here. this can be adapted
! tmp_dev is first used in this routine
! tmp_dev is first used in this routine
...
@@ -167,12 +132,7 @@
...
@@ -167,12 +132,7 @@
integer
(
kind
=
ik
)
::
i
integer
(
kind
=
ik
)
::
i
#ifdef BAND_TO_FULL_BLOCKING
#ifdef BAND_TO_FULL_BLOCKING
#if REALCASE == 1
MATH_DATATYPE
(
kind
=
rck
),
allocatable
::
tmat_complete
(:,:),
t_tmp
(:,:),
t_tmp2
(:,:)
real
(
kind
=
REAL_DATATYPE
),
allocatable
::
tmat_complete
(:,:),
t_tmp
(:,:),
t_tmp2
(:,:)
#endif
#if COMPLEXCASE == 1
complex
(
kind
=
COMPLEX_DATATYPE
),
allocatable
::
tmat_complete
(:,:),
t_tmp
(:,:),
t_tmp2
(:,:)
#endif
integer
(
kind
=
ik
)
::
cwy_blocking
,
t_blocking
,
t_cols
,
t_rows
integer
(
kind
=
ik
)
::
cwy_blocking
,
t_blocking
,
t_cols
,
t_rows
#endif
#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