From dfb236efb26bfa2643bd02317a73da3857a1ec26 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 12 Jul 2019 16:53:24 +0200 Subject: also test with -fcoarray=single --- Makefile | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5ab81d8..d13f0ab 100644 --- a/Makefile +++ b/Makefile @@ -27,18 +27,23 @@ FC = gfortran FFLAGS = -std=f2008 -Wall -pedantic -fbounds-check -fimplicit-none \ - -ffree-form -fcoarray=lib -O2 -c -LDFLAGS = -lcaf_mpi + -ffree-form -fcoarray=single -O2 -c -all : integrator +all : integrator integrator_single main.o main.mod : quadratures.mod functions.mod %.mod %.o : src/%.f90 - $(FC) $(FFLAGS) $< + $(FC) $(FFLAGS) -fcoarray=lib $< + +%.mod %_single.o : src/%.f90 + $(FC) $(FFLAGS) -fcoarray=single -o $*_single.o $< integrator : main.o quadratures.o functions.o - $(FC) $(LDFLAGS) $^ -o $@ + $(FC) -lcaf_mpi $^ -o $@ + +integrator_single : main_single.o quadratures_single.o functions_single.o + $(FC) $^ -o $@ res/1image_results : integrator run.sh ./run.sh 1 > $@ @@ -46,10 +51,10 @@ res/1image_results : integrator run.sh res/5images_results : integrator run.sh ./run.sh 5 > $@ -res/times : integrator measure_times.sh +res/times : integrator integrator_single measure_times.sh ./measure_times.sh > $@ clean : - -rm integrator *.{mod,o} + -rm integrator{,_single} *.{mod,o} .PHONY : all clean -- cgit v1.2.3