Makefile.am 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2013-2018 Inria
  4. # Copyright (C) 2010-2019 CNRS
  5. # Copyright (C) 2009,2011,2013,2014,2017,2019 Université de Bordeaux
  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. #
  18. DOXYGEN = doxygen
  19. PDFLATEX = pdflatex
  20. MAKEINDEX = makeindex
  21. DOX_DIR = $(top_builddir)/doc/doxygen
  22. DOX_CONFIG = $(top_srcdir)/doc/doxygen/doxygen.cfg
  23. DOX_HTML_DIR = html
  24. DOX_LATEX_DIR = latex
  25. DOX_PDF = $(DOX_DIR)/starpu.pdf
  26. DOX_TAG = starpu.tag
  27. txtdir = $(docdir)/manual
  28. EXTRA_DIST =
  29. if BUILD_DOC
  30. all: $(DOX_HTML_DIR) $(DOX_PDF)
  31. EXTRA_DIST += $(DOX_HTML_DIR) $(DOX_PDF)
  32. txt_DATA = $(DOX_PDF)
  33. DOX_HTML_SRCDIR=$(DOX_HTML_DIR)
  34. install-exec-hook:
  35. $(MKDIR_P) $(DESTDIR)$(docdir)/manual/html
  36. (cd $(DOX_HTML_SRCDIR) && find . -type f -exec $(INSTALL) -c -m 644 {} $(DESTDIR)$(docdir)/manual/html \;)
  37. uninstall-hook:
  38. rm -rf $(DESTDIR)$(docdir)/manual/html
  39. else
  40. if AVAILABLE_DOC
  41. EXTRA_DIST += $(top_srcdir)/doc/doxygen/html $(top_srcdir)/doc/doxygen/starpu.pdf
  42. txt_DATA = $(top_srcdir)/doc/doxygen/starpu.pdf
  43. DOX_HTML_SRCDIR=$(top_srcdir)/doc/doxygen/html
  44. install-exec-hook:
  45. $(MKDIR_P) $(DESTDIR)$(docdir)/manual/html
  46. (cd $(DOX_HTML_SRCDIR) && find . -type f -exec $(INSTALL) -c -m 644 {} $(DESTDIR)$(docdir)/manual/html \;)
  47. uninstall-hook:
  48. rm -rf $(DESTDIR)$(docdir)/manual/html
  49. endif
  50. endif
  51. chapters = \
  52. chapters/000_introduction.doxy \
  53. chapters/101_building.doxy \
  54. chapters/110_basic_examples.doxy \
  55. chapters/201_advanced_examples.doxy \
  56. chapters/210_check_list_performance.doxy \
  57. chapters/301_tasks.doxy \
  58. chapters/310_data_management.doxy \
  59. chapters/320_scheduling.doxy \
  60. chapters/330_scheduling_contexts.doxy \
  61. chapters/340_scheduling_context_hypervisor.doxy \
  62. chapters/350_scheduling_policy_definition.doxy \
  63. chapters/360_debugging_tools.doxy \
  64. chapters/370_online_performance_tools.doxy \
  65. chapters/380_offline_performance_tools.doxy \
  66. chapters/390_faq.doxy \
  67. chapters/401_out_of_core.doxy \
  68. chapters/410_mpi_support.doxy \
  69. chapters/415_fault_tolerance.doxy \
  70. chapters/420_fft_support.doxy \
  71. chapters/430_mic_support.doxy \
  72. chapters/450_native_fortran_support.doxy \
  73. chapters/460_socl_opencl_extensions.doxy \
  74. chapters/470_simgrid.doxy \
  75. chapters/480_openmp_runtime_support.doxy \
  76. chapters/490_clustering_a_machine.doxy \
  77. chapters/495_interoperability.doxy \
  78. chapters/501_environment_variables.doxy \
  79. chapters/510_configure_options.doxy \
  80. chapters/520_files.doxy \
  81. chapters/601_scaling_vector_example.doxy \
  82. chapters/610_fdl_1_3.doxy \
  83. chapters/code/forkmode.c \
  84. chapters/code/multiformat.c \
  85. chapters/code/complex.c \
  86. chapters/code/simgrid.c \
  87. chapters/code/vector_scal_c.c \
  88. chapters/code/vector_scal_cpu.c \
  89. chapters/code/vector_scal_cuda.c \
  90. chapters/code/vector_scal_opencl.c \
  91. chapters/code/vector_scal_opencl_codelet.cl \
  92. chapters/code/disk_copy.c \
  93. chapters/code/disk_compute.c \
  94. chapters/code/nf_initexit.f90 \
  95. chapters/api/codelet_and_tasks.doxy \
  96. chapters/api/fft_support.doxy \
  97. chapters/api/mpi.doxy \
  98. chapters/api/opencl_extensions.doxy \
  99. chapters/api/openmp_runtime_support.doxy \
  100. chapters/api/mic_extensions.doxy \
  101. chapters/api/scheduling_contexts.doxy \
  102. chapters/api/scheduling_policy.doxy \
  103. chapters/api/versioning.doxy \
  104. chapters/api/workers.doxy \
  105. chapters/api/threads.doxy
  106. images = \
  107. chapters/images/data_trace.eps \
  108. chapters/images/data_trace.pdf \
  109. chapters/images/data_trace.png \
  110. chapters/images/distrib_data.eps \
  111. chapters/images/distrib_data.pdf \
  112. chapters/images/distrib_data.png \
  113. chapters/images/distrib_data_histo.eps \
  114. chapters/images/distrib_data_histo.pdf \
  115. chapters/images/distrib_data_histo.png \
  116. chapters/images/paje_draw_histogram.eps \
  117. chapters/images/paje_draw_histogram.pdf \
  118. chapters/images/paje_draw_histogram.png \
  119. chapters/images/parallel_worker2.eps \
  120. chapters/images/parallel_worker2.pdf \
  121. chapters/images/parallel_worker2.png \
  122. chapters/images/runtime-par.eps \
  123. chapters/images/runtime-par.pdf \
  124. chapters/images/runtime-par.png \
  125. chapters/images/starpu_non_linear_memset_regression_based.eps \
  126. chapters/images/starpu_non_linear_memset_regression_based.pdf \
  127. chapters/images/starpu_non_linear_memset_regression_based.png \
  128. chapters/images/starpu_non_linear_memset_regression_based_2.eps \
  129. chapters/images/starpu_non_linear_memset_regression_based_2.pdf \
  130. chapters/images/starpu_non_linear_memset_regression_based_2.png \
  131. chapters/images/starpu_starpu_slu_lu_model_11.eps \
  132. chapters/images/starpu_starpu_slu_lu_model_11.pdf \
  133. chapters/images/starpu_starpu_slu_lu_model_11.png \
  134. chapters/images/starpu_chol_model_11_type.eps \
  135. chapters/images/starpu_chol_model_11_type.pdf \
  136. chapters/images/starpu_chol_model_11_type.png \
  137. chapters/images/tasks_size_overhead.eps \
  138. chapters/images/tasks_size_overhead.pdf \
  139. chapters/images/tasks_size_overhead.png \
  140. chapters/images/temanejo.png
  141. if BUILD_DOC
  142. starpu_config.h: $(top_srcdir)/include/starpu_config.h.in
  143. @$(SED) 's/#undef \(.*\)/#define \1 1/' $< > $@
  144. chapters/version.sty: $(chapters)
  145. @for f in $(chapters) ; do \
  146. if test -f $(top_srcdir)/doc/doxygen/$$f ; then $(PROG_STAT) --format=%Y $(top_srcdir)/doc/doxygen/$$f ; fi \
  147. done | sort -r | head -1 > timestamp_sty
  148. @if test -s timestamp_sty ; then \
  149. LC_ALL=C $(PROG_DATE) --date=@`cat timestamp_sty` +"%F" > timestamp_sty_updated ;\
  150. LC_ALL=C $(PROG_DATE) --date=@`cat timestamp_sty` +"%B %Y" > timestamp_sty_updated_month ;\
  151. fi
  152. @if test -s timestamp_sty_updated ; then \
  153. echo ':newcommand{:STARPUUPDATED}{'`cat timestamp_sty_updated`'}' > $(top_srcdir)/doc/doxygen/chapters/version.sty;\
  154. else \
  155. echo ':newcommand{:STARPUUPDATED}{unknown date}' > $(top_srcdir)/doc/doxygen/chapters/version.sty;\
  156. fi
  157. @echo ':newcommand{:STARPUVERSION}{$(VERSION)}' >> $(top_srcdir)/doc/doxygen/chapters/version.sty
  158. @$(SED) -i 's/:/\\/g' $(top_srcdir)/doc/doxygen/chapters/version.sty
  159. @for f in timestamp_sty timestamp_sty_updated timestamp_sty_updated_month ; do \
  160. if test -f $$f ; then $(RM) $$f ; fi ;\
  161. done
  162. chapters/version.html: $(chapters)
  163. @for f in $(chapters) ; do \
  164. if test -f $(top_srcdir)/doc/doxygen/$$f ; then $(PROG_STAT) --format=%Y $(top_srcdir)/doc/doxygen/$$f ; fi \
  165. done | sort -r | head -1 > timestamp_html
  166. @if test -s timestamp_html ; then \
  167. LC_ALL=C $(PROG_DATE) --date=@`cat timestamp_html` +"%F" > timestamp_html_updated ;\
  168. LC_ALL=C $(PROG_DATE) --date=@`cat timestamp_html` +"%B %Y" > timestamp_html_updated_month ;\
  169. fi
  170. @echo "This manual documents the usage of StarPU version $(VERSION)." > $(top_srcdir)/doc/doxygen/chapters/version.html
  171. @if test -s timestamp_html_updated ; then \
  172. echo "Its contents was last updated on "`cat timestamp_html_updated`"." >> $(top_srcdir)/doc/doxygen/chapters/version.html;\
  173. else \
  174. echo "Its contents was last updated on <em>unknown_date</em>." >> $(top_srcdir)/doc/doxygen/chapters/version.html;\
  175. fi
  176. @for f in timestamp_html timestamp_html_updated timestamp_html_updated_month ; do \
  177. if test -f $$f ; then $(RM) $$f ; fi ;\
  178. done
  179. dox_inputs = $(DOX_CONFIG) \
  180. $(chapters) \
  181. starpu_config.h \
  182. chapters/version.sty \
  183. chapters/version.html \
  184. $(top_srcdir)/include/starpu.h \
  185. $(top_srcdir)/include/starpu_bitmap.h \
  186. $(top_srcdir)/include/starpu_bound.h \
  187. $(top_srcdir)/include/starpu_clusters.h \
  188. $(top_srcdir)/include/starpu_cublas.h \
  189. $(top_srcdir)/include/starpu_cublas_v2.h \
  190. $(top_srcdir)/include/starpu_cusparse.h \
  191. $(top_srcdir)/include/starpu_cuda.h \
  192. $(top_srcdir)/include/starpu_data_filters.h \
  193. $(top_srcdir)/include/starpu_data.h \
  194. $(top_srcdir)/include/starpu_data_interfaces.h \
  195. $(top_srcdir)/include/starpu_deprecated_api.h \
  196. $(top_srcdir)/include/starpu_disk.h \
  197. $(top_srcdir)/include/starpu_driver.h \
  198. $(top_srcdir)/include/starpu_expert.h \
  199. $(top_srcdir)/include/starpu_fxt.h \
  200. $(top_srcdir)/include/starpu_hash.h \
  201. $(top_srcdir)/include/starpu_mic.h \
  202. $(top_srcdir)/include/starpu_mod.f90 \
  203. $(top_srcdir)/include/starpu_opencl.h \
  204. $(top_srcdir)/include/starpu_openmp.h \
  205. $(top_srcdir)/include/starpu_perfmodel.h \
  206. $(top_srcdir)/include/starpu_profiling.h \
  207. $(top_srcdir)/include/starpu_rand.h \
  208. $(top_srcdir)/include/starpu_sched_component.h \
  209. $(top_srcdir)/include/starpu_sched_ctx.h \
  210. $(top_srcdir)/include/starpu_sched_ctx_hypervisor.h \
  211. $(top_srcdir)/include/starpu_scheduler.h \
  212. $(top_srcdir)/include/starpu_simgrid_wrap.h \
  213. $(top_srcdir)/include/starpu_sink.h \
  214. $(top_srcdir)/include/starpu_stdlib.h \
  215. $(top_srcdir)/include/starpu_task_bundle.h \
  216. $(top_srcdir)/include/starpu_task_dep.h \
  217. $(top_srcdir)/include/starpu_task.h \
  218. $(top_srcdir)/include/starpu_task_list.h \
  219. $(top_srcdir)/include/starpu_task_util.h \
  220. $(top_srcdir)/include/starpu_thread.h \
  221. $(top_srcdir)/include/starpu_thread_util.h \
  222. $(top_srcdir)/include/starpu_tree.h \
  223. $(top_srcdir)/include/starpu_util.h \
  224. $(top_srcdir)/include/starpu_worker.h \
  225. $(top_srcdir)/include/fstarpu_mod.f90 \
  226. $(top_srcdir)/mpi/include/starpu_mpi.h \
  227. $(top_srcdir)/mpi/include/starpu_mpi_lb.h \
  228. $(top_srcdir)/mpi/include/fstarpu_mpi_mod.f90 \
  229. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor.h \
  230. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_config.h \
  231. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_lp.h \
  232. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_monitoring.h \
  233. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_policy.h \
  234. $(top_srcdir)/starpurm/include/starpurm.h
  235. doxy:
  236. @rm -fr $(DOX_HTML_DIR) $(DOX_LATEX_DIR)
  237. @$(DOXYGEN) $(DOX_CONFIG)
  238. $(DOX_TAG): $(dox_inputs)
  239. @rm -fr $(DOX_HTML_DIR) $(DOX_LATEX_DIR)
  240. @$(DOXYGEN) $(DOX_CONFIG)
  241. @$(SED) -i 's/ModuleDocumentation <\/li>/<a class="el" href="modules.html">Modules<\/a>/' html/index.html
  242. @$(SED) -i 's/FileDocumentation <\/li>/<a class="el" href="files.html">Files<\/a>/' html/index.html
  243. # 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
  244. @if test -f html/navtree.js ; then $(SED) -i 's/\[ "Files", "Files.html", null \]/\[ "", "Files.html", null \]/' html/navtree.js ; fi
  245. @$(SED) -i 's/.*"Files.html".*//' html/pages.html
  246. @if test -f latex/main.tex ; then mv latex/main.tex latex/index.tex ; fi
  247. @$(SED) -i '/\\begin{titlepage}/,$$d' $(DOX_LATEX_DIR)/refman.tex
  248. @cat $(top_srcdir)/doc/doxygen/refman.tex >> $(DOX_LATEX_DIR)/refman.tex
  249. $(DOX_PDF): $(DOX_TAG) refman.tex
  250. @cp $(top_srcdir)/doc/doxygen/chapters/version.sty $(DOX_LATEX_DIR)
  251. @cp $(top_srcdir)/doc/doxygen/chapters/images/*pdf $(DOX_LATEX_DIR)
  252. @echo $(PDFLATEX) $(DOX_LATEX_DIR)/refman.tex
  253. @cd $(DOX_LATEX_DIR) ;\
  254. rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out ;\
  255. $(SED) -i -e 's/__env__/\\_Environment Variables!/' -e 's/\\-\\_\\-\\-\\_\\-env\\-\\_\\-\\-\\_\\-//' ExecutionConfigurationThroughEnvironmentVariables.tex ;\
  256. $(SED) -i -e 's/__configure__/\\_Configure Options!/' -e 's/\\-\\_\\-\\-\\_\\-configure\\-\\_\\-\\-\\_\\-//' CompilationConfiguration.tex ;\
  257. $(SED) -i s'/\\item Module\\.Documentation/\\item \\hyperlink{ModuleDocumentation}{Module Documentation}/' index.tex ;\
  258. $(SED) -i s'/\\item File\\.Documentation/\\item \\hyperlink{FileDocumentation}{File Documentation}/' index.tex ;\
  259. $(PDFLATEX) refman.tex ;\
  260. $(MAKEINDEX) refman.idx ;\
  261. $(PDFLATEX) refman.tex ;\
  262. done=0; repeat=5 ;\
  263. while test $$done = 0 -a $$repeat -gt 0; do \
  264. if $(EGREP) 'Rerun (LaTeX|to get cross-references right)' refman.log > /dev/null 2>&1; then \
  265. $(PDFLATEX) refman.tex; \
  266. repeat=`expr $$repeat - 1`; \
  267. else \
  268. done=1; \
  269. fi; \
  270. done
  271. mv $(DOX_LATEX_DIR)/refman.pdf $(DOX_PDF)
  272. CLEANFILES = $(DOX_TAG) starpu_config.h \
  273. -r \
  274. $(DOX_HTML_DIR) \
  275. $(DOX_LATEX_DIR) \
  276. $(DOX_PDF)
  277. endif
  278. EXTRA_DIST += doxygen.cfg refman.tex \
  279. $(chapters) $(images)
  280. # Rule to update documentation on web server. Should only be used locally.
  281. PUBLISHHOST ?= gforge
  282. update-web: $(DOX_PDF)
  283. scp -pr starpu.pdf html $(PUBLISHHOST):/home/groups/starpu/htdocs/doc