summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorConnor Moore <connor@hhmoore.ca>2026-01-28 23:03:54 -0500
committerConnor Moore <connor@hhmoore.ca>2026-01-28 23:03:54 -0500
commitd81191c40989de0c3809c4eade2c58ab1c44146d (patch)
treeb82792c714ea222feace2895672dcd1e57b87aaa /Makefile
parent98c8a23b00f88de5ef5d5bdb90e170066d5fd0bc (diff)
Added command line arguments for farming results. Major update. Added makefile support.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..39b5bdf
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+gnu:
+ gfortran matrixproduct.f90 -o bin/gcc.out -lblas -O3 -fopenmp
+intel:
+ ifx matrixproduct.f90 -o bin/intel.out -lblas -O3 -fopenmp -heap-arrays
+
+dir:
+ mkdir results bin
+
+tests: clean dir gnu intel
+ ./bin/gcc.out 100 100 3500 yes > results/gcc_short
+ ./bin/intel.out 100 100 3500 yes > results/intel_short
+
+ ./bin/gcc.out 3500 1000 10500 no > results/gcc_long
+ ./bin/intel.out 3500 1000 10500 no > results/gcc_long
+
+plots:
+ gnuplot -p plots.gnu
+
+clean:
+ rm -rf bin/
+ rm -rf results/