Académique Documents
Professionnel Documents
Culture Documents
OLEH:
2. Output
2. Output
Speedup
P/S
Matrix 500 = 0,559
Matrix 1000 = 0,551
Matrix 2000 = 0,505
Matrix 4000 = 0,553
Matrix 500 Transpose = 0,486
Matrix 1000 Transpose = 0,430
Matrix 2000 Transpose = 0,512
Matrix 4000 Transpose = 0,592
C. Program Fibunacci
1. Source Code
#include<stdio.h>
#include<omp.h>
#include<time.h>
else
y = fibP(n - 2, cut-1);
}
#pragma omp taskwait
return x + y;
}
}
int main(){
int nList[] = {45};
for(int j = 0; j < 1; j++){
for(int i = 0; i < 1; i++){
runner(nList[i], 1, 0, 0);
}
runner(45, 0, 1, 18);
runner(45, 0, 1, 19);
runner(45, 0, 1, 20);
runner(45, 0, 1, 22);
runner(45, 0, 1, 24);
runner(45, 0, 1, 28);
runner(45, 0, 4, 2);
}
}
2. Output