Makefile.am 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  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. # Copyright (C) 2016 Inria
  6. #
  7. # StarPU is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU Lesser General Public License as published by
  9. # the Free Software Foundation; either version 2.1 of the License, or (at
  10. # your option) any later version.
  11. #
  12. # StarPU is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. #
  16. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  17. include $(top_srcdir)/starpu.mk
  18. if STARPU_SIMGRID
  19. STARPU_PERF_MODEL_DIR=$(abs_top_srcdir)/tools/perfmodels/sampling
  20. STARPU_HOSTNAME=mirage
  21. export STARPU_PERF_MODEL_DIR
  22. export STARPU_HOSTNAME
  23. endif
  24. SUBDIRS =
  25. AM_CFLAGS = $(HWLOC_CFLAGS) $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(STARPU_COI_CPPFLAGS) $(GLOBAL_AM_CFLAGS)
  26. LIBS = $(top_builddir)/src/@LIBSTARPU_LINK@ @LIBS@ $(FXT_LIBS)
  27. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/tools/ -I$(top_srcdir)/mpi/ -I$(top_builddir)/src -I$(top_srcdir)/src
  28. AM_LDFLAGS = @STARPU_EXPORT_DYNAMIC@ $(STARPU_COI_LDFLAGS) $(STARPU_SCIF_LDFLAGS)
  29. bin_PROGRAMS =
  30. dist_bin_SCRIPTS =
  31. dist_pkgdata_DATA = gdbinit
  32. pkgdata_perfmodels_sampling_busdir = $(datarootdir)/starpu/perfmodels/sampling/bus
  33. pkgdata_perfmodels_sampling_codeletsdir = $(datarootdir)/starpu/perfmodels/sampling/codelets/44
  34. dist_pkgdata_perfmodels_sampling_bus_DATA = \
  35. perfmodels/sampling/bus/attila.affinity \
  36. perfmodels/sampling/bus/attila.bandwidth \
  37. perfmodels/sampling/bus/attila.config \
  38. perfmodels/sampling/bus/attila.latency \
  39. perfmodels/sampling/bus/attila.platform.xml \
  40. perfmodels/sampling/bus/attila.platform.v4.xml \
  41. perfmodels/sampling/bus/idgraf.affinity \
  42. perfmodels/sampling/bus/idgraf.bandwidth \
  43. perfmodels/sampling/bus/idgraf.config \
  44. perfmodels/sampling/bus/idgraf.latency \
  45. perfmodels/sampling/bus/idgraf.platform.xml \
  46. perfmodels/sampling/bus/idgraf.platform.v4.xml \
  47. perfmodels/sampling/bus/mirage.affinity \
  48. perfmodels/sampling/bus/mirage.bandwidth \
  49. perfmodels/sampling/bus/mirage.config \
  50. perfmodels/sampling/bus/mirage.latency \
  51. perfmodels/sampling/bus/mirage.platform.xml \
  52. perfmodels/sampling/bus/mirage.platform.v4.xml \
  53. perfmodels/sampling/bus/sirocco.affinity \
  54. perfmodels/sampling/bus/sirocco.bandwidth \
  55. perfmodels/sampling/bus/sirocco.config \
  56. perfmodels/sampling/bus/sirocco.latency \
  57. perfmodels/sampling/bus/sirocco.platform.xml \
  58. perfmodels/sampling/bus/sirocco.platform.v4.xml
  59. dist_pkgdata_perfmodels_sampling_codelets_DATA = \
  60. perfmodels/sampling/codelets/44/chol_model_11.attila \
  61. perfmodels/sampling/codelets/44/chol_model_21.attila \
  62. perfmodels/sampling/codelets/44/chol_model_22.attila \
  63. perfmodels/sampling/codelets/44/cl_update.attila \
  64. perfmodels/sampling/codelets/44/save_cl_bottom.attila \
  65. perfmodels/sampling/codelets/44/save_cl_top.attila \
  66. perfmodels/sampling/codelets/44/starpu_sgemm_gemm.attila \
  67. perfmodels/sampling/codelets/44/starpu_dgemm_gemm.attila \
  68. perfmodels/sampling/codelets/44/starpu_slu_lu_model_11.attila \
  69. perfmodels/sampling/codelets/44/starpu_slu_lu_model_12.attila \
  70. perfmodels/sampling/codelets/44/starpu_slu_lu_model_21.attila \
  71. perfmodels/sampling/codelets/44/starpu_slu_lu_model_22.attila \
  72. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_11.attila \
  73. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_12.attila \
  74. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_21.attila \
  75. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_22.attila \
  76. perfmodels/sampling/codelets/44/chol_model_11.idgraf \
  77. perfmodels/sampling/codelets/44/chol_model_21.idgraf \
  78. perfmodels/sampling/codelets/44/chol_model_22.idgraf \
  79. perfmodels/sampling/codelets/44/cl_update.idgraf \
  80. perfmodels/sampling/codelets/44/save_cl_bottom.idgraf \
  81. perfmodels/sampling/codelets/44/save_cl_top.idgraf \
  82. perfmodels/sampling/codelets/44/starpu_sgemm_gemm.idgraf \
  83. perfmodels/sampling/codelets/44/starpu_dgemm_gemm.idgraf \
  84. perfmodels/sampling/codelets/44/starpu_slu_lu_model_11.idgraf \
  85. perfmodels/sampling/codelets/44/starpu_slu_lu_model_12.idgraf \
  86. perfmodels/sampling/codelets/44/starpu_slu_lu_model_21.idgraf \
  87. perfmodels/sampling/codelets/44/starpu_slu_lu_model_22.idgraf \
  88. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_11.idgraf \
  89. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_12.idgraf \
  90. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_21.idgraf \
  91. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_22.idgraf \
  92. perfmodels/sampling/codelets/44/chol_model_11.mirage \
  93. perfmodels/sampling/codelets/44/chol_model_21.mirage \
  94. perfmodels/sampling/codelets/44/chol_model_22.mirage \
  95. perfmodels/sampling/codelets/44/cl_update.mirage \
  96. perfmodels/sampling/codelets/44/save_cl_bottom.mirage \
  97. perfmodels/sampling/codelets/44/save_cl_top.mirage \
  98. perfmodels/sampling/codelets/44/starpu_sgemm_gemm.mirage \
  99. perfmodels/sampling/codelets/44/starpu_dgemm_gemm.mirage \
  100. perfmodels/sampling/codelets/44/starpu_slu_lu_model_11.mirage \
  101. perfmodels/sampling/codelets/44/starpu_slu_lu_model_12.mirage \
  102. perfmodels/sampling/codelets/44/starpu_slu_lu_model_21.mirage \
  103. perfmodels/sampling/codelets/44/starpu_slu_lu_model_22.mirage \
  104. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_11.mirage \
  105. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_12.mirage \
  106. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_21.mirage \
  107. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_22.mirage \
  108. perfmodels/sampling/codelets/44/chol_model_11.sirocco \
  109. perfmodels/sampling/codelets/44/chol_model_21.sirocco \
  110. perfmodels/sampling/codelets/44/chol_model_22.sirocco \
  111. perfmodels/sampling/codelets/44/cl_update.sirocco \
  112. perfmodels/sampling/codelets/44/save_cl_bottom.sirocco \
  113. perfmodels/sampling/codelets/44/save_cl_top.sirocco \
  114. perfmodels/sampling/codelets/44/starpu_sgemm_gemm.sirocco \
  115. perfmodels/sampling/codelets/44/starpu_dgemm_gemm.sirocco \
  116. perfmodels/sampling/codelets/44/starpu_slu_lu_model_11.sirocco \
  117. perfmodels/sampling/codelets/44/starpu_slu_lu_model_12.sirocco \
  118. perfmodels/sampling/codelets/44/starpu_slu_lu_model_21.sirocco \
  119. perfmodels/sampling/codelets/44/starpu_slu_lu_model_22.sirocco \
  120. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_11.sirocco \
  121. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_12.sirocco \
  122. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_21.sirocco \
  123. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_22.sirocco
  124. EXTRA_DIST = \
  125. dev/rename.sed \
  126. dev/rename.sh \
  127. perfmodels/README \
  128. perfmodels/sampling/codelets/tmp/mlr_init.out \
  129. valgrind/hwloc.suppr \
  130. valgrind/libc.suppr \
  131. valgrind/libgomp.suppr \
  132. valgrind/libnuma.suppr \
  133. valgrind/opencl.suppr \
  134. valgrind/openmpi.suppr \
  135. valgrind/pthread.suppr \
  136. valgrind/starpu.suppr \
  137. valgrind/valgrind.suppr \
  138. valgrind/valgrind.sh \
  139. tsan/starpu.suppr \
  140. lsan/libc.suppr \
  141. lsan/openmpi.suppr \
  142. msvc/starpu_clean.bat \
  143. msvc/starpu_open.bat \
  144. msvc/starpu_exec.bat \
  145. msvc/starpu_var.bat \
  146. msvc/starpu.sln \
  147. msvc/starpu/starpu.vcxproj
  148. CLEANFILES = *.gcno *.gcda *.linkinfo starpu_idle_microsec.log figure/* mlr_*
  149. #####################################
  150. # What to install and what to check #
  151. #####################################
  152. STARPU_TOOLS =
  153. TESTS = $(STARPU_TOOLS)
  154. if STARPU_HAVE_WINDOWS
  155. check_PROGRAMS = $(STARPU_TOOLS)
  156. else
  157. check_PROGRAMS = $(LOADER) $(STARPU_TOOLS)
  158. endif
  159. if !STARPU_HAVE_WINDOWS
  160. ## test loader program
  161. if !STARPU_CROSS_COMPILING
  162. LOADER = loader
  163. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  164. LOADER_BIN = $(abs_top_builddir)/tools/$(LOADER)
  165. loader_SOURCES = ../tests/loader.c
  166. else
  167. LOADER =
  168. LOADER_BIN = $(top_builddir)/tests/loader-cross.sh
  169. endif
  170. if STARPU_HAVE_AM111
  171. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  172. LOG_COMPILER = $(LOADER_BIN)
  173. else
  174. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  175. endif
  176. endif
  177. if STARPU_USE_FXT
  178. bin_PROGRAMS += \
  179. starpu_fxt_tool \
  180. starpu_fxt_stats \
  181. starpu_fxt_data_trace
  182. STARPU_TOOLS += \
  183. starpu_fxt_tool \
  184. starpu_fxt_stats \
  185. starpu_fxt_data_trace
  186. starpu_fxt_tool_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  187. starpu_fxt_tool_LDADD = $(FXT_LIBS)
  188. starpu_fxt_tool_LDFLAGS = $(FXT_LDFLAGS)
  189. starpu_fxt_stats_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  190. starpu_fxt_stats_LDADD = $(FXT_LIBS)
  191. starpu_fxt_stats_LDFLAGS = $(FXT_LDFLAGS)
  192. starpu_fxt_data_trace_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  193. starpu_fxt_data_trace_LDADD = $(FXT_LIBS)
  194. starpu_fxt_data_trace_LDFLAGS = $(FXT_LDFLAGS)
  195. endif
  196. bin_PROGRAMS += \
  197. starpu_perfmodel_display \
  198. starpu_perfmodel_plot \
  199. starpu_calibrate_bus \
  200. starpu_machine_display \
  201. starpu_sched_display \
  202. starpu_tasks_rec_complete \
  203. starpu_lp2paje
  204. starpu_perfmodel_plot_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  205. if STARPU_LONG_CHECK
  206. STARPU_TOOLS += \
  207. starpu_calibrate_bus
  208. endif
  209. STARPU_TOOLS += \
  210. starpu_machine_display
  211. if !STARPU_HAVE_WINDOWS
  212. STARPU_TOOLS += \
  213. starpu_perfmodel_display \
  214. starpu_perfmodel_plot
  215. endif
  216. dist_bin_SCRIPTS += \
  217. starpu_workers_activity \
  218. starpu_codelet_histo_profile \
  219. starpu_codelet_profile \
  220. starpu_paje_draw_histogram \
  221. starpu_paje_draw_histogram.R \
  222. starpu_paje_summary \
  223. starpu_paje_summary.Rmd \
  224. starpu_mlr_analysis \
  225. starpu_mlr_analysis.Rmd \
  226. starpu_paje_state_stats \
  227. starpu_trace_state_stats.py
  228. if STARPU_USE_AYUDAME2
  229. dist_bin_SCRIPTS += \
  230. starpu_temanejo2.sh
  231. dist_pkgdata_DATA += \
  232. ayudame.cfg
  233. endif
  234. if STARPU_HAVE_WINDOWS
  235. STARPU_MSVC_dir = $(bindir)
  236. nobase_STARPU_MSVC__DATA = \
  237. msvc/starpu_clean.bat \
  238. msvc/starpu_open.bat \
  239. msvc/starpu_exec.bat \
  240. msvc/starpu_var.bat \
  241. msvc/starpu.sln \
  242. msvc/starpu/starpu.vcxproj
  243. endif
  244. if STARPU_HAVE_HELP2MAN
  245. starpu_calibrate_bus.1: starpu_calibrate_bus$(EXEEXT)
  246. help2man --no-discard-stderr -N --output=$@ ./$<
  247. starpu_machine_display.1: starpu_machine_display$(EXEEXT)
  248. help2man --no-discard-stderr -N --output=$@ ./$<
  249. starpu_perfmodel_display.1: starpu_perfmodel_display$(EXEEXT)
  250. help2man --no-discard-stderr -N --output=$@ ./$<
  251. starpu_perfmodel_plot.1: starpu_perfmodel_plot$(EXEEXT)
  252. help2man --no-discard-stderr -N --output=$@ ./$<
  253. starpu_tasks_rec_complete.1: starpu_tasks_rec_complete$(EXEEXT)
  254. help2man --no-discard-stderr -N --output=$@ ./$<
  255. starpu_lp2paje.1: starpu_lp2paje$(EXEEXT)
  256. help2man --no-discard-stderr -N --output=$@ ./$<
  257. starpu_workers_activity.1: starpu_workers_activity
  258. chmod +x $<
  259. help2man --no-discard-stderr -N --output=$@ ./$<
  260. starpu_codelet_profile.1: starpu_codelet_profile
  261. chmod +x $<
  262. help2man --no-discard-stderr -N --output=$@ ./$<
  263. starpu_codelet_histo_profile.1: starpu_codelet_histo_profile
  264. chmod +x $<
  265. help2man --no-discard-stderr -N --output=$@ ./$<
  266. starpu_paje_draw_histogram.1: starpu_paje_draw_histogram
  267. chmod +x $<
  268. help2man --no-discard-stderr -N --output=$@ ./$<
  269. starpu_paje_state_stats.1: starpu_paje_state_stats
  270. chmod +x $<
  271. help2man --no-discard-stderr -N --output=$@ ./$<
  272. if STARPU_USE_FXT
  273. starpu_fxt_tool.1: starpu_fxt_tool$(EXEEXT)
  274. help2man --no-discard-stderr -N --output=$@ ./$<
  275. starpu_fxt_stats.1: starpu_fxt_stats$(EXEEXT)
  276. help2man --no-discard-stderr -N --output=$@ ./$<
  277. starpu_fxt_data_trace.1: starpu_fxt_data_trace$(EXEEXT)
  278. help2man --no-discard-stderr -N --output=$@ ./$<
  279. endif
  280. dist_man1_MANS =\
  281. starpu_calibrate_bus.1 \
  282. starpu_machine_display.1 \
  283. starpu_perfmodel_display.1 \
  284. starpu_perfmodel_plot.1 \
  285. starpu_tasks_rec_complete.1 \
  286. starpu_lp2paje.1 \
  287. starpu_workers_activity.1 \
  288. starpu_codelet_profile.1 \
  289. starpu_codelet_histo_profile.1 \
  290. starpu_paje_draw_histogram.1 \
  291. starpu_paje_state_stats.1
  292. if STARPU_USE_FXT
  293. dist_man1_MANS +=\
  294. starpu_fxt_tool.1 \
  295. starpu_fxt_stats.1 \
  296. starpu_fxt_data_trace.1
  297. endif
  298. clean-local:
  299. $(RM) $(dist_man1_MANS)
  300. endif
  301. if STARPU_SIMGRID
  302. dist_pkgdata_DATA += starpu_smpi.xslt
  303. dist_bin_SCRIPTS += starpu_smpirun
  304. endif