Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
elpa
elpa
Commits
03ef1ee4
Commit
03ef1ee4
authored
Jun 09, 2016
by
Andreas Marek
Browse files
Remove some unecessary cuda_memcpy in real case
The same should be done for the complex case
parent
29f31c21
Changes
2
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
src/elpa2.F90
View file @
03ef1ee4
...
@@ -183,6 +183,7 @@ contains
...
@@ -183,6 +183,7 @@ contains
integer
(
kind
=
ik
)
::
my_pe
,
n_pes
,
my_prow
,
my_pcol
,
np_rows
,
np_cols
,
mpierr
integer
(
kind
=
ik
)
::
my_pe
,
n_pes
,
my_prow
,
my_pcol
,
np_rows
,
np_cols
,
mpierr
integer
(
kind
=
ik
)
::
nbw
,
num_blocks
integer
(
kind
=
ik
)
::
nbw
,
num_blocks
real
(
kind
=
rk8
),
allocatable
::
tmat
(:,:,:),
e
(:)
real
(
kind
=
rk8
),
allocatable
::
tmat
(:,:,:),
e
(:)
integer
(
kind
=
c_intptr_t
)
::
tmat_dev
,
q_dev
,
a_dev
real
(
kind
=
c_double
)
::
ttt0
,
ttt1
,
ttts
! MPI_WTIME always needs double
real
(
kind
=
c_double
)
::
ttt0
,
ttt1
,
ttts
! MPI_WTIME always needs double
integer
(
kind
=
ik
)
::
i
integer
(
kind
=
ik
)
::
i
logical
::
success
logical
::
success
...
@@ -322,11 +323,11 @@ contains
...
@@ -322,11 +323,11 @@ contains
ttt0
=
MPI_Wtime
()
ttt0
=
MPI_Wtime
()
ttts
=
ttt0
ttts
=
ttt0
#ifdef DOUBLE_PRECISION_REAL
#ifdef DOUBLE_PRECISION_REAL
call
bandred_real_double
(
na
,
a
,
lda
,
nblk
,
nbw
,
matrixCols
,
num_blocks
,
mpi_comm_rows
,
mpi_comm_cols
,
&
call
bandred_real_double
(
na
,
a
,
a_dev
,
lda
,
nblk
,
nbw
,
matrixCols
,
num_blocks
,
mpi_comm_rows
,
mpi_comm_cols
,
&
tmat
,
wantDebug
,
useGPU
,
success
,
useQRActual
)
tmat
,
tmat_dev
,
wantDebug
,
useGPU
,
success
,
useQRActual
)
#else
#else
call
bandred_real_single
(
na
,
a
,
lda
,
nblk
,
nbw
,
matrixCols
,
num_blocks
,
mpi_comm_rows
,
mpi_comm_cols
,
&
call
bandred_real_single
(
na
,
a
,
a_dev
,
lda
,
nblk
,
nbw
,
matrixCols
,
num_blocks
,
mpi_comm_rows
,
mpi_comm_cols
,
&
tmat
,
wantDebug
,
useGPU
,
success
,
useQRActual
)
tmat
,
tmat_dev
,
wantDebug
,
useGPU
,
success
,
useQRActual
)
#endif
#endif
if
(
.not.
(
success
))
return
if
(
.not.
(
success
))
return
ttt1
=
MPI_Wtime
()
ttt1
=
MPI_Wtime
()
...
@@ -395,11 +396,11 @@ contains
...
@@ -395,11 +396,11 @@ contains
ttt0
=
MPI_Wtime
()
ttt0
=
MPI_Wtime
()
#ifdef DOUBLE_PRECISION_REAL
#ifdef DOUBLE_PRECISION_REAL
call
trans_ev_tridi_to_band_real_double
(
na
,
nev
,
nblk
,
nbw
,
q
,
ldq
,
matrixCols
,
hh_trans_real
,
&
call
trans_ev_tridi_to_band_real_double
(
na
,
nev
,
nblk
,
nbw
,
q
,
q_dev
,
ldq
,
matrixCols
,
hh_trans_real
,
&
mpi_comm_rows
,
mpi_comm_cols
,
wantDebug
,
useGPU
,
success
,
&
mpi_comm_rows
,
mpi_comm_cols
,
wantDebug
,
useGPU
,
success
,
&
THIS_REAL_ELPA_KERNEL
)
THIS_REAL_ELPA_KERNEL
)
#else
#else
call
trans_ev_tridi_to_band_real_single
(
na
,
nev
,
nblk
,
nbw
,
q
,
ldq
,
matrixCols
,
hh_trans_real
,
&
call
trans_ev_tridi_to_band_real_single
(
na
,
nev
,
nblk
,
nbw
,
q
,
q_dev
,
ldq
,
matrixCols
,
hh_trans_real
,
&
mpi_comm_rows
,
mpi_comm_cols
,
wantDebug
,
useGPU
,
success
,
&
mpi_comm_rows
,
mpi_comm_cols
,
wantDebug
,
useGPU
,
success
,
&
THIS_REAL_ELPA_KERNEL
)
THIS_REAL_ELPA_KERNEL
)
#endif
#endif
...
@@ -421,10 +422,10 @@ contains
...
@@ -421,10 +422,10 @@ contains
print
*
,
"useGPU== "
,
useGPU
print
*
,
"useGPU== "
,
useGPU
ttt0
=
MPI_Wtime
()
ttt0
=
MPI_Wtime
()
#ifdef DOUBLE_PRECISION_REAL
#ifdef DOUBLE_PRECISION_REAL
call
trans_ev_band_to_full_real_double
(
na
,
nev
,
nblk
,
nbw
,
a
,
lda
,
tmat
,
q
,
ldq
,
matrixCols
,
num_blocks
,
mpi_comm_rows
,
&
call
trans_ev_band_to_full_real_double
(
na
,
nev
,
nblk
,
nbw
,
a
,
a_dev
,
lda
,
tmat
,
tmat_dev
,
q
,
q_dev
,
ldq
,
matrixCols
,
num_blocks
,
mpi_comm_rows
,
&
mpi_comm_cols
,
useGPU
,
useQRActual
)
mpi_comm_cols
,
useGPU
,
useQRActual
)
#else
#else
call
trans_ev_band_to_full_real_single
(
na
,
nev
,
nblk
,
nbw
,
a
,
lda
,
tmat
,
q
,
ldq
,
matrixCols
,
num_blocks
,
mpi_comm_rows
,
&
call
trans_ev_band_to_full_real_single
(
na
,
nev
,
nblk
,
nbw
,
a
,
a_dev
,
lda
,
tmat
,
tmat_dev
,
q
,
q_dev
,
ldq
,
matrixCols
,
num_blocks
,
mpi_comm_rows
,
&
mpi_comm_cols
,
useGPU
,
useQRActual
)
mpi_comm_cols
,
useGPU
,
useQRActual
)
#endif
#endif
...
@@ -534,6 +535,7 @@ contains
...
@@ -534,6 +535,7 @@ contains
integer
(
kind
=
ik
)
::
my_pe
,
n_pes
,
my_prow
,
my_pcol
,
np_rows
,
np_cols
,
mpierr
integer
(
kind
=
ik
)
::
my_pe
,
n_pes
,
my_prow
,
my_pcol
,
np_rows
,
np_cols
,
mpierr
integer
(
kind
=
ik
)
::
nbw
,
num_blocks
integer
(
kind
=
ik
)
::
nbw
,
num_blocks
real
(
kind
=
rk4
),
allocatable
::
tmat
(:,:,:),
e
(:)
real
(
kind
=
rk4
),
allocatable
::
tmat
(:,:,:),
e
(:)
integer
(
kind
=
c_intptr_t
)
::
tmat_dev
,
q_dev
,
a_dev
real
(
kind
=
c_double
)
::
ttt0
,
ttt1
,
ttts
! MPI_WTIME always needs double
real
(
kind
=
c_double
)
::
ttt0
,
ttt1
,
ttts
! MPI_WTIME always needs double
integer
(
kind
=
ik
)
::
i
integer
(
kind
=
ik
)
::
i
logical
::
success
logical
::
success
...
@@ -672,11 +674,11 @@ contains
...
@@ -672,11 +674,11 @@ contains
ttt0
=
MPI_Wtime
()
ttt0
=
MPI_Wtime
()
ttts
=
ttt0
ttts
=
ttt0
#ifdef DOUBLE_PRECISION_REAL
#ifdef DOUBLE_PRECISION_REAL
call
bandred_real_double
(
na
,
a
,
lda
,
nblk
,
nbw
,
matrixCols
,
num_blocks
,
mpi_comm_rows
,
mpi_comm_cols
,
&
call
bandred_real_double
(
na
,
a
,
a_dev
,
lda
,
nblk
,
nbw
,
matrixCols
,
num_blocks
,
mpi_comm_rows
,
mpi_comm_cols
,
&
tmat
,
wantDebug
,
useGPU
,
success
,
useQRActual
)
tmat
,
tmat_dev
,
wantDebug
,
useGPU
,
success
,
useQRActual
)
#else
#else
call
bandred_real_single
(
na
,
a
,
lda
,
nblk
,
nbw
,
matrixCols
,
num_blocks
,
mpi_comm_rows
,
mpi_comm_cols
,
&
call
bandred_real_single
(
na
,
a
,
a_dev
,
lda
,
nblk
,
nbw
,
matrixCols
,
num_blocks
,
mpi_comm_rows
,
mpi_comm_cols
,
&
tmat
,
wantDebug
,
useGPU
,
success
,
useQRActual
)
tmat
,
tmat_dev
,
wantDebug
,
useGPU
,
success
,
useQRActual
)
#endif
#endif
if
(
.not.
(
success
))
return
if
(
.not.
(
success
))
return
ttt1
=
MPI_Wtime
()
ttt1
=
MPI_Wtime
()
...
@@ -745,11 +747,11 @@ contains
...
@@ -745,11 +747,11 @@ contains
ttt0
=
MPI_Wtime
()
ttt0
=
MPI_Wtime
()
#ifdef DOUBLE_PRECISION_REAL
#ifdef DOUBLE_PRECISION_REAL
call
trans_ev_tridi_to_band_real_double
(
na
,
nev
,
nblk
,
nbw
,
q
,
ldq
,
matrixCols
,
hh_trans_real
,
&
call
trans_ev_tridi_to_band_real_double
(
na
,
nev
,
nblk
,
nbw
,
q
,
q_dev
,
ldq
,
matrixCols
,
hh_trans_real
,
&
mpi_comm_rows
,
mpi_comm_cols
,
wantDebug
,
useGPU
,
success
,
&
mpi_comm_rows
,
mpi_comm_cols
,
wantDebug
,
useGPU
,
success
,
&
THIS_REAL_ELPA_KERNEL
)
THIS_REAL_ELPA_KERNEL
)
#else
#else
call
trans_ev_tridi_to_band_real_single
(
na
,
nev
,
nblk
,
nbw
,
q
,
ldq
,
matrixCols
,
hh_trans_real
,
&
call
trans_ev_tridi_to_band_real_single
(
na
,
nev
,
nblk
,
nbw
,
q
,
q_dev
,
ldq
,
matrixCols
,
hh_trans_real
,
&
mpi_comm_rows
,
mpi_comm_cols
,
wantDebug
,
useGPU
,
success
,
&
mpi_comm_rows
,
mpi_comm_cols
,
wantDebug
,
useGPU
,
success
,
&
THIS_REAL_ELPA_KERNEL
)
THIS_REAL_ELPA_KERNEL
)
#endif
#endif
...
@@ -771,10 +773,10 @@ contains
...
@@ -771,10 +773,10 @@ contains
print
*
,
"useGPU== "
,
useGPU
print
*
,
"useGPU== "
,
useGPU
ttt0
=
MPI_Wtime
()
ttt0
=
MPI_Wtime
()
#ifdef DOUBLE_PRECISION_REAL
#ifdef DOUBLE_PRECISION_REAL
call
trans_ev_band_to_full_real_double
(
na
,
nev
,
nblk
,
nbw
,
a
,
lda
,
tmat
,
q
,
ldq
,
matrixCols
,
num_blocks
,
mpi_comm_rows
,
&
call
trans_ev_band_to_full_real_double
(
na
,
nev
,
nblk
,
nbw
,
a
,
lda
,
tmat
,
tmat_dev
,
q
,
q_dev
,
ldq
,
matrixCols
,
num_blocks
,
mpi_comm_rows
,
&
mpi_comm_cols
,
useGPU
,
useQRActual
)
mpi_comm_cols
,
useGPU
,
useQRActual
)
#else
#else
call
trans_ev_band_to_full_real_single
(
na
,
nev
,
nblk
,
nbw
,
a
,
lda
,
tmat
,
q
,
ldq
,
matrixCols
,
num_blocks
,
mpi_comm_rows
,
&
call
trans_ev_band_to_full_real_single
(
na
,
nev
,
nblk
,
nbw
,
a
,
lda
,
tmat
,
tmat_dev
,
q
,
q_dev
,
ldq
,
matrixCols
,
num_blocks
,
mpi_comm_rows
,
&
mpi_comm_cols
,
useGPU
,
useQRActual
)
mpi_comm_cols
,
useGPU
,
useQRActual
)
#endif
#endif
...
...
src/elpa2_compute_real_template.X90
View file @
03ef1ee4
This diff is collapsed.
Click to expand it.
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