Makefile.am 12 KB

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