Makefile.am 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2014 Université de Bordeaux
  4. # Copyright (C) 2010, 2011, 2012, 2013, 2014 Centre National de la Recherche Scientifique
  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. EXTRA_DIST = \
  25. dev/rename.sed \
  26. dev/rename.sh \
  27. perfmodels/README \
  28. perfmodels/sampling/bus/attila.affinity \
  29. perfmodels/sampling/bus/attila.bandwidth \
  30. perfmodels/sampling/bus/attila.config \
  31. perfmodels/sampling/bus/attila.latency \
  32. perfmodels/sampling/bus/attila.platform.xml \
  33. perfmodels/sampling/bus/mirage.affinity \
  34. perfmodels/sampling/bus/mirage.bandwidth \
  35. perfmodels/sampling/bus/mirage.config \
  36. perfmodels/sampling/bus/mirage.latency \
  37. perfmodels/sampling/bus/mirage.platform.xml \
  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. valgrind/hwloc.suppr \
  71. valgrind/libnuma.suppr \
  72. valgrind/openmpi.suppr \
  73. valgrind/pthread.suppr \
  74. valgrind/starpu.suppr \
  75. msvc/starpu_clean.bat \
  76. msvc/starpu_open.bat \
  77. msvc/starpu_exec.bat \
  78. msvc/starpu_var.bat \
  79. msvc/starpu.sln \
  80. msvc/starpu/starpu.vcxproj
  81. CLEANFILES = *.gcno *.gcda *.linkinfo starpu_idle_microsec.log
  82. #####################################
  83. # What to install and what to check #
  84. #####################################
  85. STARPU_TOOLS =
  86. TESTS = $(STARPU_TOOLS)
  87. if STARPU_HAVE_WINDOWS
  88. check_PROGRAMS = $(STARPU_TOOLS)
  89. else
  90. check_PROGRAMS = $(LOADER) $(STARPU_TOOLS)
  91. endif
  92. if !STARPU_HAVE_WINDOWS
  93. ## test loader program
  94. if !STARPU_CROSS_COMPILING
  95. LOADER = loader
  96. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  97. LOADER_BIN = $(abs_top_builddir)/tools/$(LOADER)
  98. loader_SOURCES = ../tests/loader.c
  99. else
  100. LOADER =
  101. LOADER_BIN = $(top_builddir)/tests/loader-cross.sh
  102. endif
  103. if STARPU_HAVE_AM111
  104. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  105. LOG_COMPILER = $(LOADER_BIN)
  106. else
  107. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  108. endif
  109. endif
  110. if STARPU_USE_FXT
  111. bin_PROGRAMS += \
  112. starpu_fxt_tool \
  113. starpu_fxt_stats \
  114. starpu_fxt_data_trace
  115. STARPU_TOOLS += \
  116. starpu_fxt_tool \
  117. starpu_fxt_stats \
  118. starpu_fxt_data_trace
  119. starpu_fxt_tool_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  120. starpu_fxt_tool_LDADD = $(FXT_LIBS)
  121. starpu_fxt_tool_LDFLAGS = $(FXT_LDFLAGS)
  122. starpu_fxt_stats_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  123. starpu_fxt_stats_LDADD = $(FXT_LIBS)
  124. starpu_fxt_stats_LDFLAGS = $(FXT_LDFLAGS)
  125. starpu_fxt_data_trace_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  126. starpu_fxt_data_trace_LDADD = $(FXT_LIBS)
  127. starpu_fxt_data_trace_LDFLAGS = $(FXT_LDFLAGS)
  128. endif
  129. bin_PROGRAMS += \
  130. starpu_perfmodel_display \
  131. starpu_perfmodel_plot \
  132. starpu_calibrate_bus \
  133. starpu_machine_display \
  134. starpu_lp2paje
  135. starpu_perfmodel_plot_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  136. if STARPU_LONG_CHECK
  137. STARPU_TOOLS += \
  138. starpu_calibrate_bus
  139. endif
  140. STARPU_TOOLS += \
  141. starpu_machine_display
  142. if !STARPU_HAVE_WINDOWS
  143. STARPU_TOOLS += \
  144. starpu_perfmodel_display \
  145. starpu_perfmodel_plot
  146. endif
  147. dist_bin_SCRIPTS += \
  148. starpu_workers_activity \
  149. starpu_codelet_histo_profile \
  150. starpu_codelet_profile \
  151. starpu_paje_draw_histogram \
  152. starpu_paje_state_stats
  153. if STARPU_HAVE_WINDOWS
  154. STARPU_MSVC_dir = $(bindir)
  155. nobase_STARPU_MSVC__DATA = \
  156. msvc/starpu_clean.bat \
  157. msvc/starpu_open.bat \
  158. msvc/starpu_exec.bat \
  159. msvc/starpu_var.bat \
  160. msvc/starpu.sln \
  161. msvc/starpu/starpu.vcxproj
  162. endif
  163. if STARPU_HAVE_HELP2MAN
  164. starpu_calibrate_bus.1: starpu_calibrate_bus$(EXEEXT)
  165. help2man --no-discard-stderr -N --output=$@ ./$<
  166. starpu_machine_display.1: starpu_machine_display$(EXEEXT)
  167. help2man --no-discard-stderr -N --output=$@ ./$<
  168. starpu_perfmodel_display.1: starpu_perfmodel_display$(EXEEXT)
  169. help2man --no-discard-stderr -N --output=$@ ./$<
  170. starpu_perfmodel_plot.1: starpu_perfmodel_plot$(EXEEXT)
  171. help2man --no-discard-stderr -N --output=$@ ./$<
  172. starpu_lp2paje.1: starpu_lp2paje$(EXEEXT)
  173. help2man --no-discard-stderr -N --output=$@ ./$<
  174. starpu_workers_activity.1: starpu_workers_activity
  175. chmod +x $<
  176. help2man --no-discard-stderr -N --output=$@ ./$<
  177. starpu_codelet_profile.1: starpu_codelet_profile
  178. chmod +x $<
  179. help2man --no-discard-stderr -N --output=$@ ./$<
  180. starpu_codelet_histo_profile.1: starpu_codelet_histo_profile
  181. chmod +x $<
  182. help2man --no-discard-stderr -N --output=$@ ./$<
  183. starpu_paje_draw_histogram.1: starpu_paje_draw_histogram
  184. chmod +x $<
  185. help2man --no-discard-stderr -N --output=$@ ./$<
  186. starpu_paje_state_stats.1: starpu_paje_state_stats
  187. chmod +x $<
  188. help2man --no-discard-stderr -N --output=$@ ./$<
  189. if STARPU_USE_FXT
  190. starpu_fxt_tool.1: starpu_fxt_tool$(EXEEXT)
  191. help2man --no-discard-stderr -N --output=$@ ./$<
  192. starpu_fxt_stats.1: starpu_fxt_stats$(EXEEXT)
  193. help2man --no-discard-stderr -N --output=$@ ./$<
  194. starpu_fxt_data_trace.1: starpu_fxt_data_trace$(EXEEXT)
  195. help2man --no-discard-stderr -N --output=$@ ./$<
  196. endif
  197. dist_man1_MANS =\
  198. starpu_calibrate_bus.1 \
  199. starpu_machine_display.1 \
  200. starpu_perfmodel_display.1 \
  201. starpu_perfmodel_plot.1 \
  202. starpu_lp2paje.1 \
  203. starpu_workers_activity.1 \
  204. starpu_codelet_profile.1 \
  205. starpu_codelet_histo_profile.1 \
  206. starpu_paje_draw_histogram.1 \
  207. starpu_paje_state_stats.1
  208. if STARPU_USE_FXT
  209. dist_man1_MANS +=\
  210. starpu_fxt_tool.1 \
  211. starpu_fxt_stats.1 \
  212. starpu_fxt_data_trace.1
  213. endif
  214. clean-local:
  215. $(RM) $(dist_man1_MANS)
  216. endif
  217. showcheck:
  218. -cat $(TEST_LOGS) /dev/null