Linux系统下mpi 编程出现(Signal: Segmentation fault, Signal code: Address not mapped)
沉舟侧畔千帆进,病树前头万木春。这篇文章主要讲述Linux系统下mpi 编程出现:Signal: Segmentation fault, Signal code: Address not mapped相关的知识,希望能为你提供帮助。
在Ubuntu(安装了mpich和openmpi)下MPI编程时,代码没问题,但是在mpirun运行的时候出现如下问题
[ubuntu:04803] *** Process received signal *** [ubuntu:04803] Signal: Segmentation fault (11) [ubuntu:04803] Signal code: Address not mapped (1) [ubuntu:04803] Failing at address: 0x7548d0c [ubuntu:04803] [ 0] [0x86b410] [ubuntu:04803] [ 1] /lib/tls/i686/cmov/libc.so.6(fclose+0x1a0) [0x186b00] [ubuntu:04803] [ 2] ./exmpi_2(main+0x78e) [0x80492c2] [ubuntu:04803] [ 3] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x141bd6] [ubuntu:04803] [ 4] ./exmpi_2() [0x8048aa1] [ubuntu:04803] *** End of error message ***
折腾了半天,最后删掉了openmpi
sudo apt-get removelibopenmpi-dev openmpi-bin
安装mpich
sudo apt-get installlibmpich-dev openmpi-bin
【Linux系统下mpi 编程出现(Signal: Segmentation fault, Signal code: Address not mapped)】 一切搞定!!!
推荐阅读
- weexapp开发流程
- 使用Scrapy Python制作网络爬虫
- Pandas教程(Python中的DataFrame)
- 数据科学开发的前5个Python IDE
- 强化学习导论
- Python中的模糊字符串匹配
- SQL中的GROUP BY和HAVING子句
- SQL教程(如何编写更好的查询语句)
- Python机器学习(Scikit-Learn教程)