Skip to content

Commit

Permalink
Fix gather with SERIAL
Browse files Browse the repository at this point in the history
  • Loading branch information
sfilippone committed Nov 7, 2023
1 parent d718ef1 commit f7d2c85
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 28 deletions.
8 changes: 4 additions & 4 deletions base/modules/penv/psi_c_collective_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ subroutine psb_cgather_s(ctxt,dat,resv,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(1) = dat
#else
call psb_info(ctxt,iam,np)

Expand Down Expand Up @@ -160,7 +160,7 @@ subroutine psb_cgather_v(ctxt,dat,resv,root,mode,request)
use mpi
#endif
implicit none
#ifdef MPI_H
#ifdef MP.I_H
include 'mpif.h'
#endif
type(psb_ctxt_type), intent(in) :: ctxt
Expand All @@ -175,7 +175,7 @@ subroutine psb_cgather_v(ctxt,dat,resv,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(:) = dat(:)
#else
call psb_info(ctxt,iam,np)

Expand Down Expand Up @@ -245,7 +245,7 @@ subroutine psb_cgatherv_v(ctxt,dat,resv,szs,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(:) = dat(:)
#else
call psb_info(ctxt,iam,np)

Expand Down
8 changes: 4 additions & 4 deletions base/modules/penv/psi_d_collective_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ subroutine psb_dgather_s(ctxt,dat,resv,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(1) = dat
#else
call psb_info(ctxt,iam,np)

Expand Down Expand Up @@ -800,7 +800,7 @@ subroutine psb_dgather_v(ctxt,dat,resv,root,mode,request)
use mpi
#endif
implicit none
#ifdef MPI_H
#ifdef MP.I_H
include 'mpif.h'
#endif
type(psb_ctxt_type), intent(in) :: ctxt
Expand All @@ -815,7 +815,7 @@ subroutine psb_dgather_v(ctxt,dat,resv,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(:) = dat(:)
#else
call psb_info(ctxt,iam,np)

Expand Down Expand Up @@ -885,7 +885,7 @@ subroutine psb_dgatherv_v(ctxt,dat,resv,szs,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(:) = dat(:)
#else
call psb_info(ctxt,iam,np)

Expand Down
8 changes: 4 additions & 4 deletions base/modules/penv/psi_e_collective_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ subroutine psb_egather_s(ctxt,dat,resv,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(1) = dat
#else
call psb_info(ctxt,iam,np)

Expand Down Expand Up @@ -638,7 +638,7 @@ subroutine psb_egather_v(ctxt,dat,resv,root,mode,request)
use mpi
#endif
implicit none
#ifdef MPI_H
#ifdef MP.I_H
include 'mpif.h'
#endif
type(psb_ctxt_type), intent(in) :: ctxt
Expand All @@ -653,7 +653,7 @@ subroutine psb_egather_v(ctxt,dat,resv,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(:) = dat(:)
#else
call psb_info(ctxt,iam,np)

Expand Down Expand Up @@ -723,7 +723,7 @@ subroutine psb_egatherv_v(ctxt,dat,resv,szs,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(:) = dat(:)
#else
call psb_info(ctxt,iam,np)

Expand Down
8 changes: 4 additions & 4 deletions base/modules/penv/psi_i2_collective_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ subroutine psb_i2gather_s(ctxt,dat,resv,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(1) = dat
#else
call psb_info(ctxt,iam,np)

Expand Down Expand Up @@ -638,7 +638,7 @@ subroutine psb_i2gather_v(ctxt,dat,resv,root,mode,request)
use mpi
#endif
implicit none
#ifdef MPI_H
#ifdef MP.I_H
include 'mpif.h'
#endif
type(psb_ctxt_type), intent(in) :: ctxt
Expand All @@ -653,7 +653,7 @@ subroutine psb_i2gather_v(ctxt,dat,resv,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(:) = dat(:)
#else
call psb_info(ctxt,iam,np)

Expand Down Expand Up @@ -723,7 +723,7 @@ subroutine psb_i2gatherv_v(ctxt,dat,resv,szs,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(:) = dat(:)
#else
call psb_info(ctxt,iam,np)

Expand Down
8 changes: 4 additions & 4 deletions base/modules/penv/psi_m_collective_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ subroutine psb_mgather_s(ctxt,dat,resv,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(1) = dat
#else
call psb_info(ctxt,iam,np)

Expand Down Expand Up @@ -638,7 +638,7 @@ subroutine psb_mgather_v(ctxt,dat,resv,root,mode,request)
use mpi
#endif
implicit none
#ifdef MPI_H
#ifdef MP.I_H
include 'mpif.h'
#endif
type(psb_ctxt_type), intent(in) :: ctxt
Expand All @@ -653,7 +653,7 @@ subroutine psb_mgather_v(ctxt,dat,resv,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(:) = dat(:)
#else
call psb_info(ctxt,iam,np)

Expand Down Expand Up @@ -723,7 +723,7 @@ subroutine psb_mgatherv_v(ctxt,dat,resv,szs,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(:) = dat(:)
#else
call psb_info(ctxt,iam,np)

Expand Down
8 changes: 4 additions & 4 deletions base/modules/penv/psi_s_collective_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ subroutine psb_sgather_s(ctxt,dat,resv,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(1) = dat
#else
call psb_info(ctxt,iam,np)

Expand Down Expand Up @@ -800,7 +800,7 @@ subroutine psb_sgather_v(ctxt,dat,resv,root,mode,request)
use mpi
#endif
implicit none
#ifdef MPI_H
#ifdef MP.I_H
include 'mpif.h'
#endif
type(psb_ctxt_type), intent(in) :: ctxt
Expand All @@ -815,7 +815,7 @@ subroutine psb_sgather_v(ctxt,dat,resv,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(:) = dat(:)
#else
call psb_info(ctxt,iam,np)

Expand Down Expand Up @@ -885,7 +885,7 @@ subroutine psb_sgatherv_v(ctxt,dat,resv,szs,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(:) = dat(:)
#else
call psb_info(ctxt,iam,np)

Expand Down
8 changes: 4 additions & 4 deletions base/modules/penv/psi_z_collective_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ subroutine psb_zgather_s(ctxt,dat,resv,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(1) = dat
#else
call psb_info(ctxt,iam,np)

Expand Down Expand Up @@ -160,7 +160,7 @@ subroutine psb_zgather_v(ctxt,dat,resv,root,mode,request)
use mpi
#endif
implicit none
#ifdef MPI_H
#ifdef MP.I_H
include 'mpif.h'
#endif
type(psb_ctxt_type), intent(in) :: ctxt
Expand All @@ -175,7 +175,7 @@ subroutine psb_zgather_v(ctxt,dat,resv,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(:) = dat(:)
#else
call psb_info(ctxt,iam,np)

Expand Down Expand Up @@ -245,7 +245,7 @@ subroutine psb_zgatherv_v(ctxt,dat,resv,szs,root,mode,request)
logical :: collective_start, collective_end, collective_sync

#if defined(SERIAL_MPI)
resv(0) = dat
resv(:) = dat(:)
#else
call psb_info(ctxt,iam,np)

Expand Down

0 comments on commit f7d2c85

Please sign in to comment.