Install OpenMpi on windows 10

tuytoosh picture tuytoosh · Jan 10, 2018 · Viewed 15.7k times · Source

I am a computer science student and this season we have a course in MPI programming in C language. I don't have enough hard disk space to install visual studio on my computer and I have installed codeblocks, and MinGW as compiler, and I also installed Microsoft MPI to run mpi .exe code. Now I think that I need to install Open mpi to compile my code to exe and run it using MSMPI. Please correct me if I'm wrong until now :)

In OpenMPI download page we just have binary codes, and I don't know how to install binary code in windows...

Thanks all

Answer

Gilles Gouaillardet picture Gilles Gouaillardet · Jan 11, 2018

If you plan to build your code with Open MPI and then run it with Microsoft MPI, then just drop that idea ! MPI is standard in a sense that a code can be built with any MPI implementation. There is no guarantee a binary can be ran with any MPI implementation.

Open MPI is not supported under windows, but you can use cygwin and install the openmpi packages. Linux subsystem for Ubuntu is an option i never tried but that might work too.