Skip to content

Commit faaed64

Browse files
committed
mpif08: set s_count to right type in a few funcs
Signed-off-by: Howard Pritchard <howardp@lanl.gov>
1 parent 4194223 commit faaed64

File tree

5 files changed

+5
-23
lines changed

5 files changed

+5
-23
lines changed

ompi/mpi/fortran/use-mpi-f08/allreduce_ts.c.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ PROTOTYPE VOID allreduce(BUFFER x1, BUFFER_OUT x2, COUNT count,
2323
DATATYPE datatype, OP op, COMM comm)
2424
{
2525
int c_ierr;
26-
int c_count = OMPI_FINT_2_INT(*count);
26+
@COUNT_TYPE@ c_count = (@COUNT_TYPE@) *count;
2727
MPI_Comm c_comm = PMPI_Comm_f2c(*comm);
2828
MPI_Datatype c_type;
2929
MPI_Op c_op;

ompi/mpi/fortran/use-mpi-f08/irecv_ts.c.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ PROTOTYPE void irecv(BUFFER_OUT x, COUNT count, DATATYPE datatype,
2828
MPI_Request c_req;
2929
MPI_Comm c_comm = PMPI_Comm_f2c (*comm);
3030
void *buf = OMPI_CFI_BASE_ADDR(x);
31-
int c_count = OMPI_FINT_2_INT(*count);
31+
@COUNT_TYPE@ c_count = (@COUNT_TYPE@) *count;
3232

3333
OMPI_CFI_2_C(x, c_count, c_type, c_datatype, c_ierr);
3434
if (MPI_SUCCESS != c_ierr) {

ompi/mpi/fortran/use-mpi-f08/isend_ts.c.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ PROTOTYPE VOID isend(BUFFER x, COUNT count, DATATYPE datatype, RANK dest,
2828
MPI_Comm c_comm = PMPI_Comm_f2c (*comm);
2929

3030
void *buf = OMPI_CFI_BASE_ADDR(x);
31-
int c_count = OMPI_FINT_2_INT(*count);
31+
@COUNT_TYPE@ c_count = (@COUNT_TYPE@) *count;
3232

3333
OMPI_CFI_2_C(x, c_count, c_type, c_datatype, c_ierr);
3434
if (MPI_SUCCESS != c_ierr) {

ompi/mpi/fortran/use-mpi-f08/recv_ts.c.in

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,6 @@
2020
* $HEADER$
2121
*/
2222

23-
/*
24-
#include "ompi_config.h"
25-
26-
#include "ompi/communicator/communicator.h"
27-
#include "ompi/errhandler/errhandler.h"
28-
#include "ompi/mpi/fortran/use-mpi-f08/ts/bindings.h"
29-
#include "ompi/mpi/fortran/mpif-h/status-conversion.h"
30-
#include "ompi/mpi/fortran/base/constants.h"
31-
*/
3223

3324
PROTOTYPE VOID recv(BUFFER_OUT x, COUNT count, DATATYPE datatype,
3425
RANK source, TAG tag, COMM comm, STATUS_OUT status)
@@ -38,7 +29,7 @@ PROTOTYPE VOID recv(BUFFER_OUT x, COUNT count, DATATYPE datatype,
3829
MPI_Datatype c_datatype, c_type = PMPI_Type_f2c(*datatype);
3930
int c_ierr;
4031
void *buf = OMPI_CFI_BASE_ADDR(x);
41-
int c_count = OMPI_FINT_2_INT(*count);
32+
@COUNT_TYPE@ c_count = (@COUNT_TYPE@) *count;
4233

4334
OMPI_CFI_2_C(x, c_count, c_type, c_datatype, c_ierr);
4435
if (MPI_SUCCESS != c_ierr) {

ompi/mpi/fortran/use-mpi-f08/send_ts.c.in

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,6 @@
1919
* $HEADER$
2020
*/
2121

22-
#include "ompi_config.h"
23-
24-
#include "ompi/communicator/communicator.h"
25-
#include "ompi/errhandler/errhandler.h"
26-
#include "ompi/mpi/fortran/use-mpi-f08/ts/bindings.h"
27-
#include "ompi/mpi/fortran/base/constants.h"
28-
29-
/* void ompi_send_ts(CFI_cdesc_t* x, MPI_Fint *count, MPI_Fint *datatype,
30-
MPI_Fint *dest, MPI_Fint *tag, MPI_Fint *comm, MPI_Fint *ierr) */
3122
PROTOTYPE VOID send(BUFFER x, COUNT count, DATATYPE datatype, RANK dest,
3223
TAG tag, COMM comm)
3324
{
@@ -36,7 +27,7 @@ PROTOTYPE VOID send(BUFFER x, COUNT count, DATATYPE datatype, RANK dest,
3627
MPI_Comm c_comm = PMPI_Comm_f2c(*comm);
3728
MPI_Datatype c_datatype, c_type = PMPI_Type_f2c(*datatype);
3829
void *buf = OMPI_CFI_BASE_ADDR(x);
39-
int c_count = OMPI_FINT_2_INT(*count);
30+
@COUNT_TYPE@ c_count = (@COUNT_TYPE@) *count;
4031

4132
OMPI_CFI_2_C(x, c_count, c_type, c_datatype, c_ierr);
4233
if (MPI_SUCCESS != c_ierr) {

0 commit comments

Comments
 (0)