Makefile.am 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  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 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/420_fft_support.doxy \
  70. chapters/430_mic_scc_support.doxy \
  71. chapters/440_c_extensions.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/hello_pragma2.c \
  84. chapters/code/hello_pragma.c \
  85. chapters/code/scal_pragma.cu \
  86. chapters/code/matmul_pragma.c \
  87. chapters/code/matmul_pragma2.c \
  88. chapters/code/cholesky_pragma.c \
  89. chapters/code/forkmode.c \
  90. chapters/code/multiformat.c \
  91. chapters/code/complex.c \
  92. chapters/code/simgrid.c \
  93. chapters/code/vector_scal_c.c \
  94. chapters/code/vector_scal_cpu.c \
  95. chapters/code/vector_scal_cuda.c \
  96. chapters/code/vector_scal_opencl.c \
  97. chapters/code/vector_scal_opencl_codelet.cl \
  98. chapters/code/disk_copy.c \
  99. chapters/code/disk_compute.c \
  100. chapters/code/nf_initexit.f90 \
  101. chapters/api/codelet_and_tasks.doxy \
  102. chapters/api/cuda_extensions.doxy \
  103. chapters/api/data_interfaces.doxy \
  104. chapters/api/data_management.doxy \
  105. chapters/api/data_partition.doxy \
  106. chapters/api/data_out_of_core.doxy \
  107. chapters/api/expert_mode.doxy \
  108. chapters/api/explicit_dependencies.doxy \
  109. chapters/api/fft_support.doxy \
  110. chapters/api/fxt_support.doxy \
  111. chapters/api/implicit_dependencies.doxy \
  112. chapters/api/initialization.doxy \
  113. chapters/api/insert_task.doxy \
  114. chapters/api/lower_bound.doxy \
  115. chapters/api/misc_helpers.doxy \
  116. chapters/api/mpi.doxy \
  117. chapters/api/multiformat_data_interface.doxy \
  118. chapters/api/opencl_extensions.doxy \
  119. chapters/api/openmp_runtime_support.doxy \
  120. chapters/api/mic_extensions.doxy \
  121. chapters/api/scc_extensions.doxy \
  122. chapters/api/parallel_tasks.doxy \
  123. chapters/api/performance_model.doxy \
  124. chapters/api/profiling.doxy \
  125. chapters/api/running_driver.doxy \
  126. chapters/api/scheduling_contexts.doxy \
  127. chapters/api/scheduling_policy.doxy \
  128. chapters/api/standard_memory_library.doxy \
  129. chapters/api/task_bundles.doxy \
  130. chapters/api/task_lists.doxy \
  131. chapters/api/top.doxy \
  132. chapters/api/versioning.doxy \
  133. chapters/api/workers.doxy \
  134. chapters/api/threads.doxy \
  135. chapters/api/bitmap.doxy \
  136. chapters/api/tree.doxy \
  137. chapters/api/toolbox.doxy \
  138. chapters/api/sc_hypervisor/sc_hypervisor.doxy \
  139. chapters/api/sc_hypervisor/sc_hypervisor_usage.doxy \
  140. chapters/api/modularized_scheduler.doxy \
  141. chapters/api/clustering_machine.doxy \
  142. chapters/api/interoperability.doxy
  143. images = \
  144. chapters/images/data_trace.eps \
  145. chapters/images/data_trace.pdf \
  146. chapters/images/data_trace.png \
  147. chapters/images/distrib_data.eps \
  148. chapters/images/distrib_data.pdf \
  149. chapters/images/distrib_data.png \
  150. chapters/images/distrib_data_histo.eps \
  151. chapters/images/distrib_data_histo.pdf \
  152. chapters/images/distrib_data_histo.png \
  153. chapters/images/paje_draw_histogram.eps \
  154. chapters/images/paje_draw_histogram.pdf \
  155. chapters/images/paje_draw_histogram.png \
  156. chapters/images/parallel_worker2.eps \
  157. chapters/images/parallel_worker2.pdf \
  158. chapters/images/parallel_worker2.png \
  159. chapters/images/runtime-par.eps \
  160. chapters/images/runtime-par.pdf \
  161. chapters/images/runtime-par.png \
  162. chapters/images/starpu_non_linear_memset_regression_based.eps \
  163. chapters/images/starpu_non_linear_memset_regression_based.pdf \
  164. chapters/images/starpu_non_linear_memset_regression_based.png \
  165. chapters/images/starpu_non_linear_memset_regression_based_2.eps \
  166. chapters/images/starpu_non_linear_memset_regression_based_2.pdf \
  167. chapters/images/starpu_non_linear_memset_regression_based_2.png \
  168. chapters/images/starpu_starpu_slu_lu_model_11.eps \
  169. chapters/images/starpu_starpu_slu_lu_model_11.pdf \
  170. chapters/images/starpu_starpu_slu_lu_model_11.png \
  171. chapters/images/starpu_chol_model_11_type.eps \
  172. chapters/images/starpu_chol_model_11_type.pdf \
  173. chapters/images/starpu_chol_model_11_type.png \
  174. chapters/images/tasks_size_overhead.eps \
  175. chapters/images/tasks_size_overhead.pdf \
  176. chapters/images/tasks_size_overhead.png \
  177. chapters/images/temanejo.png
  178. if BUILD_DOC
  179. starpu_config.h: $(top_srcdir)/include/starpu_config.h.in
  180. @$(SED) 's/#undef \(.*\)/#define \1 1/' $< > $@
  181. chapters/version.sty: $(chapters)
  182. @for f in $(chapters) ; do \
  183. if test -f $(top_srcdir)/doc/doxygen/$$f ; then $(PROG_STAT) --format=%Y $(top_srcdir)/doc/doxygen/$$f ; fi \
  184. done | sort -r | head -1 > timestamp_sty
  185. @if test -s timestamp_sty ; then \
  186. LC_ALL=C $(PROG_DATE) --date=@`cat timestamp_sty` +"%d %B %Y" > timestamp_sty_updated ;\
  187. LC_ALL=C $(PROG_DATE) --date=@`cat timestamp_sty` +"%B %Y" > timestamp_sty_updated_month ;\
  188. fi
  189. @if test -s timestamp_sty_updated ; then \
  190. echo ':newcommand{:STARPUUPDATED}{'`cat timestamp_sty_updated`'}' > $(top_srcdir)/doc/doxygen/chapters/version.sty;\
  191. else \
  192. echo ':newcommand{:STARPUUPDATED}{unknown date}' > $(top_srcdir)/doc/doxygen/chapters/version.sty;\
  193. fi
  194. @echo ':newcommand{:STARPUVERSION}{$(VERSION)}' >> $(top_srcdir)/doc/doxygen/chapters/version.sty
  195. @$(SED) -i 's/:/\\/g' $(top_srcdir)/doc/doxygen/chapters/version.sty
  196. @for f in timestamp_sty timestamp_sty_updated timestamp_sty_updated_month ; do \
  197. if test -f $$f ; then $(RM) $$f ; fi ;\
  198. done
  199. chapters/version.html: $(chapters)
  200. @for f in $(chapters) ; do \
  201. if test -f $(top_srcdir)/doc/doxygen/$$f ; then $(PROG_STAT) --format=%Y $(top_srcdir)/doc/doxygen/$$f ; fi \
  202. done | sort -r | head -1 > timestamp_html
  203. @if test -s timestamp_html ; then \
  204. LC_ALL=C $(PROG_DATE) --date=@`cat timestamp_html` +"%d %B %Y" > timestamp_html_updated ;\
  205. LC_ALL=C $(PROG_DATE) --date=@`cat timestamp_html` +"%B %Y" > timestamp_html_updated_month ;\
  206. fi
  207. @echo "This manual documents the usage of StarPU version $(VERSION)." > $(top_srcdir)/doc/doxygen/chapters/version.html
  208. @if test -s timestamp_html_updated ; then \
  209. echo "Its contents was last updated on "`cat timestamp_html_updated`"." >> $(top_srcdir)/doc/doxygen/chapters/version.html;\
  210. else \
  211. echo "Its contents was last updated on <em>unknown_date</em>." >> $(top_srcdir)/doc/doxygen/chapters/version.html;\
  212. fi
  213. @for f in timestamp_html timestamp_html_updated timestamp_html_updated_month ; do \
  214. if test -f $$f ; then $(RM) $$f ; fi ;\
  215. done
  216. dox_inputs = $(DOX_CONFIG) \
  217. $(chapters) \
  218. starpu_config.h \
  219. chapters/version.sty \
  220. chapters/version.html \
  221. $(top_srcdir)/include/starpu.h \
  222. $(top_srcdir)/include/starpu_bitmap.h \
  223. $(top_srcdir)/include/starpu_bound.h \
  224. $(top_srcdir)/include/starpu_clusters_util.h \
  225. $(top_srcdir)/include/starpu_cublas.h \
  226. $(top_srcdir)/include/starpu_cusparse.h \
  227. $(top_srcdir)/include/starpu_cuda.h \
  228. $(top_srcdir)/include/starpu_data_filters.h \
  229. $(top_srcdir)/include/starpu_data.h \
  230. $(top_srcdir)/include/starpu_data_interfaces.h \
  231. $(top_srcdir)/include/starpu_deprecated_api.h \
  232. $(top_srcdir)/include/starpu_disk.h \
  233. $(top_srcdir)/include/starpu_driver.h \
  234. $(top_srcdir)/include/starpu_expert.h \
  235. $(top_srcdir)/include/starpu_fxt.h \
  236. $(top_srcdir)/include/starpu_hash.h \
  237. $(top_srcdir)/include/starpu_mic.h \
  238. $(top_srcdir)/include/starpu_mod.f90 \
  239. $(top_srcdir)/include/starpu_opencl.h \
  240. $(top_srcdir)/include/starpu_openmp.h \
  241. $(top_srcdir)/include/starpu_perfmodel.h \
  242. $(top_srcdir)/include/starpu_profiling.h \
  243. $(top_srcdir)/include/starpu_rand.h \
  244. $(top_srcdir)/include/starpu_scc.h \
  245. $(top_srcdir)/include/starpu_sched_component.h \
  246. $(top_srcdir)/include/starpu_sched_ctx.h \
  247. $(top_srcdir)/include/starpu_sched_ctx_hypervisor.h \
  248. $(top_srcdir)/include/starpu_scheduler.h \
  249. $(top_srcdir)/include/starpu_simgrid_wrap.h \
  250. $(top_srcdir)/include/starpu_sink.h \
  251. $(top_srcdir)/include/starpu_stdlib.h \
  252. $(top_srcdir)/include/starpu_task_bundle.h \
  253. $(top_srcdir)/include/starpu_task.h \
  254. $(top_srcdir)/include/starpu_task_list.h \
  255. $(top_srcdir)/include/starpu_task_util.h \
  256. $(top_srcdir)/include/starpu_thread.h \
  257. $(top_srcdir)/include/starpu_thread_util.h \
  258. $(top_srcdir)/include/starpu_top.h \
  259. $(top_srcdir)/include/starpu_tree.h \
  260. $(top_srcdir)/include/starpu_util.h \
  261. $(top_srcdir)/include/starpu_worker.h \
  262. $(top_srcdir)/include/fstarpu_mod.f90 \
  263. $(top_srcdir)/mpi/include/starpu_mpi.h \
  264. $(top_srcdir)/mpi/include/starpu_mpi_lb.h \
  265. $(top_srcdir)/mpi/include/fstarpu_mpi_mod.f90 \
  266. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor.h \
  267. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_config.h \
  268. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_lp.h \
  269. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_monitoring.h \
  270. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_policy.h \
  271. $(top_srcdir)/starpurm/include/starpurm.h
  272. $(DOX_TAG): $(dox_inputs)
  273. @rm -fr $(DOX_HTML_DIR) $(DOX_LATEX_DIR)
  274. @$(DOXYGEN) $(DOX_CONFIG)
  275. @$(SED) -i 's/ModuleDocumentation <\/li>/<a class="el" href="modules.html">Modules<\/a>/' html/index.html
  276. @$(SED) -i 's/FileDocumentation <\/li>/<a class="el" href="files.html">Files<\/a>/' html/index.html
  277. # 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
  278. @if test -f html/navtree.js ; then $(SED) -i 's/\[ "Files", "Files.html", null \]/\[ "", "Files.html", null \]/' html/navtree.js ; fi
  279. @$(SED) -i 's/.*"Files.html".*//' html/pages.html
  280. @if test -f latex/main.tex ; then mv latex/main.tex latex/index.tex ; fi
  281. @$(SED) -i '/\\begin{titlepage}/,$$d' $(DOX_LATEX_DIR)/refman.tex
  282. @cat $(top_srcdir)/doc/doxygen/refman.tex >> $(DOX_LATEX_DIR)/refman.tex
  283. $(DOX_PDF): $(DOX_TAG) refman.tex
  284. @cp $(top_srcdir)/doc/doxygen/chapters/version.sty $(DOX_LATEX_DIR)
  285. @cp $(top_srcdir)/doc/doxygen/chapters/images/*pdf $(DOX_LATEX_DIR)
  286. @echo $(PDFLATEX) $(DOX_LATEX_DIR)/refman.tex
  287. @cd $(DOX_LATEX_DIR) ;\
  288. rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out ;\
  289. $(SED) -i -e 's/__env__/\\_Environment Variables!/' -e 's/\\-\\_\\-\\-\\_\\-env\\-\\_\\-\\-\\_\\-//' ExecutionConfigurationThroughEnvironmentVariables.tex ;\
  290. $(SED) -i -e 's/__configure__/\\_Configure Options!/' -e 's/\\-\\_\\-\\-\\_\\-configure\\-\\_\\-\\-\\_\\-//' CompilationConfiguration.tex ;\
  291. $(SED) -i s'/\\item Module\\.Documentation/\\item \\hyperlink{ModuleDocumentation}{Module Documentation}/' index.tex ;\
  292. $(SED) -i s'/\\item File\\.Documentation/\\item \\hyperlink{FileDocumentation}{File Documentation}/' index.tex ;\
  293. $(PDFLATEX) refman.tex ;\
  294. $(MAKEINDEX) refman.idx ;\
  295. $(PDFLATEX) refman.tex ;\
  296. done=0; repeat=5 ;\
  297. while test $$done = 0 -a $$repeat -gt 0; do \
  298. if $(EGREP) 'Rerun (LaTeX|to get cross-references right)' refman.log > /dev/null 2>&1; then \
  299. $(PDFLATEX) refman.tex; \
  300. repeat=`expr $$repeat - 1`; \
  301. else \
  302. done=1; \
  303. fi; \
  304. done
  305. mv $(DOX_LATEX_DIR)/refman.pdf $(DOX_PDF)
  306. CLEANFILES = $(DOX_TAG) starpu_config.h \
  307. -r \
  308. $(DOX_HTML_DIR) \
  309. $(DOX_LATEX_DIR) \
  310. $(DOX_PDF)
  311. endif
  312. EXTRA_DIST += doxygen.cfg refman.tex \
  313. $(chapters) $(images)
  314. # Rule to update documentation on web server. Should only be used locally.
  315. PUBLISHHOST ?= gforge
  316. update-web: $(DOX_PDF)
  317. scp -pr starpu.pdf html $(PUBLISHHOST):/home/groups/starpu/htdocs/doc