TABLE OF CONTENTS


tests/Makefile-tests-Cray-wp [ Make files ]

[ Top ] [ Make files ]

NAME

Makefile-tests-Cray-wp

SYNOPSIS

#$Id: Makefile-Cray-wp 533 2018-03-30 14:31:26Z mexas $

FC=             ftn

PURPOSE

Build CGPACK tests Cray. Whole program optimisation.

AUTHOR

Anton Shterenlikht

COPYRIGHT

See LICENSE

SOURCE

#FFLAGS=        -eacn -Rb -I. -I$(LIBDIR) 
#FFLAGS=        -eacn -Rb -m1 -rl -I. -I$(LIBDIR) 

# This must be the same as in the library
HPL_DIR=        $(HOME)/cray_pl
FFLAGS=         -c -dm -eacFn -m3 -rl -I$(LIBDIR) -hwp -hpl=$(HPL_DIR)
LDFLAGS=        -hwp -hpl=$(HPL_DIR)

casup=          casup
LIBDIR=         $(HOME)/lib
LIBNAME=        lib$(casup).a
LIB=            -L$(LIBDIR) -l$(casup)

LOGIN_NODE_FLAGS=-h cpu=x86-64 -eacn -Rb

MODSRC=         testaux.f90
MODOBJ=         $(MODSRC:.f90=.o)
MODLST=         $(MODSRC:.f90=.lst)
CLEAN+=         $(MODLST) $(MODOBJ)

SRC= \
testAAA.f90 testAAB.f90 testAAC.f90 testAAD.f90 testAAE.f90 \
testAAF.f90 testAAG.f90 testAAH.f90 testAAI.f90 testAAJ.f90 \
testAAK.f90 testAAL.f90 testAAM.f90 testAAN.f90 testAAO.f90 \
testAAP.f90 testAAQ.f90 testAAR.f90 testAAS.f90 testAAT.f90 \
testAAU.f90 testAAV.f90 testAAW.f90 testAAX.f90 testAAY.f90 \
testAAZ.f90 \
testABA.f90 testABB.f90 testABC.f90 testABD.f90 testABE.f90 \
testABF.f90 testABG.f90 testABH.f90 testABI.f90 testABJ.f90 \
            testABL.f90 testABM.f90 testABN.f90 testABO.f90 \
testABP.f90 testABQ.f90 testABR.f90 testABS.f90 testABT.f90 \
testABU.f90 testABV.f90 testABW.f90 testABX.f90 testABY.f90 \
testABZ.f90 \
testACA.f90 testACB.f90 testACC.f90 testACD.f90 testACE.f90 \
test_hdf5.f90 test_hxi.f90 test_hxir.f90 \
testACF.f90
#testABK.f90 - this test needs "module add perftools" on Cray
OBJ=            $(SRC:.f90=.o)
LST=            $(SRC:.f90=.lst)
EXE=            $(SRC:.f90=.x)
CLEAN+=         $(OBJ) $(LST) $(EXE)

NEWSRC=         test_hxvn_co.f90 test_hxvn.f90 \
test_ising.f90 test_ising_col.f90 test_ising_co.f90 \
test_ising_perf.f90 test_ising_perf_co.f90 \
test_mpi_hxvn.f90 test_mpi_ising.f90 test_mpi_ising_perf.f90 \
future_ca_omp1.f90
NEWOBJ=         $(NEWSRC:.f90=.o)
NEWLST=         $(NEWSRC:.f90=.lst)
NEWEXE=         $(NEWSRC:.f90=.nx)
CLEAN+=         $(NEWOBJ) $(NEWLST) $(NEWEXE)

.SUFFIXES:
.SUFFIXES:      .f90 .o .x .nx

all:            old new

old:            $(EXE)
new:            $(NEWEXE)

# Extra dependencies
$(OBJ):         $(MODOBJ)
$(MODOBJ):      $(LIBDIR)/$(LIBNAME)

$(NEWOBJ):      $(LIBDIR)/$(LIBNAME)
 
.f90.o:
                $(FC) -c $< $(FFLAGS)

.o.x:
                $(FC) $< -o $@ $(MODOBJ) $(LDFLAGS) $(LIB)

.o.nx:
                $(FC) $< -o $@ $(LDFLAGS) $(LIB)

clean:
                rm -f $(CLEAN)