-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
82 lines (70 loc) · 5.06 KB
/
README
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
This is the first assignment in CS757 on simulation and evalutaion Ocean workload on N={1,2,4,8,16} number of threads and also compare it with serial version of the same.
*You may want to change the chunk size if you do not want to use the default chunk size. It can be changed in omp_ocean.c in "schedule(static,#chunksize)" pragma. Currently its 16.
*How to Compile:
$> make clean
$> make all
*How to Run:
serial_ocean binary will be run using the command => ./serial_ocean 18 18 10
omp_ocean binary will be run using the command => OMP_NUM_THREADS=8 ./omp_ocean 18 18 10
*For correctness, we are going with 18x18 grid over 10 timesteps. The arguments of grids are simple and are based on the sample program provided.
To check the correctness of the program, provide the following grid input configuration with xdim, ydim and timesteps mentioned above.
Input Grid:
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000
1000 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1000
1000 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1000
1000 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1000
1000 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1000
1000 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1000
1000 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1000
1000 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1000
1000 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1000
1000 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1000
1000 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1000
1000 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1000
1000 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1000
1000 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1000
1000 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1000
1000 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1000
1000 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1000
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000
Output Grid (Serial Version of Ocean):
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000
1000 936 884 849 831 823 820 819 819 819 819 820 823 831 849 884 936 1000
1000 884 789 727 694 679 675 674 674 674 674 675 679 694 727 789 884 1000
1000 849 727 647 604 586 580 578 578 578 578 580 586 604 647 727 849 1000
1000 831 694 604 557 537 530 528 528 528 528 530 537 557 604 694 831 1000
1000 823 679 586 537 516 509 507 507 507 507 509 516 537 586 679 823 1000
1000 820 675 580 530 509 502 501 501 501 501 502 509 530 580 675 820 1000
1000 819 674 578 528 507 501 500 500 500 500 501 507 528 578 674 819 1000
1000 819 674 578 528 507 501 500 500 500 500 501 507 528 578 674 819 1000
1000 819 674 578 528 507 501 500 500 500 500 501 507 528 578 674 819 1000
1000 819 674 578 528 507 501 500 500 500 500 501 507 528 578 674 819 1000
1000 820 675 580 530 509 502 501 501 501 501 502 509 530 580 675 820 1000
1000 823 679 586 537 516 509 507 507 507 507 509 516 537 586 679 823 1000
1000 831 694 604 557 537 530 528 528 528 528 530 537 557 604 694 831 1000
1000 849 727 647 604 586 580 578 578 578 578 580 586 604 647 727 849 1000
1000 884 789 727 694 679 675 674 674 674 674 675 679 694 727 789 884 1000
1000 936 884 849 831 823 820 819 819 819 819 820 823 831 849 884 936 1000
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000
Output Grid (Parallel Version of Ocean):
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000
1000 936 884 849 831 823 820 819 819 819 819 820 823 831 849 884 936 1000
1000 884 789 727 694 679 675 674 674 674 674 675 679 694 727 789 884 1000
1000 849 727 647 604 586 580 578 578 578 578 580 586 604 647 727 849 1000
1000 831 694 604 557 537 530 528 528 528 528 530 537 557 604 694 831 1000
1000 823 679 586 537 516 509 507 507 507 507 509 516 537 586 679 823 1000
1000 820 675 580 530 509 502 501 501 501 501 502 509 530 580 675 820 1000
1000 819 674 578 528 507 501 500 500 500 500 501 507 528 578 674 819 1000
1000 819 674 578 528 507 501 500 500 500 500 501 507 528 578 674 819 1000
1000 819 674 578 528 507 501 500 500 500 500 501 507 528 578 674 819 1000
1000 819 674 578 528 507 501 500 500 500 500 501 507 528 578 674 819 1000
1000 820 675 580 530 509 502 501 501 501 501 502 509 530 580 675 820 1000
1000 823 679 586 537 516 509 507 507 507 507 509 516 537 586 679 823 1000
1000 831 694 604 557 537 530 528 528 528 528 530 537 557 604 694 831 1000
1000 849 727 647 604 586 580 578 578 578 578 580 586 604 647 727 849 1000
1000 884 789 727 694 679 675 674 674 674 674 675 679 694 727 789 884 1000
1000 936 884 849 831 823 820 819 819 819 819 820 823 831 849 884 936 1000
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000
Authors:
Mishra, Achin - (mishra25@wisc.edu)
Shaikh, Wasim - (wshaikh@wisc.edu)