Makefile.am 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  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, 2016 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. include $(top_srcdir)/starpu.mk
  17. SUBDIRS =
  18. AM_CFLAGS = $(HWLOC_CFLAGS) $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(STARPU_COI_CPPFLAGS) $(GLOBAL_AM_CFLAGS)
  19. LIBS = $(top_builddir)/src/@LIBSTARPU_LINK@ @LIBS@ $(FXT_LIBS)
  20. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/tools/ -I$(top_srcdir)/mpi/ -I$(top_builddir)/src -I$(top_srcdir)/src
  21. AM_LDFLAGS = @STARPU_EXPORT_DYNAMIC@ $(STARPU_COI_LDFLAGS) $(STARPU_SCIF_LDFLAGS)
  22. bin_PROGRAMS =
  23. dist_bin_SCRIPTS =
  24. dist_pkgdata_DATA = gdbinit
  25. pkgdata_perfmodels_sampling_busdir = $(datarootdir)/starpu/perfmodels/sampling/bus
  26. pkgdata_perfmodels_sampling_codeletsdir = $(datarootdir)/starpu/perfmodels/sampling/codelets/44
  27. dist_pkgdata_perfmodels_sampling_bus_DATA = \
  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/attila.platform.v4.xml \
  34. perfmodels/sampling/bus/idgraf.affinity \
  35. perfmodels/sampling/bus/idgraf.bandwidth \
  36. perfmodels/sampling/bus/idgraf.config \
  37. perfmodels/sampling/bus/idgraf.latency \
  38. perfmodels/sampling/bus/idgraf.platform.xml \
  39. perfmodels/sampling/bus/idgraf.platform.v4.xml \
  40. perfmodels/sampling/bus/mirage.affinity \
  41. perfmodels/sampling/bus/mirage.bandwidth \
  42. perfmodels/sampling/bus/mirage.config \
  43. perfmodels/sampling/bus/mirage.latency \
  44. perfmodels/sampling/bus/mirage.platform.xml \
  45. perfmodels/sampling/bus/mirage.platform.v4.xml \
  46. perfmodels/sampling/bus/sirocco.affinity \
  47. perfmodels/sampling/bus/sirocco.bandwidth \
  48. perfmodels/sampling/bus/sirocco.config \
  49. perfmodels/sampling/bus/sirocco.latency \
  50. perfmodels/sampling/bus/sirocco.platform.xml \
  51. perfmodels/sampling/bus/sirocco.platform.v4.xml
  52. dist_pkgdata_perfmodels_sampling_codelets_DATA = \
  53. perfmodels/sampling/codelets/44/chol_model_11.attila \
  54. perfmodels/sampling/codelets/44/chol_model_21.attila \
  55. perfmodels/sampling/codelets/44/chol_model_22.attila \
  56. perfmodels/sampling/codelets/44/cl_update.attila \
  57. perfmodels/sampling/codelets/44/save_cl_bottom.attila \
  58. perfmodels/sampling/codelets/44/save_cl_top.attila \
  59. perfmodels/sampling/codelets/44/starpu_sgemm_gemm.attila \
  60. perfmodels/sampling/codelets/44/starpu_dgemm_gemm.attila \
  61. perfmodels/sampling/codelets/44/starpu_slu_lu_model_11.attila \
  62. perfmodels/sampling/codelets/44/starpu_slu_lu_model_12.attila \
  63. perfmodels/sampling/codelets/44/starpu_slu_lu_model_21.attila \
  64. perfmodels/sampling/codelets/44/starpu_slu_lu_model_22.attila \
  65. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_11.attila \
  66. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_12.attila \
  67. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_21.attila \
  68. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_22.attila \
  69. perfmodels/sampling/codelets/44/chol_model_11.idgraf \
  70. perfmodels/sampling/codelets/44/chol_model_21.idgraf \
  71. perfmodels/sampling/codelets/44/chol_model_22.idgraf \
  72. perfmodels/sampling/codelets/44/cl_update.idgraf \
  73. perfmodels/sampling/codelets/44/save_cl_bottom.idgraf \
  74. perfmodels/sampling/codelets/44/save_cl_top.idgraf \
  75. perfmodels/sampling/codelets/44/starpu_sgemm_gemm.idgraf \
  76. perfmodels/sampling/codelets/44/starpu_dgemm_gemm.idgraf \
  77. perfmodels/sampling/codelets/44/starpu_slu_lu_model_11.idgraf \
  78. perfmodels/sampling/codelets/44/starpu_slu_lu_model_12.idgraf \
  79. perfmodels/sampling/codelets/44/starpu_slu_lu_model_21.idgraf \
  80. perfmodels/sampling/codelets/44/starpu_slu_lu_model_22.idgraf \
  81. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_11.idgraf \
  82. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_12.idgraf \
  83. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_21.idgraf \
  84. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_22.idgraf \
  85. perfmodels/sampling/codelets/44/chol_model_11.mirage \
  86. perfmodels/sampling/codelets/44/chol_model_21.mirage \
  87. perfmodels/sampling/codelets/44/chol_model_22.mirage \
  88. perfmodels/sampling/codelets/44/cl_update.mirage \
  89. perfmodels/sampling/codelets/44/save_cl_bottom.mirage \
  90. perfmodels/sampling/codelets/44/save_cl_top.mirage \
  91. perfmodels/sampling/codelets/44/starpu_sgemm_gemm.mirage \
  92. perfmodels/sampling/codelets/44/starpu_dgemm_gemm.mirage \
  93. perfmodels/sampling/codelets/44/starpu_slu_lu_model_11.mirage \
  94. perfmodels/sampling/codelets/44/starpu_slu_lu_model_12.mirage \
  95. perfmodels/sampling/codelets/44/starpu_slu_lu_model_21.mirage \
  96. perfmodels/sampling/codelets/44/starpu_slu_lu_model_22.mirage \
  97. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_11.mirage \
  98. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_12.mirage \
  99. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_21.mirage \
  100. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_22.mirage \
  101. perfmodels/sampling/codelets/44/chol_model_11.sirocco \
  102. perfmodels/sampling/codelets/44/chol_model_21.sirocco \
  103. perfmodels/sampling/codelets/44/chol_model_22.sirocco \
  104. perfmodels/sampling/codelets/44/cl_update.sirocco \
  105. perfmodels/sampling/codelets/44/save_cl_bottom.sirocco \
  106. perfmodels/sampling/codelets/44/save_cl_top.sirocco \
  107. perfmodels/sampling/codelets/44/starpu_sgemm_gemm.sirocco \
  108. perfmodels/sampling/codelets/44/starpu_dgemm_gemm.sirocco \
  109. perfmodels/sampling/codelets/44/starpu_slu_lu_model_11.sirocco \
  110. perfmodels/sampling/codelets/44/starpu_slu_lu_model_12.sirocco \
  111. perfmodels/sampling/codelets/44/starpu_slu_lu_model_21.sirocco \
  112. perfmodels/sampling/codelets/44/starpu_slu_lu_model_22.sirocco \
  113. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_11.sirocco \
  114. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_12.sirocco \
  115. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_21.sirocco \
  116. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_22.sirocco
  117. EXTRA_DIST = \
  118. dev/rename.sed \
  119. dev/rename.sh \
  120. perfmodels/README \
  121. valgrind/hwloc.suppr \
  122. valgrind/libc.suppr \
  123. valgrind/libgomp.suppr \
  124. valgrind/libnuma.suppr \
  125. valgrind/opencl.suppr \
  126. valgrind/openmpi.suppr \
  127. valgrind/pthread.suppr \
  128. valgrind/starpu.suppr \
  129. valgrind/valgrind.suppr \
  130. valgrind/valgrind.sh \
  131. tsan/starpu.suppr \
  132. lsan/libc.suppr \
  133. lsan/openmpi.suppr \
  134. msvc/starpu_clean.bat \
  135. msvc/starpu_open.bat \
  136. msvc/starpu_exec.bat \
  137. msvc/starpu_var.bat \
  138. msvc/starpu.sln \
  139. msvc/starpu/starpu.vcxproj
  140. CLEANFILES = *.gcno *.gcda *.linkinfo starpu_idle_microsec.log
  141. #####################################
  142. # What to install and what to check #
  143. #####################################
  144. STARPU_TOOLS =
  145. TESTS = $(STARPU_TOOLS)
  146. if STARPU_HAVE_WINDOWS
  147. check_PROGRAMS = $(STARPU_TOOLS)
  148. else
  149. check_PROGRAMS = $(LOADER) $(STARPU_TOOLS)
  150. endif
  151. if !STARPU_HAVE_WINDOWS
  152. ## test loader program
  153. if !STARPU_CROSS_COMPILING
  154. LOADER = loader
  155. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  156. LOADER_BIN = $(abs_top_builddir)/tools/$(LOADER)
  157. loader_SOURCES = ../tests/loader.c
  158. else
  159. LOADER =
  160. LOADER_BIN = $(top_builddir)/tests/loader-cross.sh
  161. endif
  162. if STARPU_HAVE_AM111
  163. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  164. LOG_COMPILER = $(LOADER_BIN)
  165. else
  166. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  167. endif
  168. endif
  169. if STARPU_USE_FXT
  170. bin_PROGRAMS += \
  171. starpu_fxt_tool \
  172. starpu_fxt_stats \
  173. starpu_fxt_data_trace
  174. STARPU_TOOLS += \
  175. starpu_fxt_tool \
  176. starpu_fxt_stats \
  177. starpu_fxt_data_trace
  178. starpu_fxt_tool_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  179. starpu_fxt_tool_LDADD = $(FXT_LIBS)
  180. starpu_fxt_tool_LDFLAGS = $(FXT_LDFLAGS)
  181. starpu_fxt_stats_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  182. starpu_fxt_stats_LDADD = $(FXT_LIBS)
  183. starpu_fxt_stats_LDFLAGS = $(FXT_LDFLAGS)
  184. starpu_fxt_data_trace_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  185. starpu_fxt_data_trace_LDADD = $(FXT_LIBS)
  186. starpu_fxt_data_trace_LDFLAGS = $(FXT_LDFLAGS)
  187. endif
  188. bin_PROGRAMS += \
  189. starpu_perfmodel_display \
  190. starpu_perfmodel_plot \
  191. starpu_calibrate_bus \
  192. starpu_machine_display \
  193. starpu_lp2paje
  194. starpu_perfmodel_plot_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  195. if STARPU_LONG_CHECK
  196. STARPU_TOOLS += \
  197. starpu_calibrate_bus
  198. endif
  199. STARPU_TOOLS += \
  200. starpu_machine_display
  201. if !STARPU_HAVE_WINDOWS
  202. STARPU_TOOLS += \
  203. starpu_perfmodel_display \
  204. starpu_perfmodel_plot
  205. endif
  206. dist_bin_SCRIPTS += \
  207. starpu_workers_activity \
  208. starpu_codelet_histo_profile \
  209. starpu_codelet_profile \
  210. starpu_paje_draw_histogram \
  211. starpu_paje_draw_histogram.R \
  212. starpu_paje_state_stats \
  213. starpu_trace_state_stats.py
  214. if STARPU_HAVE_WINDOWS
  215. STARPU_MSVC_dir = $(bindir)
  216. nobase_STARPU_MSVC__DATA = \
  217. msvc/starpu_clean.bat \
  218. msvc/starpu_open.bat \
  219. msvc/starpu_exec.bat \
  220. msvc/starpu_var.bat \
  221. msvc/starpu.sln \
  222. msvc/starpu/starpu.vcxproj
  223. endif
  224. if STARPU_HAVE_HELP2MAN
  225. starpu_calibrate_bus.1: starpu_calibrate_bus$(EXEEXT)
  226. help2man --no-discard-stderr -N --output=$@ ./$<
  227. starpu_machine_display.1: starpu_machine_display$(EXEEXT)
  228. help2man --no-discard-stderr -N --output=$@ ./$<
  229. starpu_perfmodel_display.1: starpu_perfmodel_display$(EXEEXT)
  230. help2man --no-discard-stderr -N --output=$@ ./$<
  231. starpu_perfmodel_plot.1: starpu_perfmodel_plot$(EXEEXT)
  232. help2man --no-discard-stderr -N --output=$@ ./$<
  233. starpu_lp2paje.1: starpu_lp2paje$(EXEEXT)
  234. help2man --no-discard-stderr -N --output=$@ ./$<
  235. starpu_workers_activity.1: starpu_workers_activity
  236. chmod +x $<
  237. help2man --no-discard-stderr -N --output=$@ ./$<
  238. starpu_codelet_profile.1: starpu_codelet_profile
  239. chmod +x $<
  240. help2man --no-discard-stderr -N --output=$@ ./$<
  241. starpu_codelet_histo_profile.1: starpu_codelet_histo_profile
  242. chmod +x $<
  243. help2man --no-discard-stderr -N --output=$@ ./$<
  244. starpu_paje_draw_histogram.1: starpu_paje_draw_histogram
  245. chmod +x $<
  246. help2man --no-discard-stderr -N --output=$@ ./$<
  247. starpu_paje_state_stats.1: starpu_paje_state_stats
  248. chmod +x $<
  249. help2man --no-discard-stderr -N --output=$@ ./$<
  250. if STARPU_USE_FXT
  251. starpu_fxt_tool.1: starpu_fxt_tool$(EXEEXT)
  252. help2man --no-discard-stderr -N --output=$@ ./$<
  253. starpu_fxt_stats.1: starpu_fxt_stats$(EXEEXT)
  254. help2man --no-discard-stderr -N --output=$@ ./$<
  255. starpu_fxt_data_trace.1: starpu_fxt_data_trace$(EXEEXT)
  256. help2man --no-discard-stderr -N --output=$@ ./$<
  257. endif
  258. dist_man1_MANS =\
  259. starpu_calibrate_bus.1 \
  260. starpu_machine_display.1 \
  261. starpu_perfmodel_display.1 \
  262. starpu_perfmodel_plot.1 \
  263. starpu_lp2paje.1 \
  264. starpu_workers_activity.1 \
  265. starpu_codelet_profile.1 \
  266. starpu_codelet_histo_profile.1 \
  267. starpu_paje_draw_histogram.1 \
  268. starpu_paje_state_stats.1
  269. if STARPU_USE_FXT
  270. dist_man1_MANS +=\
  271. starpu_fxt_tool.1 \
  272. starpu_fxt_stats.1 \
  273. starpu_fxt_data_trace.1
  274. endif
  275. clean-local:
  276. $(RM) $(dist_man1_MANS)
  277. endif
  278. if STARPU_SIMGRID
  279. dist_pkgdata_DATA += starpu_smpi.xslt
  280. dist_bin_SCRIPTS += starpu_smpirun
  281. endif