![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MPI
CCMPI
这个作者很懒,什么都没留下…
展开
-
MPI-MPI_Scatterv vector
Goal: 有一个vector, 对每个元素进行一个除法操作,然后将结果再收集到主结点。直接上程序:#include"stdafx.h"#include"mpi.h"#include"stdio.h"#include"stdlib.h"#include<iostream>#define N 20using namespace std;int main(int argc,char* ar原创 2016-02-17 23:06:51 · 2200 阅读 · 0 评论 -
Boost mpi gatherv example
#include "stdafx.h"#include <boost/mpi.hpp>#include <iostream>#include <vector>#include "VecAndMatrix.h"namespace mpi = boost::mpi;#define Nelement 17class cPoint{private: friend class boost::原创 2016-03-05 01:19:26 · 932 阅读 · 0 评论 -
Boost skeleton-content 问题
看起来boost 中skeleton-content 并没有那么好用,看下列:root试图传递一个complex 的vector给其他process:#include "stdafx.h"#include <boost/mpi.hpp>#include <boost/mpi/skeleton_and_content.hpp>#include <boost/serialization/compl转载 2016-03-08 23:02:16 · 461 阅读 · 0 评论 -
MS-MPI+boost 编译
First, the MPI should work, Before using Boost MPI, the computer should have a working MPI implementation. Boost MPI should work with any MPI implementation. The following codes can be used to test if原创 2016-02-26 03:46:20 · 2494 阅读 · 1 评论 -
Application of Boost MPI
Boost MPI provides a convenient wrapper to send/receive c++ objects.#include "stdafx.h"#include <boost/mpi.hpp>#include <iostream>#include <vector>#include <string>namespace mpi = boost::mpi;using原创 2016-02-26 05:48:05 · 539 阅读 · 0 评论 -
Boost MPI scatter
boost::mpi::scatter 可以把一个vector中的元素传递给其他所有进程。#include "stdafx.h"#include <boost/mpi.hpp>#include <boost/serialization/string.hpp>#include <vector>#include <string>#include <iostream>namespace mpi原创 2016-02-27 07:08:28 · 1179 阅读 · 0 评论 -
Boost MPI send and recv
#include "stdafx.h"#include <boost/mpi.hpp>#include <iostream>#include <vector>#include "VecAndMatrix.h"namespace mpi = boost::mpi;class cPoint{private: friend class boost::serialization::acces原创 2016-02-27 11:56:40 · 790 阅读 · 0 评论 -
boost mpi send recv-vector<class>
接上例:如果vector中元素是class,要将他们分给不同进程,程序如下:#include "stdafx.h"#include <boost/mpi.hpp>#include <iostream>#include <vector>#include "VecAndMatrix.h"namespace mpi = boost::mpi;class cPoint{private: fr原创 2016-03-01 05:12:04 · 619 阅读 · 0 评论