gpu: add nodes for initializing and clearing the device to the schedule tree
[ppcg.git] / Makefile.am
blob0bdf8e36b3ff119613edb64cc6e570c383fd3c10
1 if BUNDLED_ISL
2     MAYBE_ISL = isl
3     ISL_LA = $(top_builddir)/isl/libisl.la
4     LOCAL_ISL_LA = isl/libisl.la
5 endif
6 if BUNDLED_PET
7     MAYBE_PET = pet
8     PET_LA = $(top_builddir)/pet/libpet.la
9 endif
11 SUBDIRS = $(MAYBE_ISL) $(MAYBE_PET) .
13 FORCE:
14 isl/libisl.la: FORCE
15         cd isl; $(MAKE) $(AM_MAKEFLAGS) libisl.la
16 pet/libpet.la: FORCE
17         cd pet; $(MAKE) $(AM_MAKEFLAGS) libpet.la
19 ACLOCAL_AMFLAGS = -I m4
21 LIB_ISL = $(ISL_LA) @ISL_LIBS@
22 LIB_PET = $(PET_LA) @PET_LIBS@
24 AM_CPPFLAGS = @ISL_CFLAGS@ @PET_CFLAGS@
25 LDADD = $(LIB_PET) $(LIB_ISL)
27 bin_PROGRAMS = ppcg
28 ppcg_SOURCES = \
29         cpu.c \
30         cpu.h \
31         cuda.c \
32         cuda.h \
33         opencl.c \
34         opencl.h \
35         cuda_common.h \
36         cuda_common.c \
37         gpu.c \
38         gpu.h \
39         gpu_array_tile.c \
40         gpu_array_tile.h \
41         gpu_group.c \
42         gpu_group.h \
43         gpu_print.c \
44         gpu_print.h \
45         gpu_tree.c \
46         gpu_tree.h \
47         schedule.c \
48         schedule.h \
49         ppcg_options.c \
50         ppcg_options.h \
51         ppcg.c \
52         ppcg.h \
53         print.c \
54         print.h \
55         util.c \
56         util.h \
57         version.c
59 TESTS = @extra_tests@
60 EXTRA_TESTS = opencl_test.sh polybench_test.sh
61 TEST_EXTENSIONS = .sh
63 EXTRA_DIST = \
64         ocl_utilities.c \
65         ocl_utilities.h \
66         tests
68 dist-hook:
69         echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
71 gitversion.h: @GIT_HEAD@
72         $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@