From ce33ca6d7afc42e840b1a948264ccdbca33fdb76 Mon Sep 17 00:00:00 2001 From: Claudio Maggioni Date: Mon, 3 Oct 2022 21:21:15 +0200 Subject: [PATCH] hw1: ex2 results from cluster --- .../matmult/timing.ps | 300 +++++++++++++++--- .../matmult/timing_basic_dgemm.data | 29 ++ .../matmult/timing_blas_dgemm.data | 29 +- .../matmult/timing_blocked_dgemm.data | 28 +- 4 files changed, 335 insertions(+), 51 deletions(-) diff --git a/Project1/project_1_maggioni_claudio/matmult/timing.ps b/Project1/project_1_maggioni_claudio/matmult/timing.ps index 2084136..1c50bb8 100644 --- a/Project1/project_1_maggioni_claudio/matmult/timing.ps +++ b/Project1/project_1_maggioni_claudio/matmult/timing.ps @@ -1,7 +1,7 @@ %!PS-Adobe-2.0 %%Title: timing.ps %%Creator: gnuplot 5.2 patchlevel 8 -%%CreationDate: Wed Sep 28 17:53:39 2022 +%%CreationDate: Mon Oct 3 21:19:18 2022 %%DocumentFonts: (atend) %%BoundingBox: 50 50 554 770 %%Orientation: Landscape @@ -483,7 +483,7 @@ SDict begin [ /Creator (gnuplot 5.2 patchlevel 8) % /Producer (gnuplot) % /Keywords () - /CreationDate (Wed Sep 28 17:53:39 2022) + /CreationDate (Mon Oct 3 21:19:18 2022) /DOCINFO pdfmark end } ifelse @@ -545,18 +545,34 @@ LCb setrgbcolor -63 0 V stroke 854 448 M -[ [(Helvetica) 140.0 0.0 true true 0 ( 1000)] +[ [(Helvetica) 140.0 0.0 true true 0 ( 100)] ] -46.7 MRshow /Helvetica findfont 140 scalefont setfont /vshift -46 def 1.000 UL LTb LCb setrgbcolor -938 1076 M +938 867 M 31 0 V 5978 0 R -31 0 V -938 1443 M +938 1111 M +31 0 V +5978 0 R +-31 0 V +938 1285 M +31 0 V +5978 0 R +-31 0 V +938 1420 M +31 0 V +5978 0 R +-31 0 V +938 1530 M +31 0 V +5978 0 R +-31 0 V +938 1623 M 31 0 V 5978 0 R -31 0 V @@ -564,23 +580,7 @@ LCb setrgbcolor 31 0 V 5978 0 R -31 0 V -938 1906 M -31 0 V -5978 0 R --31 0 V -938 2071 M -31 0 V -5978 0 R --31 0 V -938 2210 M -31 0 V -5978 0 R --31 0 V -938 2331 M -31 0 V -5978 0 R --31 0 V -938 2438 M +938 1775 M 31 0 V 5978 0 R -31 0 V @@ -588,53 +588,107 @@ stroke 0.500 UL LTa LCa setrgbcolor -938 2534 M +938 1838 M 6009 0 V stroke 1.000 UL LTb LCb setrgbcolor -938 2534 M +938 1838 M 63 0 V 5946 0 R -63 0 V stroke -854 2534 M +854 1838 M +[ [(Helvetica) 140.0 0.0 true true 0 ( 1000)] +] -46.7 MRshow +/Helvetica findfont 140 scalefont setfont +1.000 UL +LTb +LCb setrgbcolor +938 2257 M +31 0 V +5978 0 R +-31 0 V +938 2502 M +31 0 V +5978 0 R +-31 0 V +938 2675 M +31 0 V +5978 0 R +-31 0 V +938 2810 M +31 0 V +5978 0 R +-31 0 V +938 2920 M +31 0 V +5978 0 R +-31 0 V +938 3013 M +31 0 V +5978 0 R +-31 0 V +938 3094 M +31 0 V +5978 0 R +-31 0 V +938 3165 M +31 0 V +5978 0 R +-31 0 V +stroke +0.500 UL +LTa +LCa setrgbcolor +938 3229 M +6009 0 V +stroke +1.000 UL +LTb +LCb setrgbcolor +938 3229 M +63 0 V +5946 0 R +-63 0 V +stroke +854 3229 M [ [(Helvetica) 140.0 0.0 true true 0 ( 10000)] ] -46.7 MRshow /Helvetica findfont 140 scalefont setfont 1.000 UL LTb LCb setrgbcolor -938 3161 M +938 3647 M 31 0 V 5978 0 R -31 0 V -938 3529 M +938 3892 M 31 0 V 5978 0 R -31 0 V -938 3789 M +938 4066 M 31 0 V 5978 0 R -31 0 V -938 3991 M +938 4200 M 31 0 V 5978 0 R -31 0 V -938 4156 M +938 4311 M 31 0 V 5978 0 R -31 0 V -938 4296 M +938 4404 M 31 0 V 5978 0 R -31 0 V -938 4417 M +938 4484 M 31 0 V 5978 0 R -31 0 V -938 4524 M +938 4555 M 31 0 V 5978 0 R -31 0 V @@ -675,7 +729,7 @@ LCb setrgbcolor 0 -63 V stroke 938 308 M -[ [(Helvetica) 140.0 0.0 true true 0 ( 30.6)] +[ [(Helvetica) 140.0 0.0 true true 0 ( 0)] ] -46.7 MCshow /Helvetica findfont 140 scalefont setfont 1.000 UL @@ -696,7 +750,7 @@ LCb setrgbcolor 0 -63 V stroke 1689 308 M -[ [(Helvetica) 140.0 0.0 true true 0 ( 30.7)] +[ [(Helvetica) 140.0 0.0 true true 0 ( 100)] ] -46.7 MCshow /Helvetica findfont 140 scalefont setfont 1.000 UL @@ -717,7 +771,7 @@ LCb setrgbcolor 0 -63 V stroke 2440 308 M -[ [(Helvetica) 140.0 0.0 true true 0 ( 30.8)] +[ [(Helvetica) 140.0 0.0 true true 0 ( 200)] ] -46.7 MCshow /Helvetica findfont 140 scalefont setfont 1.000 UL @@ -738,7 +792,7 @@ LCb setrgbcolor 0 -63 V stroke 3191 308 M -[ [(Helvetica) 140.0 0.0 true true 0 ( 30.9)] +[ [(Helvetica) 140.0 0.0 true true 0 ( 300)] ] -46.7 MCshow /Helvetica findfont 140 scalefont setfont 1.000 UL @@ -759,7 +813,7 @@ LCb setrgbcolor 0 -63 V stroke 3943 308 M -[ [(Helvetica) 140.0 0.0 true true 0 ( 31)] +[ [(Helvetica) 140.0 0.0 true true 0 ( 400)] ] -46.7 MCshow /Helvetica findfont 140 scalefont setfont 1.000 UL @@ -780,7 +834,7 @@ LCb setrgbcolor 0 -63 V stroke 4694 308 M -[ [(Helvetica) 140.0 0.0 true true 0 ( 31.1)] +[ [(Helvetica) 140.0 0.0 true true 0 ( 500)] ] -46.7 MCshow /Helvetica findfont 140 scalefont setfont 1.000 UL @@ -803,7 +857,7 @@ LCb setrgbcolor 0 -63 V stroke 5445 308 M -[ [(Helvetica) 140.0 0.0 true true 0 ( 31.2)] +[ [(Helvetica) 140.0 0.0 true true 0 ( 600)] ] -46.7 MCshow /Helvetica findfont 140 scalefont setfont 1.000 UL @@ -826,7 +880,7 @@ LCb setrgbcolor 0 -63 V stroke 6196 308 M -[ [(Helvetica) 140.0 0.0 true true 0 ( 31.3)] +[ [(Helvetica) 140.0 0.0 true true 0 ( 700)] ] -46.7 MCshow /Helvetica findfont 140 scalefont setfont 1.000 UL @@ -847,7 +901,7 @@ LCb setrgbcolor 0 -63 V stroke 6947 308 M -[ [(Helvetica) 140.0 0.0 true true 0 ( 31.4)] +[ [(Helvetica) 140.0 0.0 true true 0 ( 800)] ] -46.7 MCshow /Helvetica findfont 140 scalefont setfont 1.000 UL @@ -906,8 +960,58 @@ LTb 0.58 0.00 0.83 C 6380 4486 M 399 0 V -3942 1253 M -3942 1253 Pls +1171 2365 M +7 -1 V +481 -108 V +8 -1 V +225 -22 V +7 -72 V +8 71 V +466 -51 V +7 -29 V +278 23 V +195 0 V +8 -472 V +7 469 V +466 -6 V +8 -69 V +7 77 V +721 -2 V +466 -5 V +7 -46 V +233 45 V +8 -473 V +954 464 V +7 -451 V +954 450 V +8 -550 V +7 546 V +1171 2365 Pls +1178 2364 Pls +1659 2256 Pls +1667 2255 Pls +1892 2233 Pls +1899 2161 Pls +1907 2232 Pls +2373 2181 Pls +2380 2152 Pls +2658 2175 Pls +2853 2175 Pls +2861 1703 Pls +2868 2172 Pls +3334 2166 Pls +3342 2097 Pls +3349 2174 Pls +4070 2172 Pls +4536 2167 Pls +4543 2121 Pls +4776 2166 Pls +4784 1693 Pls +5738 2157 Pls +5745 1706 Pls +6699 2156 Pls +6707 1606 Pls +6714 2152 Pls 6579 4486 Pls % End plot #1 % Begin plot #2 @@ -926,8 +1030,58 @@ LTb 0.00 0.62 0.45 C 6380 4346 M 399 0 V -3942 1205 M -3942 1205 Crs +1171 2307 M +7 13 V +481 34 V +8 4 V +225 4 V +7 -53 V +8 21 V +466 17 V +7 4 V +278 -3 V +195 16 V +8 -17 V +7 1 V +466 -7 V +8 23 V +7 5 V +721 -1 V +466 -24 V +7 13 V +233 9 V +8 2 V +954 -1 V +7 2 V +954 -4 V +8 -9 V +7 4 V +1171 2307 Crs +1178 2320 Crs +1659 2354 Crs +1667 2358 Crs +1892 2362 Crs +1899 2309 Crs +1907 2330 Crs +2373 2347 Crs +2380 2351 Crs +2658 2348 Crs +2853 2364 Crs +2861 2347 Crs +2868 2348 Crs +3334 2341 Crs +3342 2364 Crs +3349 2369 Crs +4070 2368 Crs +4536 2344 Crs +4543 2357 Crs +4776 2366 Crs +4784 2368 Crs +5738 2367 Crs +5745 2369 Crs +6699 2365 Crs +6707 2356 Crs +6714 2360 Crs 6579 4346 Crs % End plot #2 % Begin plot #3 @@ -946,8 +1100,58 @@ LTb 0.34 0.71 0.91 C 6380 4206 M 399 0 V -3942 3120 M -3942 3120 Star +1171 3798 M +7 71 V +481 76 V +8 -23 V +225 -32 V +7 49 V +8 -22 V +466 14 V +7 57 V +278 -14 V +195 -12 V +8 21 V +7 -22 V +466 12 V +8 35 V +7 -16 V +721 8 V +466 4 V +7 29 V +233 -47 V +8 30 V +954 1 V +7 -5 V +954 -15 V +8 41 V +7 -22 V +1171 3798 Star +1178 3869 Star +1659 3945 Star +1667 3922 Star +1892 3890 Star +1899 3939 Star +1907 3917 Star +2373 3931 Star +2380 3988 Star +2658 3974 Star +2853 3962 Star +2861 3983 Star +2868 3961 Star +3334 3973 Star +3342 4008 Star +3349 3992 Star +4070 4000 Star +4536 4004 Star +4543 4033 Star +4776 3986 Star +4784 4016 Star +5738 4017 Star +5745 4012 Star +6699 3997 Star +6707 4038 Star +6714 4016 Star 6579 4206 Star % End plot #3 2.000 UL diff --git a/Project1/project_1_maggioni_claudio/matmult/timing_basic_dgemm.data b/Project1/project_1_maggioni_claudio/matmult/timing_basic_dgemm.data index e69de29..2adf2b0 100644 --- a/Project1/project_1_maggioni_claudio/matmult/timing_basic_dgemm.data +++ b/Project1/project_1_maggioni_claudio/matmult/timing_basic_dgemm.data @@ -0,0 +1,29 @@ +#Description: Naive, three-loop dgemm. + +Size: 31 Mflop/s: 2392.32 Percentage: 6.50 +Size: 32 Mflop/s: 2389.31 Percentage: 6.49 +Size: 96 Mflop/s: 1996.82 Percentage: 5.43 +Size: 97 Mflop/s: 1995.22 Percentage: 5.42 +Size: 127 Mflop/s: 1923.52 Percentage: 5.23 +Size: 128 Mflop/s: 1707.73 Percentage: 4.64 +Size: 129 Mflop/s: 1917.74 Percentage: 5.21 +Size: 191 Mflop/s: 1763.08 Percentage: 4.79 +Size: 192 Mflop/s: 1681.61 Percentage: 4.57 +Size: 229 Mflop/s: 1746.72 Percentage: 4.75 +Size: 255 Mflop/s: 1745.99 Percentage: 4.74 +Size: 256 Mflop/s: 799.816 Percentage: 2.17 +Size: 257 Mflop/s: 1737 Percentage: 4.72 +Size: 319 Mflop/s: 1721.21 Percentage: 4.68 +Size: 320 Mflop/s: 1535.18 Percentage: 4.17 +Size: 321 Mflop/s: 1743.01 Percentage: 4.74 +Size: 417 Mflop/s: 1737.5 Percentage: 4.72 +Size: 479 Mflop/s: 1724.83 Percentage: 4.69 +Size: 480 Mflop/s: 1597.39 Percentage: 4.34 +Size: 511 Mflop/s: 1720.23 Percentage: 4.67 +Size: 512 Mflop/s: 785.527 Percentage: 2.13 +Size: 639 Mflop/s: 1694.76 Percentage: 4.61 +Size: 640 Mflop/s: 803.077 Percentage: 2.18 +Size: 767 Mflop/s: 1692.02 Percentage: 4.60 +Size: 768 Mflop/s: 680.299 Percentage: 1.85 +Size: 769 Mflop/s: 1679.99 Percentage: 4.57 +#Average percentage of Peak = 4.48494 diff --git a/Project1/project_1_maggioni_claudio/matmult/timing_blas_dgemm.data b/Project1/project_1_maggioni_claudio/matmult/timing_blas_dgemm.data index cd8720b..dee9381 100644 --- a/Project1/project_1_maggioni_claudio/matmult/timing_blas_dgemm.data +++ b/Project1/project_1_maggioni_claudio/matmult/timing_blas_dgemm.data @@ -1,4 +1,29 @@ #Description: Reference dgemm. -Size: 31 Mflop/s: 19099.4 Percentage: 51.90 -#Average percentage of Peak = 51.9005 +Size: 31 Mflop/s: 25682 Percentage: 69.79 +Size: 32 Mflop/s: 28883 Percentage: 78.49 +Size: 96 Mflop/s: 32725.3 Percentage: 88.93 +Size: 97 Mflop/s: 31538.2 Percentage: 85.70 +Size: 127 Mflop/s: 29895.3 Percentage: 81.24 +Size: 128 Mflop/s: 32447.3 Percentage: 88.17 +Size: 129 Mflop/s: 31273.9 Percentage: 84.98 +Size: 191 Mflop/s: 32026.4 Percentage: 87.03 +Size: 192 Mflop/s: 35140.4 Percentage: 95.49 +Size: 229 Mflop/s: 34375.4 Percentage: 93.41 +Size: 255 Mflop/s: 33708.5 Percentage: 91.60 +Size: 256 Mflop/s: 34891.4 Percentage: 94.81 +Size: 257 Mflop/s: 33617.2 Percentage: 91.35 +Size: 319 Mflop/s: 34283 Percentage: 93.16 +Size: 320 Mflop/s: 36365.1 Percentage: 98.82 +Size: 321 Mflop/s: 35399.5 Percentage: 96.19 +Size: 417 Mflop/s: 35893.2 Percentage: 97.54 +Size: 479 Mflop/s: 36084.1 Percentage: 98.05 +Size: 480 Mflop/s: 37868.8 Percentage:102.90 +Size: 511 Mflop/s: 35047.8 Percentage: 95.24 +Size: 512 Mflop/s: 36868 Percentage:100.18 +Size: 639 Mflop/s: 36890.8 Percentage:100.25 +Size: 640 Mflop/s: 36603 Percentage: 99.46 +Size: 767 Mflop/s: 35669.9 Percentage: 96.93 +Size: 768 Mflop/s: 38223.9 Percentage:103.87 +Size: 769 Mflop/s: 36856.3 Percentage:100.15 +#Average percentage of Peak = 92.8363 diff --git a/Project1/project_1_maggioni_claudio/matmult/timing_blocked_dgemm.data b/Project1/project_1_maggioni_claudio/matmult/timing_blocked_dgemm.data index 51b80e2..4748042 100644 --- a/Project1/project_1_maggioni_claudio/matmult/timing_blocked_dgemm.data +++ b/Project1/project_1_maggioni_claudio/matmult/timing_blocked_dgemm.data @@ -1,3 +1,29 @@ #Description: Block-based dgemm. -Size: 31 Mflop/s: 2306.44 Percentage: 6.27 +Size: 31 Mflop/s: 2174.53 Percentage: 5.91 +Size: 32 Mflop/s: 2219.23 Percentage: 6.03 +Size: 96 Mflop/s: 2347.86 Percentage: 6.38 +Size: 97 Mflop/s: 2366.05 Percentage: 6.43 +Size: 127 Mflop/s: 2380.58 Percentage: 6.47 +Size: 128 Mflop/s: 2180.15 Percentage: 5.92 +Size: 129 Mflop/s: 2257.65 Percentage: 6.13 +Size: 191 Mflop/s: 2323.3 Percentage: 6.31 +Size: 192 Mflop/s: 2338.71 Percentage: 6.36 +Size: 229 Mflop/s: 2327.57 Percentage: 6.32 +Size: 255 Mflop/s: 2389.61 Percentage: 6.49 +Size: 256 Mflop/s: 2321.28 Percentage: 6.31 +Size: 257 Mflop/s: 2327.47 Percentage: 6.32 +Size: 319 Mflop/s: 2297.83 Percentage: 6.24 +Size: 320 Mflop/s: 2386.76 Percentage: 6.49 +Size: 321 Mflop/s: 2408.12 Percentage: 6.54 +Size: 417 Mflop/s: 2405.69 Percentage: 6.54 +Size: 479 Mflop/s: 2311.13 Percentage: 6.28 +Size: 480 Mflop/s: 2359.66 Percentage: 6.41 +Size: 511 Mflop/s: 2396.08 Percentage: 6.51 +Size: 512 Mflop/s: 2403.92 Percentage: 6.53 +Size: 639 Mflop/s: 2401.71 Percentage: 6.53 +Size: 640 Mflop/s: 2408.37 Percentage: 6.54 +Size: 767 Mflop/s: 2394.15 Percentage: 6.51 +Size: 768 Mflop/s: 2358.31 Percentage: 6.41 +Size: 769 Mflop/s: 2372.9 Percentage: 6.45 +#Average percentage of Peak = 6.36064