Makefile 1.7 KB
Newer Older
1 2 3 4 5 6 7 8
# Makefile for DAVID

include ../../make.inc

# location of needed modules and included files (if any)
MODFLAGS=$(MOD_FLAG). $(MOD_FLAG)../

DFLAGS=$$DFLAGMATRIX
9
LDFLAGS:=$(LDFLAGS) $(DFLAGS)
10 11 12 13 14 15 16 17 18

SRCS = test_mp_count_nodes.f90 \
       test_mp_bcast_i1.f90 \
       test_mp_bcast_i1_gpu.f90 \
       test_mp_bcast_iv.f90 \
       test_mp_bcast_iv_gpu.f90 \
       test_mp_bcast_im.f90 \
       test_mp_bcast_im_gpu.f90 \
       test_mp_bcast_it.f90 \
19
       test_mp_bcast_it_gpu.f90 \
20 21 22 23 24
       test_mp_bcast_i4d_gpu.f90 \
       test_mp_bcast_r4d_gpu.f90 \
       test_mp_bcast_c4d_gpu.f90 \
       test_mp_bcast_c5d_gpu.f90 \
       test_mp_bcast_r5d_gpu.f90 \
25
       test_mp_bcast_c6d_gpu.f90 \
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
       test_mp_bcast_iv_buffer.f90 \
       test_mp_bcast_iv_buffer_gpu.f90 \
       test_mp_bcast_lv_buffer.f90 \
       test_mp_bcast_lv_buffer_gpu.f90 \
       test_mp_bcast_rv_buffer.f90 \
       test_mp_bcast_rv_buffer_gpu.f90 \
       test_mp_max_iv_buffer_gpu.f90 \
       test_mp_max_iv_buffer.f90 \
       test_mp_max_rv_buffer.f90 \
       test_mp_max_rv_buffer_gpu.f90 \
       test_mp_min_iv_buffer_gpu.f90 \
       test_mp_min_iv_buffer.f90 \
       test_mp_min_rv_buffer.f90 \
       test_mp_min_rv_buffer_gpu.f90 \
       test_mp_sum_iv_buffer.f90 \
       test_mp_sum_rv_buffer.f90 \
       test_mp_sum_iv_buffer_gpu.f90 \
       test_mp_sum_rv_buffer_gpu.f90
44 45

# include auto generate source files. This will only work with GNU Make!
46
sinclude ./autotest.inc
47 48 49 50 51

EXECS = $(SRCS:.f90=.x)

all: common $(EXECS)

52 53 54
generate:
	python gen_tests.py

55 56 57 58 59 60 61
common: tester.o mp_world.o utils.o

%.x: %.o
	$(LD) $(LDFLAGS) $< tester.o mp_world.o utils.o -o $@ ../libutil.a


clean :
Pietro Bonfa's avatar
Pietro Bonfa committed
62
	- /bin/rm -f *.o *.a *.d *.i *~ *_tmp.f90 *.mod *.L *.x rnd_seed_*
63