ms-mpi

Compile C++ MPI Code on Windows

。_饼干妹妹 提交于 2019-12-11 12:58:15
问题 I have just installed Microsoft MPI (MS-MPI) which "is a Microsoft implementation of the Message Passing Interface standard for developing and running parallel applications on the Windows platform". The site also contains a link to a featured tutorial: How to compile and run a simple MS-MPI program. The compilation there is done using Visual Studio. How to compile a C++ MPI code at the command line (without using VS)? A simple program to be compiled: #include <iostream> #include <mpi.h> int

MSMPI in-place MPI_Allreduce not working with MinGW-w64 gfortran

浪尽此生 提交于 2019-12-11 01:07:56
问题 I am trying to use the in-place MPI_Allreduce with the combination of MinGW-w64 gfortran (version 9.2 provided by MSYS64) and Microsoft MPI (version 10), call MPI_Allreduce(MPI_IN_PLACE, srcdst, n, MPI_REAL8, MPI_SUM, MPI_COMM_WORLD, ierr) The standard MPI_Allreduce (with distinct source and destination) works well, as does the in-place variant when I use C instead of Fortran. The complete test program test_allreduce.f90 is program test_allreduce use iso_fortran_env, only: real64 use mpi