xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 8KB
    文件類型: .cpp
    金幣: 1
    下載: 0 次
    發布日期: 2021-01-07
  • 語言: C/C++
  • 標簽: open??mpi??cpp??parallel??

資源簡介

運用mpi實現奇偶排序,在不同的處理器之間通過消息傳遞完成奇偶index的數的交換,實現最終的數列排序

資源截圖

代碼片段和文件信息

//??4005?A1
//??main.cpp
//??student?name:?Yinxian?She
//??student?ID:?115010061
//??Created?by?佘胤嫻?on?2018/10/15.

//use?these?command?lines?to?compile?ane?exe?the?program:
//mpic++?4005a1.cpp?-o?4005a1.out
//mpiexec?--oversubscribe?-n?4?./4005a1.out

#include?
#include?
#include?
#include?//cannot?found??how?about?sys/malloc.h
#include?
#include?
#include?

//need?to?set?in?cpp?file?to?change?the?array?size
int?count?=?10;
int?data[10];


/*function:arraygener
?------------------------
?usage:?to?generate?the?array?with?size?of?[count];
????????all?the?elements?are?random?generated.
?why?put?it?here?
?*/
void?arraygener(){
????//srand((unsigned)?time?(NULL));
????for?(int?i?=0;?i????????data[i]?=?(int)(rand()/

評論

共有 條評論