Makefile.am 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2015 Université de Bordeaux
  4. # Copyright (C) 2010, 2011, 2012, 2013, 2014 CNRS
  5. #
  6. # StarPU is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU Lesser General Public License as published by
  8. # the Free Software Foundation; either version 2.1 of the License, or (at
  9. # your option) any later version.
  10. #
  11. # StarPU is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. #
  15. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. SUBDIRS =
  17. AM_CFLAGS = $(HWLOC_CFLAGS) $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(STARPU_COI_CPPFLAGS) $(GLOBAL_AM_CFLAGS)
  18. LIBS = $(top_builddir)/src/@LIBSTARPU_LINK@ @LIBS@
  19. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/tools/ -I$(top_srcdir)/mpi/ -I$(top_builddir)/src -I$(top_srcdir)/src
  20. AM_LDFLAGS = $(STARPU_COI_LDFLAGS) $(STARPU_SCIF_LDFLAGS)
  21. bin_PROGRAMS =
  22. dist_bin_SCRIPTS =
  23. dist_pkgdata_DATA = gdbinit
  24. pkgdata_perfmodels_sampling_busdir = $(datarootdir)/starpu/perfmodels/sampling/bus
  25. pkgdata_perfmodels_sampling_codeletsdir = $(datarootdir)/starpu/perfmodels/sampling/codelets/44
  26. dist_pkgdata_perfmodels_sampling_bus_DATA = \
  27. perfmodels/sampling/bus/attila.affinity \
  28. perfmodels/sampling/bus/attila.bandwidth \
  29. perfmodels/sampling/bus/attila.config \
  30. perfmodels/sampling/bus/attila.latency \
  31. perfmodels/sampling/bus/attila.platform.xml \
  32. perfmodels/sampling/bus/mirage.affinity \
  33. perfmodels/sampling/bus/mirage.bandwidth \
  34. perfmodels/sampling/bus/mirage.config \
  35. perfmodels/sampling/bus/mirage.latency \
  36. perfmodels/sampling/bus/mirage.platform.xml
  37. dist_pkgdata_perfmodels_sampling_codelets_DATA = \
  38. perfmodels/sampling/codelets/44/chol_model_11.attila \
  39. perfmodels/sampling/codelets/44/chol_model_21.attila \
  40. perfmodels/sampling/codelets/44/chol_model_22.attila \
  41. perfmodels/sampling/codelets/44/cl_update.attila \
  42. perfmodels/sampling/codelets/44/save_cl_bottom.attila \
  43. perfmodels/sampling/codelets/44/save_cl_top.attila \
  44. perfmodels/sampling/codelets/44/starpu_sgemm_gemm.attila \
  45. perfmodels/sampling/codelets/44/starpu_dgemm_gemm.attila \
  46. perfmodels/sampling/codelets/44/starpu_slu_lu_model_11.attila \
  47. perfmodels/sampling/codelets/44/starpu_slu_lu_model_12.attila \
  48. perfmodels/sampling/codelets/44/starpu_slu_lu_model_21.attila \
  49. perfmodels/sampling/codelets/44/starpu_slu_lu_model_22.attila \
  50. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_11.attila \
  51. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_12.attila \
  52. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_21.attila \
  53. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_22.attila \
  54. perfmodels/sampling/codelets/44/chol_model_11.mirage \
  55. perfmodels/sampling/codelets/44/chol_model_21.mirage \
  56. perfmodels/sampling/codelets/44/chol_model_22.mirage \
  57. perfmodels/sampling/codelets/44/cl_update.mirage \
  58. perfmodels/sampling/codelets/44/save_cl_bottom.mirage \
  59. perfmodels/sampling/codelets/44/save_cl_top.mirage \
  60. perfmodels/sampling/codelets/44/starpu_sgemm_gemm.mirage \
  61. perfmodels/sampling/codelets/44/starpu_dgemm_gemm.mirage \
  62. perfmodels/sampling/codelets/44/starpu_slu_lu_model_11.mirage \
  63. perfmodels/sampling/codelets/44/starpu_slu_lu_model_12.mirage \
  64. perfmodels/sampling/codelets/44/starpu_slu_lu_model_21.mirage \
  65. perfmodels/sampling/codelets/44/starpu_slu_lu_model_22.mirage \
  66. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_11.mirage \
  67. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_12.mirage \
  68. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_21.mirage \
  69. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_22.mirage
  70. EXTRA_DIST = \
  71. dev/rename.sed \
  72. dev/rename.sh \
  73. perfmodels/README \
  74. valgrind/libc.suppr \
  75. valgrind/hwloc.suppr \
  76. valgrind/libnuma.suppr \
  77. valgrind/openmpi.suppr \
  78. valgrind/pthread.suppr \
  79. valgrind/starpu.suppr \
  80. tsan/starpu.suppr \
  81. msvc/starpu_clean.bat \
  82. msvc/starpu_open.bat \
  83. msvc/starpu_exec.bat \
  84. msvc/starpu_var.bat \
  85. msvc/starpu.sln \
  86. msvc/starpu/starpu.vcxproj
  87. CLEANFILES = *.gcno *.gcda *.linkinfo starpu_idle_microsec.log
  88. #####################################
  89. # What to install and what to check #
  90. #####################################
  91. STARPU_TOOLS =
  92. TESTS = $(STARPU_TOOLS)
  93. if STARPU_HAVE_WINDOWS
  94. check_PROGRAMS = $(STARPU_TOOLS)
  95. else
  96. check_PROGRAMS = $(LOADER) $(STARPU_TOOLS)
  97. endif
  98. if !STARPU_HAVE_WINDOWS
  99. ## test loader program
  100. if !STARPU_CROSS_COMPILING
  101. LOADER = loader
  102. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  103. LOADER_BIN = $(abs_top_builddir)/tools/$(LOADER)
  104. loader_SOURCES = ../tests/loader.c
  105. else
  106. LOADER =
  107. LOADER_BIN = $(top_builddir)/tests/loader-cross.sh
  108. endif
  109. if STARPU_HAVE_AM111
  110. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  111. LOG_COMPILER = $(LOADER_BIN)
  112. else
  113. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  114. endif
  115. endif
  116. if STARPU_USE_FXT
  117. bin_PROGRAMS += \
  118. starpu_fxt_tool \
  119. starpu_fxt_stats \
  120. starpu_fxt_data_trace
  121. STARPU_TOOLS += \
  122. starpu_fxt_tool \
  123. starpu_fxt_stats \
  124. starpu_fxt_data_trace
  125. starpu_fxt_tool_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  126. starpu_fxt_tool_LDADD = $(FXT_LIBS)
  127. starpu_fxt_tool_LDFLAGS = $(FXT_LDFLAGS)
  128. starpu_fxt_stats_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  129. starpu_fxt_stats_LDADD = $(FXT_LIBS)
  130. starpu_fxt_stats_LDFLAGS = $(FXT_LDFLAGS)
  131. starpu_fxt_data_trace_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  132. starpu_fxt_data_trace_LDADD = $(FXT_LIBS)
  133. starpu_fxt_data_trace_LDFLAGS = $(FXT_LDFLAGS)
  134. endif
  135. bin_PROGRAMS += \
  136. starpu_perfmodel_display \
  137. starpu_perfmodel_plot \
  138. starpu_calibrate_bus \
  139. starpu_machine_display \
  140. starpu_lp2paje
  141. starpu_perfmodel_plot_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  142. if STARPU_LONG_CHECK
  143. STARPU_TOOLS += \
  144. starpu_calibrate_bus
  145. endif
  146. STARPU_TOOLS += \
  147. starpu_machine_display
  148. if !STARPU_HAVE_WINDOWS
  149. STARPU_TOOLS += \
  150. starpu_perfmodel_display \
  151. starpu_perfmodel_plot
  152. endif
  153. dist_bin_SCRIPTS += \
  154. starpu_workers_activity \
  155. starpu_codelet_histo_profile \
  156. starpu_codelet_profile \
  157. starpu_paje_draw_histogram \
  158. starpu_paje_state_stats
  159. if STARPU_HAVE_WINDOWS
  160. STARPU_MSVC_dir = $(bindir)
  161. nobase_STARPU_MSVC__DATA = \
  162. msvc/starpu_clean.bat \
  163. msvc/starpu_open.bat \
  164. msvc/starpu_exec.bat \
  165. msvc/starpu_var.bat \
  166. msvc/starpu.sln \
  167. msvc/starpu/starpu.vcxproj
  168. endif
  169. if STARPU_HAVE_HELP2MAN
  170. starpu_calibrate_bus.1: starpu_calibrate_bus$(EXEEXT)
  171. help2man --no-discard-stderr -N --output=$@ ./$<
  172. starpu_machine_display.1: starpu_machine_display$(EXEEXT)
  173. help2man --no-discard-stderr -N --output=$@ ./$<
  174. starpu_perfmodel_display.1: starpu_perfmodel_display$(EXEEXT)
  175. help2man --no-discard-stderr -N --output=$@ ./$<
  176. starpu_perfmodel_plot.1: starpu_perfmodel_plot$(EXEEXT)
  177. help2man --no-discard-stderr -N --output=$@ ./$<
  178. starpu_lp2paje.1: starpu_lp2paje$(EXEEXT)
  179. help2man --no-discard-stderr -N --output=$@ ./$<
  180. starpu_workers_activity.1: starpu_workers_activity
  181. chmod +x $<
  182. help2man --no-discard-stderr -N --output=$@ ./$<
  183. starpu_codelet_profile.1: starpu_codelet_profile
  184. chmod +x $<
  185. help2man --no-discard-stderr -N --output=$@ ./$<
  186. starpu_codelet_histo_profile.1: starpu_codelet_histo_profile
  187. chmod +x $<
  188. help2man --no-discard-stderr -N --output=$@ ./$<
  189. starpu_paje_draw_histogram.1: starpu_paje_draw_histogram
  190. chmod +x $<
  191. help2man --no-discard-stderr -N --output=$@ ./$<
  192. starpu_paje_state_stats.1: starpu_paje_state_stats
  193. chmod +x $<
  194. help2man --no-discard-stderr -N --output=$@ ./$<
  195. if STARPU_USE_FXT
  196. starpu_fxt_tool.1: starpu_fxt_tool$(EXEEXT)
  197. help2man --no-discard-stderr -N --output=$@ ./$<
  198. starpu_fxt_stats.1: starpu_fxt_stats$(EXEEXT)
  199. help2man --no-discard-stderr -N --output=$@ ./$<
  200. starpu_fxt_data_trace.1: starpu_fxt_data_trace$(EXEEXT)
  201. help2man --no-discard-stderr -N --output=$@ ./$<
  202. endif
  203. dist_man1_MANS =\
  204. starpu_calibrate_bus.1 \
  205. starpu_machine_display.1 \
  206. starpu_perfmodel_display.1 \
  207. starpu_perfmodel_plot.1 \
  208. starpu_lp2paje.1 \
  209. starpu_workers_activity.1 \
  210. starpu_codelet_profile.1 \
  211. starpu_codelet_histo_profile.1 \
  212. starpu_paje_draw_histogram.1 \
  213. starpu_paje_state_stats.1
  214. if STARPU_USE_FXT
  215. dist_man1_MANS +=\
  216. starpu_fxt_tool.1 \
  217. starpu_fxt_stats.1 \
  218. starpu_fxt_data_trace.1
  219. endif
  220. clean-local:
  221. $(RM) $(dist_man1_MANS)
  222. endif
  223. if STARPU_SIMGRID
  224. dist_pkgdata_DATA += starpu_smpi.xslt
  225. dist_bin_SCRIPTS += starpu_smpirun
  226. endif
  227. showcheck:
  228. -cat $(TEST_LOGS) /dev/null
  229. ! grep -q " runtime error: " $(TEST_LOGS) /dev/null