Hi,
I try to run my code on Zusie but having some issues.
I compile the code locally with "mpic++ -g -std=c++14 -O3 -o mpi mpi.cpp" and run it via "mpirun -n 4 ./mpi". On Zusie, I did the following:
- "mpic++ -g -std=c++14 -O3 -o mpi mpi.cpp"
-
risc47@zusie:~/exc_2> mpic++ -g std=c++14 -o test 1_mpi.cpp
If 'mpic++' is not a typo you can run the following command to lookup the package that contains the binary:
command-not-found mpic++
-
-
"gcc -g -Wall -lmpi mpirun.cpp -o mpirun", I see some errors:
-
In file included from /usr/include/c++/4.3/random:40, from 1_mpi.cpp:5:/usr/include/c++/4.3/c++0x_warning.h:36:2: error: #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.
-
- I tried "g++ -g -Wall -O3 -std=c++11 -lmpi mpirun.cpp -o mpirun"
-
I see: cc1plus: error: unrecognized command line option "-std=c++11
-
- I tried "load.ExecEnv::GnuCC_12.2" then
-
risc47@zusie:~/exc_2$ g++ -g -Wall -O3 -std=c++11 -lmpi 1_mpi.cpp -o mpirun
1_mpi.cpp:7:10: fatal error: mpi.h: No such file or directory
7 | #include <mpi.h>
| ^~~~~~~
-
It seems like the older versions can not compile the code and the GnuCC_12 module does not have MPI and I don't have permission to install it. I don't know how to fix it. Any help is appreciated.
Thanks!