This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h"; | |
#include <iostream> | |
#include <mpi.h> | |
#include <ctime> | |
#include <vector> | |
#include <stdio.h> | |
#include <string> | |
/* | |
1. Napisati MPI program koji pronalazi minimalnu vrednost u delu matrice reda n (n-parno) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h"; | |
#include <iostream> | |
#include <mpi.h> | |
#include <ctime> | |
#include <vector> | |
#include <stdio.h> | |
#include <string> | |
/* | |
2. Napisati MPI program koji pronalazi maksimalnu vrednost u delu matrice reda n (nparno) | |
koga čine vrste matrice sa parnim indeksom (i=0,2,4,...). Matrica je inicijalizovana |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h"; | |
#include <iostream> | |
#include <mpi.h> | |
#include <ctime> | |
#include <vector> | |
#include <stdio.h> | |
#include <string> | |
/* | |
3. Proces 0 kreira matricu reda n i šalje i-om procesu po dve kvazidijagonale matrice, obe | |
na udaljenosti i od glavne dijagonale. Proces i kreira svoju matricu tako što smešta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h"; | |
#include <iostream> | |
#include <mpi.h> | |
#include <ctime> | |
#include <vector> | |
#include <stdio.h> | |
#include <string> | |
/* | |
4. Proces 0 kreira matricu reda n i šalje i-om procesu po dve kvazidijagonale matrice, obe | |
na udaljenosti i od sporedne dijagonale. Proces i kreira svoju matricu tako što smešta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h"; | |
#include <iostream> | |
#include <mpi.h> | |
#include <ctime> | |
#include <vector> | |
#include <stdio.h> | |
#include <string> | |
/* | |
5. Napisati MPI program koji realizuje množenje matrice Amxn i matrice Bnxk, čime se | |
dobija rezultujuća matrica Cmxk. Množenje se obavlja tako što master proces šalje svakom |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h"; | |
#include <iostream> | |
#include <mpi.h> | |
#include <ctime> | |
#include <vector> | |
#include <stdio.h> | |
#include <string> | |
/* | |
6. Napisati MPI program koji realizuje množenje matrica A i B reda n, čime se dobija | |
rezultujuća matrica C. Nakon toga, u matrici C pronaći maksimalnu vrednost elemenata |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h"; | |
#include <iostream> | |
#include <mpi.h> | |
#include <ctime> | |
#include <vector> | |
#include <stdio.h> | |
#include <string> | |
/* | |
1. Napisati MPI program koji kreira komunikator koji se sastoji od dijagonalnih procesa u | |
kvadratnoj mreži procesa. Iz master procesa novog komunikatora poslati poruku svim ostalim |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h"; | |
#include <iostream> | |
#include <mpi.h> | |
#include <ctime> | |
#include <vector> | |
#include <stdio.h> | |
#include <string> | |
/* | |
2. Napisati MPI program kojim se kreira dvodimenzionalna Cartesian struktura sa n vrsta i m | |
kolona. U svakom od nxm procesa odštampati identifikatore procesa njegovog levog i desnog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h"; | |
#include <iostream> | |
#include <mpi.h> | |
#include <ctime> | |
#include <vector> | |
#include <stdio.h> | |
#include <string> | |
/* | |
3. Napisati MPI program koji kreira komunikator comm1 koji se sastoji od svih procesa sa | |
identifikatorima deljivim sa 3. Master proces (P0) svim procesima ove grupe šalje po jednu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h"; | |
#include <iostream> | |
#include <mpi.h> | |
#include <ctime> | |
#include <vector> | |
#include <stdio.h> | |
#include <string> | |
/* | |
4. Napisati MPI program kojim se kreira dvodimenzionalna Cartesian struktura sa n vrsta i m | |
kolona. Svaki od nxm procesa izračunava sumu identifikatora njegovog gornjeg i donjeg |
OlderNewer