Skip to content
Snippets Groups Projects
Unverified Commit c00cfc79 authored by Dorian Stoll's avatar Dorian Stoll Committed by Dorian Stoll
Browse files

nas-ft: fortran: Port to meson

parent 37310e15
No related branches found
No related tags found
No related merge requests found
subdir('nas-ft')
subdir('rodinia-srad') subdir('rodinia-srad')
subdir('zellularautomat') subdir('zellularautomat')
SHELL=/bin/sh
BENCHMARK=ft
BENCHMARKU=FT
BLKFAC=32
include ../config/make.def
include ../sys/make.common
OBJS = ft.o ft_data.o ${COMMON}/${RAND}.o ${COMMON}/print_results.o \
${COMMON}/timers.o ${COMMON}/wtime.o
${PROGRAM}: config
@ver=$(VERSION); bfac=`echo $$ver|sed -e 's/^blk//' -e 's/^BLK//'`; \
if [ x$$ver != x$$bfac ] ; then \
${MAKE} BLKFAC=$${bfac:-32} exec; \
else \
${MAKE} exec; \
fi
exec: $(OBJS)
${FLINK} ${FLINKFLAGS} -o ${PROGRAM} ${OBJS} ${F_LIB}
.f90.o:
${FCOMPILE} $<
blk_par.h: FORCE
sed -e 's/=0/=$(BLKFAC)/' blk_par0.h > blk_par.h_wk
@ if ! `diff blk_par.h_wk blk_par.h > /dev/null 2>&1`; then \
mv -f blk_par.h_wk blk_par.h; else rm -f blk_par.h_wk; fi
FORCE:
ft.o: ft.f90 ft_data.o
ft_data.o: ft_data.f90 npbparams.h blk_par.h
clean:
- rm -f *.o *~ mputil* *.mod
- rm -f ft npbparams.h core blk_par.h
- if [ -d rii_files ]; then rm -r rii_files; fi
sources = [
'ft.f90',
'ft_data.f90',
'print_results.f90',
'timers.f90',
'randi8.f90',
]
dependencies = [
dependency('openmp'),
]
executable(
'nas-ft-fortran',
sources,
dependencies: dependencies,
)
subdir('fortran')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment