Linux下安装配置MPI并行计算环境
2015-03-27 13:00
302 查看
1.安装配置mpi环境可以使用mpich及openmpi。本文采用的是openmpi,安装步骤引用自:http://blog.csdn.net/hs794502825/article/details/8054148
2.环境配置好后我们新建一个hello world
运行以下任意命令都可成功编译,编译时会成功调用已安装的mpi库
mpic++ hello.cpp -o hello
mpicxx hello.cpp -o hello
3.关于mpi运行命令,如mpixx,mpic++,mpirun请自行google。
2.环境配置好后我们新建一个hello world
#include <iostream> #include<mpi.h> using namespace std; int main() { cout << "Hello World!" << endl; return 0; }
运行以下任意命令都可成功编译,编译时会成功调用已安装的mpi库
mpic++ hello.cpp -o hello
mpicxx hello.cpp -o hello
3.关于mpi运行命令,如mpixx,mpic++,mpirun请自行google。
相关文章推荐
- 在单机上安装、配置MPI 并行环境(Linux版)
- 单机上安装、配置MPI并行环境(Linux版)
- 在单机上安装、配置MPI 并行环境(Linux版)
- Linux 系统下 MPI环境的安装与配置
- MPI并行计算环境建立之一--配置前的准备工作
- MPI并行环境建立之四--mpich2在linux下的安装
- Windows环境下MPI并行计算联机测试配置
- 在联网的多台机器上安装、配置MPI 并行环境
- 在联网的多台机器上安装、配置MPI 并行环境
- Linux下MPI并行编程环境搭建配置
- 在单机上安装、配置MPI 并行环境
- Linux下MPI环境的安装配置及MPI程序的编译运行
- Linux下MPI并行环境与Eclipse配置全过程。Linux + mpich2 + Eclipse
- Linux下MPI并行编程环境搭建配置
- 在Linux系统环境下安装配置JDK常用方法
- 【ruby】【linux】CentOS上安装配置ruby开发环境
- 在linux中安装jdk及环境变量的配置
- 详解 Linux系统集群的安装与并行计算
- Linux系统环境下安装配置JDK