-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
39 lines (27 loc) · 752 Bytes
/
Copy pathmain.cpp
File metadata and controls
39 lines (27 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "headers.hpp"
int myRank;
int nbTasks;
int main(int argc, char *argv[])
{
cout.precision(2);
// 1. Initialize MPI
MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &myRank);
MPI_Comm_size(MPI_COMM_WORLD, &nbTasks);
Problem p;
//writeData(p, "benchmark/example5.txt");
int n = 18; // taille de la matrice
Tests(p, 3, n);
//writeData(p, "benchmark/exemple6.txt");
//readData(p, "benchmark/example2.txt");
// TestBLAS(p);
int m = 18, jj = 1, maxiter = 100;
double tol = 1e-18;
Matrix Vm;
Vector LmbdApp;
TestERAM(p, LmbdApp, Vm, m, jj, tol, maxiter);
// 3. Finilize MPI
MPI_Barrier(MPI_COMM_WORLD);
MPI_Finalize();
return 0;
}