#include «MPI h» in Linux

If you want to run a program writen in C++, and you want to have this clause at the beginning of the program:
#include «MPI h»

(details here and here), you should compile the program using the following clauses:

Program using the Message Passing Interface should be compiled by using something like mpicc main.c -o main or mpiCC main.cpp -o main. Is it your case ? Regarding the second message : you may have two implementations of the MPI standards on your computer. You may try to know more by typing which mpicc, which mpirun, mpirun –version or module avail. The implementation (openmpi or mpich2 or…) of compiler command must be the same as the command to execute the program mpirun -np 2 main.

(source & credits »)


</a

PS: Sorry for the «»instead of  < >, but AMP won’t validate otherwise.

I am a Digital Marketing freelancer. My expertise is in SEO (Search Engine Optimization) / UX (user experience) / WordPress. Co-founder of lumeaseoppc.ro (series of events on SEO & PPC) and cetd.ro (Book on branding for MDs). On a personal level, I like self-development - events, sports, healthy living, volunteering, reading, watching movies, listening to music.

No comments yet.

Leave a comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.