|
make[1]: 进入目录“/home/limen/OPEN-MPI/openmpi-4.1.1/examples”
make[2]: 进入目录“/home/limen/OPEN-MPI/openmpi-4.1.1/examples”
mpic++ -g hello_cxx.cc -o hello_cxx
hello_cxx.cc: In function ‘int main(int, char**)’:
hello_cxx.cc:25:5: error: ‘MPI’ has not been declared
25 | MPI::Init();
| ^~~
hello_cxx.cc:26:12: error: ‘MPI’ has not been declared
26 | rank = MPI::COMM_WORLD.Get_rank();
| ^~~
hello_cxx.cc:27:12: error: ‘MPI’ has not been declared
27 | size = MPI::COMM_WORLD.Get_size();
| ^~~
hello_cxx.cc:31:5: error: ‘MPI’ has not been declared
31 | MPI::Finalize();
| ^~~
make[2]: *** [Makefile:140:hello_cxx] 错误 1
make[2]: 离开目录“/home/limen/OPEN-MPI/openmpi-4.1.1/examples”
make[1]: *** [Makefile:89:mpi] 错误 2
make[1]: 离开目录“/home/limen/OPEN-MPI/openmpi-4.1.1/examples”
make: *** [Makefile:79:all] 错误 2
|
|