Page MenuHomec4science

Makefile
No OneTemporary

File Metadata

Created
Fri, Dec 13, 15:21

Makefile

EXEC=Jacobi_CCEoffload # Excutable name
# on cray
NVFC=ftn # NVHPC compiler on cray
CCE=ftn # CCE compiler on cray
NVOMPFLAGS= -O3 -static-nvidia -mp=gpu -gpu=cc60 # options for openMP with NVHPC on cray
CCEOMPFLAGS= -O3 -h omp -e Z -hmsgs -hlist=m -eo # options for openmp with CCE on cray
CUDA_HOME=$CUDATOOLKIT_HOME
CUDAFORFLAGS= -LCUDA_HOME -Mcuda=cc60,cuda11.0 -lcublas -lblas -v -Wl,-t # options for cuda fortran on cray
#
all: $(EXEC)
Jacobi_offload: Jacobi_simple.F90 jacobi_kernel.F90
$(GNUFC) $(GNUOMPFLAGS) Jacobi_simple.F90 -o Jacobi_offload
Jacobi_CCEoffload: Jacobi_simple.F90
$(CCE) $(CCEOMPFLAGS) jacobi_kernel.F90 Jacobi_simple.F90 -o Jacobi_CCEoffload
clean:
rm -f $(EXEC) Jacobi_offload Jacobi_CCEoffload *.mod *.o *~

Event Timeline