Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fortram mpi wrappers have wrong parameter types #795

Merged
merged 1 commit into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client/src/pmpi_wrappers.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ int MPI_Init_thread(int* argc, char*** argv, int required, int* provided)
return unifyfs_mpi_init(argc, argv, required, provided);
}

void mpi_init_thread_(int required, int* provided, MPI_Fint* ierr)
void mpi_init_thread_(MPI_Fint* required, MPI_Fint* provided, MPI_Fint* ierr)
{
int argc = 0;
char** argv = NULL;
int rc = unifyfs_mpi_init(&argc, &argv, required, provided);
int rc = unifyfs_mpi_init(&argc, &argv, *((int*)required), provided);

if (NULL != ierr) {
*ierr = (MPI_Fint)rc;
Expand Down
2 changes: 1 addition & 1 deletion client/src/pmpi_wrappers.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ int unifyfs_mpi_init(int* argc, char*** argv, int required, int* provided);
int MPI_Init(int* argc, char*** argv);
int MPI_Init_thread(int* argc, char*** argv, int required, int* provided);
void mpi_init_(MPI_Fint* ierr);
void mpi_init_thread_(int required, int* provided, MPI_Fint* ierr);
void mpi_init_thread_(MPI_Fint* required, MPI_Fint* provided, MPI_Fint* ierr);

/* MPI_Finalize PMPI wrapper */
int unifyfs_mpi_finalize(void);
Expand Down
Loading