Skip to content

Commit

Permalink
Add FFTW benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
samhatfield committed May 11, 2021
1 parent f181466 commit afcdc38
Show file tree
Hide file tree
Showing 3 changed files with 1,915 additions and 0 deletions.
29 changes: 29 additions & 0 deletions fftw_benchmark/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#===============================================================================
# Makefile for Lorenz '63 model used for investigating half-precision support on
# Fugaku
#
# ECMWF/RIKEN-CCS
#===============================================================================

# Set compiler to Fujitsu if not already set
ifeq ($(FORTCOMP),)
FORTCOMP := frtpx
endif

ifeq ($(FORTOPT),)
FORTOPT := "-Kfast"
endif

# Define main target
main: main.o
$(FORTCOMP) $(FORTOPT) $(FFTWF_LIB) -o $@ $^

# Define generic target for Fortran 90
%.o: %.F90
$(FORTCOMP) $(FORTOPT) $(FFTWF_LIB) -c $< -o $(basename $<).o

# Define clean task
.PHONY: clean
clean:
rm -f *.o main

Loading

0 comments on commit afcdc38

Please sign in to comment.