Tradu articolul în română (Google Translate)

Note: The article below has been written more than 4 years ago!

#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 »)


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

Last modified on: 2018.03.26, at: 12:12.

Share on WhatsApp

Lasă un comentariu

Rules for commenters »

Puteți folosi Gravatar pentru a adăuga avatar (imagine comentarii).

Acest site folosește Akismet pentru a reduce spamul. Află cum sunt procesate datele comentariilor tale.