diff options
| author | stainer_t <thomas.stainer@oecd-nea.org> | 2025-09-08 13:48:49 +0200 |
|---|---|---|
| committer | stainer_t <thomas.stainer@oecd-nea.org> | 2025-09-08 13:48:49 +0200 |
| commit | 7dfcc480ba1e19bd3232349fc733caef94034292 (patch) | |
| tree | 03ee104eb8846d5cc1a981d267687a729185d3f3 /Ganlib/Makefile | |
Initial commit from Polytechnique Montreal
Diffstat (limited to 'Ganlib/Makefile')
| -rw-r--r-- | Ganlib/Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
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 |
