summaryrefslogtreecommitdiff
path: root/report/figures
diff options
context:
space:
mode:
authorConnor Moore <connor@hhmoore.ca>2026-02-05 02:59:26 -0500
committerConnor Moore <connor@hhmoore.ca>2026-02-05 02:59:26 -0500
commit91d1dbe8d7d6a20f949208b2d55f9eb635276016 (patch)
tree04990d12dcb26642a95a37aff83983ac3eacabac /report/figures
parentec3c5a4856629d626236d9b12e3077c46e907b8f (diff)
Finished initial report. Added tables.
Diffstat (limited to 'report/figures')
-rw-r--r--report/figures/plots.gnu75
1 files changed, 64 insertions, 11 deletions
diff --git a/report/figures/plots.gnu b/report/figures/plots.gnu
index ee56998..3f64e8c 100644
--- a/report/figures/plots.gnu
+++ b/report/figures/plots.gnu
@@ -1,4 +1,6 @@
set datafile separator ","
+set xtics 2000
+set xtics rotate by -90
# SERIAL, O3, GFORTRAN-SPECIFIC RESULTS (FIGURE 1)
@@ -25,6 +27,7 @@ plot 'gfortran_O3_serial.csv' using 1:($2 > 0 ? $2 : 1/0) with linespoints pt 7
# SERIAL, O3, COMPILER-DEPENDENT WALL TIMES (LOOPS ONLY) (FIGURE 2)
+set xtics 1000
#set terminal x11 1 title "Fig.2 Compiler" persist
set terminal cairolatex pdf size 5in,3in
set output "f2_compilers_scaling.tex"
@@ -41,14 +44,15 @@ set key bottom right
set grid
set xrange[70:5000]
-plot 'ifx_vs_fortran_O3_serial_results.csv' index 0 using 2:($3 > 0 ? $3 : 1/0) with linespoints pt 7 ps 0.2 title "GCC: Row loop", \
- 'ifx_vs_fortran_O3_serial_results.csv' index 0 using 2:($4 > 0 ? $4 : 1/0) with linespoints pt 7 ps 0.2 title "GCC: Col loop", \
- 'ifx_vs_fortran_O3_serial_results.csv' index 1 using 2:($3 > 0 ? $3 : 1/0) with linespoints pt 7 ps 0.2 title "IFX: Row loop", \
- 'ifx_vs_fortran_O3_serial_results.csv' index 1 using 2:($4 > 0 ? $4 : 1/0) with linespoints pt 7 ps 0.2 title "IFX: Col loop", \
+plot 'ifx_vs_gfortran_O3_serial_results.csv' index 0 using 2:($3 > 0 ? $3 : 1/0) with linespoints pt 7 ps 0.2 title "GCC: Row loop", \
+ 'ifx_vs_gfortran_O3_serial_results.csv' index 0 using 2:($4 > 0 ? $4 : 1/0) with linespoints pt 7 ps 0.2 title "GCC: Col loop", \
+ 'ifx_vs_gfortran_O3_serial_results.csv' index 1 using 2:($3 > 0 ? $3 : 1/0) with linespoints pt 7 ps 0.2 title "IFX: Row loop", \
+ 'ifx_vs_gfortran_O3_serial_results.csv' index 1 using 2:($4 > 0 ? $4 : 1/0) with linespoints pt 7 ps 0.2 title "IFX: Col loop", \
# SERIAL, O3, COMPILER-DEPENDENT WALL TIMES (MATMUL/BLAS ONLY) (FIGURE 3)
+set xtics 2000
#set terminal x11 2 title "Fig.3 Compiler" persist
set terminal cairolatex pdf size 5in,3in
set output "f3_compilers_scaling.tex"
@@ -65,14 +69,15 @@ set key bottom right
set grid
set xrange[70:15500]
-plot 'ifx_vs_fortran_O3_serial_results.csv' index 0 using 2:($5 > 0 ? $5 : 1/0) with linespoints pt 7 ps 0.2 title 'GCC: \texttt{matmul}', \
- 'ifx_vs_fortran_O3_serial_results.csv' index 0 using 2:($6 > 0 ? $6 : 1/0) with linespoints pt 7 ps 0.2 title 'GCC: OpenBLAS', \
- 'ifx_vs_fortran_O3_serial_results.csv' index 1 using 2:($5 > 0 ? $5 : 1/0) with linespoints pt 7 ps 0.2 title 'IFX: \texttt{matmul}', \
- 'ifx_vs_fortran_O3_serial_results.csv' index 1 using 2:($6 > 0 ? $6 : 1/0) with linespoints pt 7 ps 0.2 title 'IFX: MKL BLAS', \
+plot 'ifx_vs_gfortran_O3_serial_results.csv' index 0 using 2:($5 > 0 ? $5 : 1/0) with linespoints pt 7 ps 0.2 title 'GCC: \texttt{matmul}', \
+ 'ifx_vs_gfortran_O3_serial_results.csv' index 0 using 2:($6 > 0 ? $6 : 1/0) with linespoints pt 7 ps 0.2 title 'GCC: OpenBLAS', \
+ 'ifx_vs_gfortran_O3_serial_results.csv' index 1 using 2:($5 > 0 ? $5 : 1/0) with linespoints pt 7 ps 0.2 title 'IFX: \texttt{matmul}', \
+ 'ifx_vs_gfortran_O3_serial_results.csv' index 1 using 2:($6 > 0 ? $6 : 1/0) with linespoints pt 7 ps 0.2 title 'IFX: MKL BLAS', \
# PARALLEL, O3, COMPILER-DEPEDENT WALL TIMES. LOOPS ONLY (FIGURE 4)
+set xtics 1000
set terminal cairolatex pdf size 5in,3in
set output "f4_compilers_scaling.tex"
@@ -93,16 +98,14 @@ plot 'ifx_vs_gfortran_parallel_O3_results.csv' index 0 using 2:($3 > 0 ? $3 : 1/
'ifx_vs_gfortran_parallel_O3_results.csv' index 1 using 2:($3 > 0 ? $3 : 1/0) with linespoints pt 7 ps 0.2 title "IFX: Row loop", \
'ifx_vs_gfortran_parallel_O3_results.csv' index 1 using 2:($4 > 0 ? $4 : 1/0) with linespoints pt 7 ps 0.2 title "IFX: Col loop", \
-
-
# PARALLEL, O3, COMPILER-DEPENDENT WALL TIMES. MATMUL/BLAS ONLY (FIGURE 5)
-#set terminal x11 2 title "Fig.3 Compiler" persist
set terminal cairolatex pdf size 5in,3in
set output "f5_compilers_scaling.tex"
set logscale y 10
set logscale x 10
+set xtics 2000
set xlabel "Size [$N \\times N$]"
set ylabel "Wall Time [s]"
@@ -117,3 +120,53 @@ plot 'ifx_vs_gfortran_parallel_O3_results.csv' index 0 using 2:($5 > 0 ? $5 : 1/
'ifx_vs_gfortran_parallel_O3_results.csv' index 0 using 2:($6 > 0 ? $6 : 1/0) with linespoints pt 7 ps 0.2 title 'GCC: OpenBLAS', \
'ifx_vs_gfortran_parallel_O3_results.csv' index 1 using 2:($5 > 0 ? $5 : 1/0) with linespoints pt 7 ps 0.2 title 'IFX: \texttt{matmul}', \
'ifx_vs_gfortran_parallel_O3_results.csv' index 1 using 2:($6 > 0 ? $6 : 1/0) with linespoints pt 7 ps 0.2 title 'IFX: MKL BLAS', \
+
+
+# COMPILER FLAGS COMPARISON. GFORTRAN ONLY. LOOP ONLY. (FIGURE 6)
+
+#set terminal x11 persist
+set terminal cairolatex pdf size 5in,3in
+set output "f6_optflags_scaling.tex"
+
+set logscale y 10
+set logscale x 10
+set xtics 1000
+
+set xlabel "Size [$N \\times N$]"
+set ylabel "Wall Time [s]"
+
+set format y '$10^{%T}$'
+set offsets graph 0.05, graph 0.05, graph 0.05, graph 0.05
+set key bottom right
+set grid
+set xrange[70:5000]
+
+plot 'gfortran_rowloop_optflags.csv' using 1:2 with linespoints pt 7 ps 0.2 title 'GCC: O1', \
+ 'gfortran_rowloop_optflags.csv' using 1:3 with linespoints pt 7 ps 0.2 title 'GCC: O2', \
+ 'gfortran_rowloop_optflags.csv' using 1:4 with linespoints pt 7 ps 0.2 title 'GCC: O3', \
+ 'gfortran_rowloop_optflags.csv' using 1:5 with linespoints pt 7 ps 0.2 title 'GCC: Ofast', \
+
+
+# COMPILER FLAGS COMPARISON. IFX ONLY. LOOP ONLY. (FIGURE 7)
+
+#set terminal x11 persist
+set terminal cairolatex pdf size 5in,3in
+set output "f7_optflags_scaling.tex"
+
+set logscale y 10
+set logscale x 10
+set xtics 1000
+
+set xlabel "Size [$N \\times N$]"
+set ylabel "Wall Time [s]"
+
+set format y '$10^{%T}$'
+set offsets graph 0.05, graph 0.05, graph 0.05, graph 0.05
+set key bottom right
+set grid
+set xrange[70:5000]
+
+plot 'ifx_rowloop_optflags.csv' using 1:2 with linespoints pt 7 ps 0.2 title 'IFX: O1', \
+ 'ifx_rowloop_optflags.csv' using 1:3 with linespoints pt 7 ps 0.2 title 'IFX: O2', \
+ 'ifx_rowloop_optflags.csv' using 1:4 with linespoints pt 7 ps 0.2 title 'IFX: O3', \
+ 'ifx_rowloop_optflags.csv' using 1:5 with linespoints pt 7 ps 0.2 title 'IFX: Ofast', \