计算化学公社
标题:
请教:OpenMpi安装后运行报错
[打印本页]
作者Author:
limen
时间:
2023-4-27 07:48
标题:
请教:OpenMpi安装后运行报错
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
作者Author:
lynn_nj
时间:
2023-6-21 21:58
您好!请问您问题解决了吗,我也遇到这个问题了
欢迎光临 计算化学公社 (http://bbs.keinsci.com/)
Powered by Discuz! X3.3