Makefile.am 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009, 2011, 2013-2014 Université de Bordeaux 1
  4. # Copyright (C) 2010, 2011, 2012, 2013, 2014 Centre National de la Recherche Scientifique
  5. # Copyright (C) 2014 Inria
  6. #
  7. # Permission is granted to copy, distribute and/or modify this document
  8. # under the terms of the GNU Free Documentation License, Version 1.3
  9. # or any later version published by the Free Software Foundation;
  10. # with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
  11. #
  12. # See the GNU Free Documentation License in COPYING.GFDL for more details.
  13. DOXYGEN = doxygen
  14. PDFLATEX = pdflatex
  15. MAKEINDEX = makeindex
  16. DOX_DIR = $(top_builddir)/doc/doxygen
  17. DOX_CONFIG = $(top_srcdir)/doc/doxygen/doxygen.cfg
  18. DOX_HTML_DIR = html
  19. DOX_LATEX_DIR = latex
  20. DOX_PDF = starpu.pdf
  21. DOX_TAG = starpu.tag
  22. chapters = \
  23. chapters/00introduction.doxy \
  24. chapters/01building.doxy \
  25. chapters/02basic_examples.doxy \
  26. chapters/03advanced_examples.doxy \
  27. chapters/05check_list_performance.doxy \
  28. chapters/06tasks.doxy \
  29. chapters/07data_management.doxy \
  30. chapters/08scheduling.doxy \
  31. chapters/09scheduling_contexts.doxy \
  32. chapters/10scheduling_context_hypervisor.doxy \
  33. chapters/11debugging_tools.doxy \
  34. chapters/12online_performance_tools.doxy \
  35. chapters/13offline_performance_tools.doxy \
  36. chapters/14faq.doxy \
  37. chapters/15out_of_core.doxy \
  38. chapters/16mpi_support.doxy \
  39. chapters/17fft_support.doxy \
  40. chapters/18mic_scc_support.doxy \
  41. chapters/19c_extensions.doxy \
  42. chapters/20socl_opencl_extensions.doxy \
  43. chapters/21simgrid.doxy \
  44. chapters/40environment_variables.doxy \
  45. chapters/41configure_options.doxy \
  46. chapters/45files.doxy \
  47. chapters/50scaling-vector-example.doxy \
  48. chapters/51fdl-1.3.doxy \
  49. chapters/code/hello_pragma2.c \
  50. chapters/code/hello_pragma.c \
  51. chapters/code/scal_pragma.cu \
  52. chapters/code/matmul_pragma.c \
  53. chapters/code/matmul_pragma2.c \
  54. chapters/code/cholesky_pragma.c \
  55. chapters/code/forkmode.c \
  56. chapters/code/multiformat.c \
  57. chapters/code/complex.c \
  58. chapters/code/simgrid.c \
  59. chapters/code/vector_scal_c.c \
  60. chapters/code/vector_scal_cpu.c \
  61. chapters/code/vector_scal_cuda.cu \
  62. chapters/code/vector_scal_opencl.c \
  63. chapters/code/vector_scal_opencl_codelet.cl \
  64. chapters/code/disk_copy.c \
  65. chapters/code/disk_compute.c \
  66. chapters/api/codelet_and_tasks.doxy \
  67. chapters/api/cuda_extensions.doxy \
  68. chapters/api/data_interfaces.doxy \
  69. chapters/api/data_management.doxy \
  70. chapters/api/data_partition.doxy \
  71. chapters/api/data_out_of_core.doxy \
  72. chapters/api/expert_mode.doxy \
  73. chapters/api/explicit_dependencies.doxy \
  74. chapters/api/fft_support.doxy \
  75. chapters/api/fxt_support.doxy \
  76. chapters/api/implicit_dependencies.doxy \
  77. chapters/api/initialization.doxy \
  78. chapters/api/insert_task.doxy \
  79. chapters/api/lower_bound.doxy \
  80. chapters/api/misc_helpers.doxy \
  81. chapters/api/mpi.doxy \
  82. chapters/api/multiformat_data_interface.doxy \
  83. chapters/api/opencl_extensions.doxy \
  84. chapters/api/mic_extensions.doxy \
  85. chapters/api/scc_extensions.doxy \
  86. chapters/api/parallel_tasks.doxy \
  87. chapters/api/performance_model.doxy \
  88. chapters/api/profiling.doxy \
  89. chapters/api/running_driver.doxy \
  90. chapters/api/scheduling_contexts.doxy \
  91. chapters/api/scheduling_policy.doxy \
  92. chapters/api/standard_memory_library.doxy \
  93. chapters/api/task_bundles.doxy \
  94. chapters/api/task_lists.doxy \
  95. chapters/api/top.doxy \
  96. chapters/api/versioning.doxy \
  97. chapters/api/workers.doxy \
  98. chapters/api/threads.doxy \
  99. chapters/api/bitmap.doxy \
  100. chapters/api/tree.doxy \
  101. chapters/api/toolbox.doxy \
  102. chapters/api/sc_hypervisor/sc_hypervisor.doxy \
  103. chapters/api/sc_hypervisor/sc_hypervisor_usage.doxy
  104. starpu_config.h: $(top_srcdir)/include/starpu_config.h.in
  105. @$(SED) 's/#undef \(.*\)/#define \1 1/' $< > $@
  106. chapters/version.sty: $(chapters)
  107. @for f in $(chapters) ; do \
  108. if test -f $(top_srcdir)/doc/doxygen/$$f ; then $(PROG_STAT) --format=%Y $(top_srcdir)/doc/doxygen/$$f ; fi \
  109. done | sort -r | head -1 > timestamp_sty
  110. @if test -s timestamp_sty ; then \
  111. LC_ALL=C $(PROG_DATE) --date=@`cat timestamp_sty` +"%d %B %Y" > timestamp_sty_updated ;\
  112. LC_ALL=C $(PROG_DATE) --date=@`cat timestamp_sty` +"%B %Y" > timestamp_sty_updated_month ;\
  113. fi
  114. @if test -s timestamp_sty_updated ; then \
  115. echo ':newcommand{:STARPUUPDATED}{'`cat timestamp_sty_updated`'}' > $(top_srcdir)/doc/doxygen/chapters/version.sty;\
  116. else \
  117. echo ':newcommand{:STARPUUPDATED}{unknown date}' > $(top_srcdir)/doc/doxygen/chapters/version.sty;\
  118. fi
  119. @echo ':newcommand{:STARPUVERSION}{$(VERSION)}' >> $(top_srcdir)/doc/doxygen/chapters/version.sty
  120. @$(SED) -i 's/:/\\/g' $(top_srcdir)/doc/doxygen/chapters/version.sty
  121. @for f in timestamp_sty timestamp_sty_updated timestamp_sty_updated_month ; do \
  122. if test -f $$f ; then $(RM) $$f ; fi ;\
  123. done
  124. chapters/version.html: $(chapters)
  125. @for f in $(chapters) ; do \
  126. if test -f $(top_srcdir)/doc/doxygen/$$f ; then $(PROG_STAT) --format=%Y $(top_srcdir)/doc/doxygen/$$f ; fi \
  127. done | sort -r | head -1 > timestamp_html
  128. @if test -s timestamp_html ; then \
  129. LC_ALL=C $(PROG_DATE) --date=@`cat timestamp_html` +"%d %B %Y" > timestamp_html_updated ;\
  130. LC_ALL=C $(PROG_DATE) --date=@`cat timestamp_html` +"%B %Y" > timestamp_html_updated_month ;\
  131. fi
  132. @echo "This manual documents the usage of StarPU version $(VERSION)." > $(top_srcdir)/doc/doxygen/chapters/version.html
  133. @if test -s timestamp_html_updated ; then \
  134. echo "Its contents was last updated on "`cat timestamp_html_updated`"." >> $(top_srcdir)/doc/doxygen/chapters/version.html;\
  135. else \
  136. echo "Its contents was last updated on <em>unknown_date</em>." >> $(top_srcdir)/doc/doxygen/chapters/version.html;\
  137. fi
  138. @for f in timestamp_html timestamp_html_updated timestamp_html_updated_month ; do \
  139. if test -f $$f ; then $(RM) $$f ; fi ;\
  140. done
  141. EXTRA_DIST = \
  142. $(chapters) \
  143. chapters/version.sty \
  144. chapters/version.html \
  145. chapters/data_trace.eps \
  146. chapters/data_trace.pdf \
  147. chapters/data_trace.png \
  148. chapters/distrib_data.png \
  149. chapters/distrib_data.eps \
  150. chapters/distrib_data.pdf \
  151. chapters/distrib_data_histo.png \
  152. chapters/distrib_data_histo.eps \
  153. chapters/distrib_data_histo.pdf \
  154. chapters/paje_draw_histogram.eps \
  155. chapters/paje_draw_histogram.png \
  156. chapters/paje_draw_histogram.pdf \
  157. chapters/starpu_chol_model_11_type.png \
  158. chapters/starpu_chol_model_11_type.eps \
  159. chapters/starpu_chol_model_11_type.pdf \
  160. chapters/starpu_non_linear_memset_regression_based.png \
  161. chapters/starpu_non_linear_memset_regression_based.eps \
  162. chapters/starpu_non_linear_memset_regression_based.pdf \
  163. chapters/starpu_non_linear_memset_regression_based_2.png \
  164. chapters/starpu_non_linear_memset_regression_based_2.eps \
  165. chapters/starpu_non_linear_memset_regression_based_2.pdf \
  166. chapters/starpu_starpu_slu_lu_model_11.png \
  167. chapters/starpu_starpu_slu_lu_model_11.eps \
  168. chapters/starpu_starpu_slu_lu_model_11.pdf \
  169. chapters/tasks_size_overhead.png \
  170. chapters/tasks_size_overhead.eps \
  171. chapters/tasks_size_overhead.pdf \
  172. doxygen.cfg \
  173. refman.tex \
  174. $(DOX_HTML_DIR)
  175. dox_inputs = $(DOX_CONFIG) \
  176. $(chapters) \
  177. starpu_config.h \
  178. chapters/version.sty \
  179. chapters/version.html \
  180. $(top_srcdir)/include/starpu.h \
  181. $(top_srcdir)/include/starpu_data_filters.h \
  182. $(top_srcdir)/include/starpu_data_interfaces.h \
  183. $(top_srcdir)/include/starpu_disk.h \
  184. $(top_srcdir)/include/starpu_worker.h \
  185. $(top_srcdir)/include/starpu_task.h \
  186. $(top_srcdir)/include/starpu_task_bundle.h \
  187. $(top_srcdir)/include/starpu_task_list.h \
  188. $(top_srcdir)/include/starpu_task_util.h \
  189. $(top_srcdir)/include/starpu_data.h \
  190. $(top_srcdir)/include/starpu_perfmodel.h \
  191. $(top_srcdir)/include/starpu_util.h \
  192. $(top_srcdir)/include/starpu_fxt.h \
  193. $(top_srcdir)/include/starpu_cuda.h \
  194. $(top_srcdir)/include/starpu_opencl.h \
  195. $(top_srcdir)/include/starpu_sink.h \
  196. $(top_srcdir)/include/starpu_mic.h \
  197. $(top_srcdir)/include/starpu_scc.h \
  198. $(top_srcdir)/include/starpu_expert.h \
  199. $(top_srcdir)/include/starpu_profiling.h \
  200. $(top_srcdir)/include/starpu_bound.h \
  201. $(top_srcdir)/include/starpu_scheduler.h \
  202. $(top_srcdir)/include/starpu_sched_ctx.h \
  203. $(top_srcdir)/include/starpu_sched_ctx_hypervisor.h \
  204. $(top_srcdir)/include/starpu_top.h \
  205. $(top_srcdir)/include/starpu_hash.h \
  206. $(top_srcdir)/include/starpu_rand.h \
  207. $(top_srcdir)/include/starpu_cublas.h \
  208. $(top_srcdir)/include/starpu_driver.h \
  209. $(top_srcdir)/include/starpu_stdlib.h \
  210. $(top_srcdir)/include/starpu_thread.h \
  211. $(top_srcdir)/include/starpu_thread_util.h \
  212. $(top_srcdir)/mpi/include/starpu_mpi.h \
  213. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor.h \
  214. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_config.h \
  215. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_lp.h \
  216. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_monitoring.h \
  217. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_policy.h
  218. $(DOX_TAG): $(dox_inputs)
  219. @rm -fr $(DOX_HTML_DIR) $(DOX_LATEX_DIR)
  220. @$(DOXYGEN) $(DOX_CONFIG)
  221. @$(SED) -i 's/ModuleDocumentation <\/li>/<a class="el" href="modules.html">Modules<\/a>/' html/index.html
  222. @$(SED) -i 's/FileDocumentation <\/li>/<a class="el" href="files.html">Files<\/a>/' html/index.html
  223. # comment for the line below: what we really want to do is to remove the line, but dy doing so, it avoids opening the interactive menu when browsing files
  224. @if test -f html/navtree.js ; then $(SED) -i 's/\[ "Files", "Files.html", null \]/\[ "", "Files.html", null \]/' html/navtree.js ; fi
  225. @$(SED) -i 's/.*"Files.html".*//' html/pages.html
  226. @if test -f latex/main.tex ; then mv latex/main.tex latex/index.tex ; fi
  227. dist_pdf_DATA = $(DOX_PDF)
  228. $(DOX_PDF): $(DOX_TAG) refman.tex
  229. @cp $(top_srcdir)/doc/doxygen/chapters/version.sty $(DOX_LATEX_DIR)
  230. @cp $(top_srcdir)/doc/doxygen/chapters/*pdf $(DOX_LATEX_DIR)
  231. @echo $(PDFLATEX) $(DOX_LATEX_DIR)/refman.tex
  232. @cd $(DOX_LATEX_DIR) ;\
  233. rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out ;\
  234. $(SED) -i -e 's/__env__/\\_Environment Variables!/' -e 's/\\-\\_\\-\\-\\_\\-env\\-\\_\\-\\-\\_\\-//' ExecutionConfigurationThroughEnvironmentVariables.tex ;\
  235. $(SED) -i -e 's/__configure__/\\_Configure Options!/' -e 's/\\-\\_\\-\\-\\_\\-configure\\-\\_\\-\\-\\_\\-//' CompilationConfiguration.tex ;\
  236. $(SED) -i s'/\\item Module\\-Documentation/\\item \\hyperlink{ModuleDocumentation}{Module Documentation}/' index.tex ;\
  237. $(SED) -i s'/\\item File\\-Documentation/\\item \\hyperlink{FileDocumentation}{File Documentation}/' index.tex ;\
  238. $(PDFLATEX) refman.tex > /dev/null ;\
  239. $(MAKEINDEX) refman.idx > /dev/null 2>&1 ;\
  240. $(PDFLATEX) refman.tex > /dev/null ;\
  241. done=0; repeat=5 ;\
  242. while test $$done = 0 -a $$repeat -gt 0; do \
  243. if $(EGREP) 'Rerun (LaTeX|to get cross-references right)' refman.log > /dev/null 2>&1; then \
  244. $(PDFLATEX) refman.tex; \
  245. repeat=`expr $$repeat - 1`; \
  246. else \
  247. done=1; \
  248. fi; \
  249. done
  250. mv $(DOX_LATEX_DIR)/refman.pdf $(DOX_PDF)
  251. CLEANFILES = $(DOX_TAG) starpu_config.h \
  252. -r \
  253. $(DOX_HTML_DIR) \
  254. $(DOX_LATEX_DIR) \
  255. $(DOX_PDF)
  256. # Rule to update documentation on web server. Should only be used locally.
  257. PUBLISHHOST ?= sync
  258. update-web: $(DOX_PDF)
  259. scp -pr starpu.pdf html $(PUBLISHHOST):/web/runtime/html/StarPU/doc
  260. showcheck:
  261. -cat /dev/null