Makefile.am 8.7 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, 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/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. dist_pkgdata_perfmodels_sampling_codelets_DATA = \
  39. perfmodels/sampling/codelets/44/chol_model_11.attila \
  40. perfmodels/sampling/codelets/44/chol_model_21.attila \
  41. perfmodels/sampling/codelets/44/chol_model_22.attila \
  42. perfmodels/sampling/codelets/44/cl_update.attila \
  43. perfmodels/sampling/codelets/44/save_cl_bottom.attila \
  44. perfmodels/sampling/codelets/44/save_cl_top.attila \
  45. perfmodels/sampling/codelets/44/starpu_sgemm_gemm.attila \
  46. perfmodels/sampling/codelets/44/starpu_dgemm_gemm.attila \
  47. perfmodels/sampling/codelets/44/starpu_slu_lu_model_11.attila \
  48. perfmodels/sampling/codelets/44/starpu_slu_lu_model_12.attila \
  49. perfmodels/sampling/codelets/44/starpu_slu_lu_model_21.attila \
  50. perfmodels/sampling/codelets/44/starpu_slu_lu_model_22.attila \
  51. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_11.attila \
  52. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_12.attila \
  53. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_21.attila \
  54. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_22.attila \
  55. perfmodels/sampling/codelets/44/chol_model_11.mirage \
  56. perfmodels/sampling/codelets/44/chol_model_21.mirage \
  57. perfmodels/sampling/codelets/44/chol_model_22.mirage \
  58. perfmodels/sampling/codelets/44/cl_update.mirage \
  59. perfmodels/sampling/codelets/44/save_cl_bottom.mirage \
  60. perfmodels/sampling/codelets/44/save_cl_top.mirage \
  61. perfmodels/sampling/codelets/44/starpu_sgemm_gemm.mirage \
  62. perfmodels/sampling/codelets/44/starpu_dgemm_gemm.mirage \
  63. perfmodels/sampling/codelets/44/starpu_slu_lu_model_11.mirage \
  64. perfmodels/sampling/codelets/44/starpu_slu_lu_model_12.mirage \
  65. perfmodels/sampling/codelets/44/starpu_slu_lu_model_21.mirage \
  66. perfmodels/sampling/codelets/44/starpu_slu_lu_model_22.mirage \
  67. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_11.mirage \
  68. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_12.mirage \
  69. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_21.mirage \
  70. perfmodels/sampling/codelets/44/starpu_dlu_lu_model_22.mirage
  71. EXTRA_DIST = \
  72. dev/rename.sed \
  73. dev/rename.sh \
  74. perfmodels/README \
  75. valgrind/hwloc.suppr \
  76. valgrind/libc.suppr \
  77. valgrind/libgomp.suppr \
  78. valgrind/libnuma.suppr \
  79. valgrind/opencl.suppr \
  80. valgrind/openmpi.suppr \
  81. valgrind/pthread.suppr \
  82. valgrind/starpu.suppr \
  83. valgrind/valgrind.suppr \
  84. valgrind/valgrind.sh \
  85. tsan/starpu.suppr \
  86. lsan/libc.suppr \
  87. lsan/openmpi.suppr \
  88. msvc/starpu_clean.bat \
  89. msvc/starpu_open.bat \
  90. msvc/starpu_exec.bat \
  91. msvc/starpu_var.bat \
  92. msvc/starpu.sln \
  93. msvc/starpu/starpu.vcxproj
  94. CLEANFILES = *.gcno *.gcda *.linkinfo starpu_idle_microsec.log
  95. #####################################
  96. # What to install and what to check #
  97. #####################################
  98. STARPU_TOOLS =
  99. TESTS = $(STARPU_TOOLS)
  100. if STARPU_HAVE_WINDOWS
  101. check_PROGRAMS = $(STARPU_TOOLS)
  102. else
  103. check_PROGRAMS = $(LOADER) $(STARPU_TOOLS)
  104. endif
  105. if !STARPU_HAVE_WINDOWS
  106. ## test loader program
  107. if !STARPU_CROSS_COMPILING
  108. LOADER = loader
  109. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  110. LOADER_BIN = $(abs_top_builddir)/tools/$(LOADER)
  111. loader_SOURCES = ../tests/loader.c
  112. else
  113. LOADER =
  114. LOADER_BIN = $(top_builddir)/tests/loader-cross.sh
  115. endif
  116. if STARPU_HAVE_AM111
  117. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  118. LOG_COMPILER = $(LOADER_BIN)
  119. else
  120. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  121. endif
  122. endif
  123. if STARPU_USE_FXT
  124. bin_PROGRAMS += \
  125. starpu_fxt_tool \
  126. starpu_fxt_stats \
  127. starpu_fxt_data_trace
  128. STARPU_TOOLS += \
  129. starpu_fxt_tool \
  130. starpu_fxt_stats \
  131. starpu_fxt_data_trace
  132. starpu_fxt_tool_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  133. starpu_fxt_tool_LDADD = $(FXT_LIBS)
  134. starpu_fxt_tool_LDFLAGS = $(FXT_LDFLAGS)
  135. starpu_fxt_stats_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  136. starpu_fxt_stats_LDADD = $(FXT_LIBS)
  137. starpu_fxt_stats_LDFLAGS = $(FXT_LDFLAGS)
  138. starpu_fxt_data_trace_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  139. starpu_fxt_data_trace_LDADD = $(FXT_LIBS)
  140. starpu_fxt_data_trace_LDFLAGS = $(FXT_LDFLAGS)
  141. endif
  142. bin_PROGRAMS += \
  143. starpu_perfmodel_display \
  144. starpu_perfmodel_plot \
  145. starpu_calibrate_bus \
  146. starpu_machine_display \
  147. starpu_lp2paje
  148. starpu_perfmodel_plot_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  149. if STARPU_LONG_CHECK
  150. STARPU_TOOLS += \
  151. starpu_calibrate_bus
  152. endif
  153. STARPU_TOOLS += \
  154. starpu_machine_display
  155. if !STARPU_HAVE_WINDOWS
  156. STARPU_TOOLS += \
  157. starpu_perfmodel_display \
  158. starpu_perfmodel_plot
  159. endif
  160. dist_bin_SCRIPTS += \
  161. starpu_workers_activity \
  162. starpu_codelet_histo_profile \
  163. starpu_codelet_profile \
  164. starpu_paje_draw_histogram \
  165. starpu_paje_draw_histogram.R \
  166. starpu_paje_state_stats \
  167. starpu_trace_state_stats.py
  168. if STARPU_HAVE_WINDOWS
  169. STARPU_MSVC_dir = $(bindir)
  170. nobase_STARPU_MSVC__DATA = \
  171. msvc/starpu_clean.bat \
  172. msvc/starpu_open.bat \
  173. msvc/starpu_exec.bat \
  174. msvc/starpu_var.bat \
  175. msvc/starpu.sln \
  176. msvc/starpu/starpu.vcxproj
  177. endif
  178. if STARPU_HAVE_HELP2MAN
  179. starpu_calibrate_bus.1: starpu_calibrate_bus$(EXEEXT)
  180. help2man --no-discard-stderr -N --output=$@ ./$<
  181. starpu_machine_display.1: starpu_machine_display$(EXEEXT)
  182. help2man --no-discard-stderr -N --output=$@ ./$<
  183. starpu_perfmodel_display.1: starpu_perfmodel_display$(EXEEXT)
  184. help2man --no-discard-stderr -N --output=$@ ./$<
  185. starpu_perfmodel_plot.1: starpu_perfmodel_plot$(EXEEXT)
  186. help2man --no-discard-stderr -N --output=$@ ./$<
  187. starpu_lp2paje.1: starpu_lp2paje$(EXEEXT)
  188. help2man --no-discard-stderr -N --output=$@ ./$<
  189. starpu_workers_activity.1: starpu_workers_activity
  190. chmod +x $<
  191. help2man --no-discard-stderr -N --output=$@ ./$<
  192. starpu_codelet_profile.1: starpu_codelet_profile
  193. chmod +x $<
  194. help2man --no-discard-stderr -N --output=$@ ./$<
  195. starpu_codelet_histo_profile.1: starpu_codelet_histo_profile
  196. chmod +x $<
  197. help2man --no-discard-stderr -N --output=$@ ./$<
  198. starpu_paje_draw_histogram.1: starpu_paje_draw_histogram
  199. chmod +x $<
  200. help2man --no-discard-stderr -N --output=$@ ./$<
  201. starpu_paje_state_stats.1: starpu_paje_state_stats
  202. chmod +x $<
  203. help2man --no-discard-stderr -N --output=$@ ./$<
  204. if STARPU_USE_FXT
  205. starpu_fxt_tool.1: starpu_fxt_tool$(EXEEXT)
  206. help2man --no-discard-stderr -N --output=$@ ./$<
  207. starpu_fxt_stats.1: starpu_fxt_stats$(EXEEXT)
  208. help2man --no-discard-stderr -N --output=$@ ./$<
  209. starpu_fxt_data_trace.1: starpu_fxt_data_trace$(EXEEXT)
  210. help2man --no-discard-stderr -N --output=$@ ./$<
  211. endif
  212. dist_man1_MANS =\
  213. starpu_calibrate_bus.1 \
  214. starpu_machine_display.1 \
  215. starpu_perfmodel_display.1 \
  216. starpu_perfmodel_plot.1 \
  217. starpu_lp2paje.1 \
  218. starpu_workers_activity.1 \
  219. starpu_codelet_profile.1 \
  220. starpu_codelet_histo_profile.1 \
  221. starpu_paje_draw_histogram.1 \
  222. starpu_paje_state_stats.1
  223. if STARPU_USE_FXT
  224. dist_man1_MANS +=\
  225. starpu_fxt_tool.1 \
  226. starpu_fxt_stats.1 \
  227. starpu_fxt_data_trace.1
  228. endif
  229. clean-local:
  230. $(RM) $(dist_man1_MANS)
  231. endif
  232. if STARPU_SIMGRID
  233. dist_pkgdata_DATA += starpu_smpi.xslt
  234. dist_bin_SCRIPTS += starpu_smpirun
  235. endif