summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorConnor Moore <connor@hhmoore.ca>2026-04-07 13:16:11 -0400
committerConnor Moore <connor@hhmoore.ca>2026-04-07 13:16:11 -0400
commit99ed24a452b60e3b6c8129fbf373b367631e0882 (patch)
tree4216c41b99dde1b48daeb738e71381cdf62f5f8c /Makefile
parent7c68f03c153303be21a4c109ef858e8a80ae318b (diff)
Initial OpenMP support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bd3491f..83f9d39 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
FC = gfortran
-FFLAGS = -march=native -O3
+FFLAGS = -march=native -O3 -fopenmp
XNAME = monte_carlo.x
NPROC := $(shell nproc)
@@ -13,7 +13,7 @@ build: main.f90
$(FC) $(FFLAGS) main.f90 -o $(XNAME)
run: build
- OMP_NUM_THREADS=$(NPROC) ./$(XNAME)
+ ulimit -s unlimited && OMP_NUM_THREADS=$(NPROC) && ./$(XNAME)
plot: run
gnuplot plot.gnu