Makefile.am 11 KB

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