Author | Message |
---|---|
ahnman341
Posts: 22
|
Posted 17:12 Feb 21, 2015 |
For lab 4 I created a file: lab4a.cpp Compiled using: >mpiCC lab4a.cpp Run using: >mpirun N a.out lab4a.cpp contains: #include <stdio.h> int main(int argc, char ** argv){ MPI_Init(&argc, &argv); MPI_Finalize(); keep getting an error after run: "It seems that [at least] one of the processes that was started with mpirun can *only* be used with MPI programs (i.e., programs that
why am i getting this error? |
Adam Berman
Posts: 19
|
Posted 17:16 Feb 21, 2015 |
You're trying to compile a cpp file with a c compiler. |
ahnman341
Posts: 22
|
Posted 17:27 Feb 21, 2015 |
i'm not sure why it's working now, but it's working now. HAHA i'm using mpiCC (make sure to capitalize the "CC") to compile cpp files. mpicc is for .c files |