Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
elpa
elpa
Commits
10e3aade
Commit
10e3aade
authored
Dec 01, 2021
by
Soheil Soltani
Browse files
Implement Bcast of tmat2 via cuda_aware_mpi
parent
8e8860a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/invert_trm/elpa_invert_trm_template.F90
View file @
10e3aade
...
...
@@ -95,8 +95,8 @@
integer
(
kind
=
c_intptr_t
)
::
tmat1_dev
,
tmat2_dev
,
a_dev
,
tmp1_dev
,
tmp2_dev
,
zero_dev
type
(
c_ptr
)
::
tmp1_mpi_dev
MATH_DATATYPE
(
kind
=
rck
),
pointer
::
tmp1_mpi_fortran_ptr
(:,:)
type
(
c_ptr
)
::
tmat1_mpi_dev
MATH_DATATYPE
(
kind
=
rck
),
pointer
::
tmat1_mpi_fortran_ptr
(:,:)
type
(
c_ptr
)
::
tmat1_mpi_dev
,
tmat2_mpi_dev
MATH_DATATYPE
(
kind
=
rck
),
pointer
::
tmat1_mpi_fortran_ptr
(:,:)
,
tmat2_mpi_fortran_ptr
(:,:)
type
(
c_ptr
)
::
tmp2_mpi_dev
,
a_mpi_dev
integer
(
kind
=
c_intptr_t
)
::
a_off
,
tmat2_off
,
tmp1_off
,
tmp2_off
...
...
@@ -534,9 +534,6 @@
check_memcpy_gpu("
elpa_invert_trm
:
tmat2_dev
to
tmat2
", successGPU)
endif
endif
#else
#error "
not
yet
implemented
"
#endif
call obj%timer%start("
mpi_communication
")
if (l_cols-l_col1+1 > 0) &
...
...
@@ -544,6 +541,18 @@
int(prow(n, nblk, np_rows),kind=MPI_KIND), int(mpi_comm_rows,kind=MPI_KIND), mpierr)
call obj%timer%stop("
mpi_communication
")
#else
tmat2_mpi_dev = transfer(tmat2_dev, tmat2_mpi_dev)
call c_f_pointer(tmat2_mpi_dev, tmat2_mpi_fortran_ptr, [???,???])
call obj%timer%start("
mpi_cuda_communication
")
if (l_cols-l_col1+1 > 0) &
call MPI_Bcast(tmat2_mpi_fortran_ptr(1,l_col1), int((l_cols-l_col1+1)*nblk,kind=MPI_KIND), &
MPI_MATH_DATATYPE_PRECISION, int(prow(n, nblk, np_rows),kind=MPI_KIND), &
int(mpi_comm_rows,kind=MPI_KIND), mpierr)
call obj%timer%stop("
mpi_cuda_communication
")
#endif
#ifndef WITH_CUDA_AWARE_MPI
if (useGPU) then
...
...
Write
Preview
Supports
Markdown
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