Makefile.am 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2016 Université de Bordeaux
  4. # Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015 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@ $(FXT_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_EXPORT_DYNAMIC@ $(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. valgrind/libgomp.suppr \
  81. tsan/starpu.suppr \
  82. msvc/starpu_clean.bat \
  83. msvc/starpu_open.bat \
  84. msvc/starpu_exec.bat \
  85. msvc/starpu_var.bat \
  86. msvc/starpu.sln \
  87. msvc/starpu/starpu.vcxproj
  88. CLEANFILES = *.gcno *.gcda *.linkinfo starpu_idle_microsec.log
  89. #####################################
  90. # What to install and what to check #
  91. #####################################
  92. STARPU_TOOLS =
  93. TESTS = $(STARPU_TOOLS)
  94. if STARPU_HAVE_WINDOWS
  95. check_PROGRAMS = $(STARPU_TOOLS)
  96. else
  97. check_PROGRAMS = $(LOADER) $(STARPU_TOOLS)
  98. endif
  99. if !STARPU_HAVE_WINDOWS
  100. ## test loader program
  101. if !STARPU_CROSS_COMPILING
  102. LOADER = loader
  103. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  104. LOADER_BIN = $(abs_top_builddir)/tools/$(LOADER)
  105. loader_SOURCES = ../tests/loader.c
  106. else
  107. LOADER =
  108. LOADER_BIN = $(top_builddir)/tests/loader-cross.sh
  109. endif
  110. if STARPU_HAVE_AM111
  111. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  112. LOG_COMPILER = $(LOADER_BIN)
  113. else
  114. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  115. endif
  116. endif
  117. if STARPU_USE_FXT
  118. bin_PROGRAMS += \
  119. starpu_fxt_tool \
  120. starpu_fxt_stats \
  121. starpu_fxt_data_trace
  122. STARPU_TOOLS += \
  123. starpu_fxt_tool \
  124. starpu_fxt_stats \
  125. starpu_fxt_data_trace
  126. starpu_fxt_tool_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  127. starpu_fxt_tool_LDADD = $(FXT_LIBS)
  128. starpu_fxt_tool_LDFLAGS = $(FXT_LDFLAGS)
  129. starpu_fxt_stats_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  130. starpu_fxt_stats_LDADD = $(FXT_LIBS)
  131. starpu_fxt_stats_LDFLAGS = $(FXT_LDFLAGS)
  132. starpu_fxt_data_trace_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  133. starpu_fxt_data_trace_LDADD = $(FXT_LIBS)
  134. starpu_fxt_data_trace_LDFLAGS = $(FXT_LDFLAGS)
  135. endif
  136. bin_PROGRAMS += \
  137. starpu_perfmodel_display \
  138. starpu_perfmodel_plot \
  139. starpu_calibrate_bus \
  140. starpu_machine_display \
  141. starpu_lp2paje
  142. starpu_perfmodel_plot_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  143. if STARPU_LONG_CHECK
  144. STARPU_TOOLS += \
  145. starpu_calibrate_bus
  146. endif
  147. STARPU_TOOLS += \
  148. starpu_machine_display
  149. if !STARPU_HAVE_WINDOWS
  150. STARPU_TOOLS += \
  151. starpu_perfmodel_display \
  152. starpu_perfmodel_plot
  153. endif
  154. dist_bin_SCRIPTS += \
  155. starpu_workers_activity \
  156. starpu_codelet_histo_profile \
  157. starpu_codelet_profile \
  158. starpu_paje_draw_histogram \
  159. starpu_paje_draw_histogram.R \
  160. starpu_paje_state_stats \
  161. starpu_trace_state_stats.py
  162. if STARPU_HAVE_WINDOWS
  163. STARPU_MSVC_dir = $(bindir)
  164. nobase_STARPU_MSVC__DATA = \
  165. msvc/starpu_clean.bat \
  166. msvc/starpu_open.bat \
  167. msvc/starpu_exec.bat \
  168. msvc/starpu_var.bat \
  169. msvc/starpu.sln \
  170. msvc/starpu/starpu.vcxproj
  171. endif
  172. if STARPU_HAVE_HELP2MAN
  173. starpu_calibrate_bus.1: starpu_calibrate_bus$(EXEEXT)
  174. help2man --no-discard-stderr -N --output=$@ ./$<
  175. starpu_machine_display.1: starpu_machine_display$(EXEEXT)
  176. help2man --no-discard-stderr -N --output=$@ ./$<
  177. starpu_perfmodel_display.1: starpu_perfmodel_display$(EXEEXT)
  178. help2man --no-discard-stderr -N --output=$@ ./$<
  179. starpu_perfmodel_plot.1: starpu_perfmodel_plot$(EXEEXT)
  180. help2man --no-discard-stderr -N --output=$@ ./$<
  181. starpu_lp2paje.1: starpu_lp2paje$(EXEEXT)
  182. help2man --no-discard-stderr -N --output=$@ ./$<
  183. starpu_workers_activity.1: starpu_workers_activity
  184. chmod +x $<
  185. help2man --no-discard-stderr -N --output=$@ ./$<
  186. starpu_codelet_profile.1: starpu_codelet_profile
  187. chmod +x $<
  188. help2man --no-discard-stderr -N --output=$@ ./$<
  189. starpu_codelet_histo_profile.1: starpu_codelet_histo_profile
  190. chmod +x $<
  191. help2man --no-discard-stderr -N --output=$@ ./$<
  192. starpu_paje_draw_histogram.1: starpu_paje_draw_histogram
  193. chmod +x $<
  194. help2man --no-discard-stderr -N --output=$@ ./$<
  195. starpu_paje_state_stats.1: starpu_paje_state_stats
  196. chmod +x $<
  197. help2man --no-discard-stderr -N --output=$@ ./$<
  198. if STARPU_USE_FXT
  199. starpu_fxt_tool.1: starpu_fxt_tool$(EXEEXT)
  200. help2man --no-discard-stderr -N --output=$@ ./$<
  201. starpu_fxt_stats.1: starpu_fxt_stats$(EXEEXT)
  202. help2man --no-discard-stderr -N --output=$@ ./$<
  203. starpu_fxt_data_trace.1: starpu_fxt_data_trace$(EXEEXT)
  204. help2man --no-discard-stderr -N --output=$@ ./$<
  205. endif
  206. dist_man1_MANS =\
  207. starpu_calibrate_bus.1 \
  208. starpu_machine_display.1 \
  209. starpu_perfmodel_display.1 \
  210. starpu_perfmodel_plot.1 \
  211. starpu_lp2paje.1 \
  212. starpu_workers_activity.1 \
  213. starpu_codelet_profile.1 \
  214. starpu_codelet_histo_profile.1 \
  215. starpu_paje_draw_histogram.1 \
  216. starpu_paje_state_stats.1
  217. if STARPU_USE_FXT
  218. dist_man1_MANS +=\
  219. starpu_fxt_tool.1 \
  220. starpu_fxt_stats.1 \
  221. starpu_fxt_data_trace.1
  222. endif
  223. clean-local:
  224. $(RM) $(dist_man1_MANS)
  225. endif
  226. if STARPU_SIMGRID
  227. dist_pkgdata_DATA += starpu_smpi.xslt
  228. dist_bin_SCRIPTS += starpu_smpirun
  229. endif
  230. showcheck:
  231. -cat $(TEST_LOGS) /dev/null
  232. ! grep -q "ERROR: AddressSanitizer: " $(TEST_LOGS) /dev/null
  233. ! grep -q "WARNING: AddressSanitizer: " $(TEST_LOGS) /dev/null
  234. ! grep -q "ERROR: ThreadSanitizer: " $(TEST_LOGS) /dev/null
  235. ! grep -q "WARNING: ThreadSanitizer: " $(TEST_LOGS) /dev/null