From 7dfcc480ba1e19bd3232349fc733caef94034292 Mon Sep 17 00:00:00 2001 From: stainer_t Date: Mon, 8 Sep 2025 13:48:49 +0200 Subject: Initial commit from Polytechnique Montreal --- Ganlib/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Ganlib/Makefile (limited to 'Ganlib/Makefile') diff --git a/Ganlib/Makefile b/Ganlib/Makefile new file mode 100644 index 0000000..578c0f0 --- /dev/null +++ b/Ganlib/Makefile @@ -0,0 +1,40 @@ +#--------------------------------------------------------------------------- +# +# Makefile for executing the Ganlib non-regression tests +# Author : A. Hebert (2018-5-10) +# +#--------------------------------------------------------------------------- +# +OS = $(shell uname -s | cut -d"_" -f1) +ifneq (,$(filter $(OS),SunOS AIX)) + MAKE = gmake +endif +ifeq ($(openmp),1) + nomp = 16 +else + nomp = 0 +endif +ifeq ($(intel),1) + fcompilerSuite = intel +else + ifeq ($(nvidia),1) + fcompilerSuite = nvidia + else + ifeq ($(llvm),1) + fcompilerSuite = llvm + else + fcompilerSuite = custom + endif + endif +endif +all : + $(MAKE) -C src +clean : + $(MAKE) clean -C src +tests : + ./rganlib -c $(fcompilerSuite) -p $(nomp) -q testgan1.x2m + ./rganlib -c $(fcompilerSuite) -p $(nomp) -q testgan2.x2m + ./rganlib -c $(fcompilerSuite) -p $(nomp) -q testgan3.x2m +ifeq ($(hdf5),1) + ./rganlib -c $(fcompilerSuite) -p $(nomp) -q testgan4.x2m +endif -- cgit v1.2.3