Makefile.am 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009, 2011, 2013-2014 Université de Bordeaux
  4. # Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 CNRS
  5. # Copyright (C) 2014 INRIA
  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. DOXYGEN = doxygen
  18. PDFLATEX = pdflatex
  19. MAKEINDEX = makeindex
  20. DOX_DIR = $(top_builddir)/doc/doxygen
  21. DOX_CONFIG = $(top_srcdir)/doc/doxygen/doxygen.cfg
  22. DOX_HTML_DIR = html
  23. DOX_LATEX_DIR = latex
  24. DOX_PDF = $(DOX_DIR)/starpu.pdf
  25. DOX_TAG = starpu.tag
  26. txtdir = $(docdir)/manual
  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. if BUILD_DOC
  50. chapters = \
  51. chapters/000_introduction.doxy \
  52. chapters/101_building.doxy \
  53. chapters/110_basic_examples.doxy \
  54. chapters/201_advanced_examples.doxy \
  55. chapters/210_check_list_performance.doxy \
  56. chapters/301_tasks.doxy \
  57. chapters/310_data_management.doxy \
  58. chapters/320_scheduling.doxy \
  59. chapters/330_scheduling_contexts.doxy \
  60. chapters/340_scheduling_context_hypervisor.doxy \
  61. chapters/350_modularized_scheduler.doxy \
  62. chapters/360_debugging_tools.doxy \
  63. chapters/370_online_performance_tools.doxy \
  64. chapters/380_offline_performance_tools.doxy \
  65. chapters/390_faq.doxy \
  66. chapters/401_out_of_core.doxy \
  67. chapters/410_mpi_support.doxy \
  68. chapters/420_fft_support.doxy \
  69. chapters/430_mic_scc_support.doxy \
  70. chapters/440_c_extensions.doxy \
  71. chapters/450_native_fortran_support.doxy \
  72. chapters/460_socl_opencl_extensions.doxy \
  73. chapters/470_simgrid.doxy \
  74. chapters/480_openmp_runtime_support.doxy \
  75. chapters/490_clustering_a_machine.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/hello_pragma2.c \
  82. chapters/code/hello_pragma.c \
  83. chapters/code/scal_pragma.cu \
  84. chapters/code/matmul_pragma.c \
  85. chapters/code/matmul_pragma2.c \
  86. chapters/code/cholesky_pragma.c \
  87. chapters/code/forkmode.c \
  88. chapters/code/multiformat.c \
  89. chapters/code/complex.c \
  90. chapters/code/simgrid.c \
  91. chapters/code/vector_scal_c.c \
  92. chapters/code/vector_scal_cpu.c \
  93. chapters/code/vector_scal_cuda.cu \
  94. chapters/code/vector_scal_opencl.c \
  95. chapters/code/vector_scal_opencl_codelet.cl \
  96. chapters/code/disk_copy.c \
  97. chapters/code/disk_compute.c \
  98. chapters/code/nf_initexit.f90 \
  99. chapters/api/codelet_and_tasks.doxy \
  100. chapters/api/cuda_extensions.doxy \
  101. chapters/api/data_interfaces.doxy \
  102. chapters/api/data_management.doxy \
  103. chapters/api/data_partition.doxy \
  104. chapters/api/data_out_of_core.doxy \
  105. chapters/api/expert_mode.doxy \
  106. chapters/api/explicit_dependencies.doxy \
  107. chapters/api/fft_support.doxy \
  108. chapters/api/fxt_support.doxy \
  109. chapters/api/implicit_dependencies.doxy \
  110. chapters/api/initialization.doxy \
  111. chapters/api/insert_task.doxy \
  112. chapters/api/lower_bound.doxy \
  113. chapters/api/misc_helpers.doxy \
  114. chapters/api/mpi.doxy \
  115. chapters/api/multiformat_data_interface.doxy \
  116. chapters/api/opencl_extensions.doxy \
  117. chapters/api/openmp_runtime_support.doxy \
  118. chapters/api/mic_extensions.doxy \
  119. chapters/api/scc_extensions.doxy \
  120. chapters/api/parallel_tasks.doxy \
  121. chapters/api/performance_model.doxy \
  122. chapters/api/profiling.doxy \
  123. chapters/api/running_driver.doxy \
  124. chapters/api/scheduling_contexts.doxy \
  125. chapters/api/scheduling_policy.doxy \
  126. chapters/api/standard_memory_library.doxy \
  127. chapters/api/task_bundles.doxy \
  128. chapters/api/task_lists.doxy \
  129. chapters/api/top.doxy \
  130. chapters/api/versioning.doxy \
  131. chapters/api/workers.doxy \
  132. chapters/api/threads.doxy \
  133. chapters/api/bitmap.doxy \
  134. chapters/api/tree.doxy \
  135. chapters/api/toolbox.doxy \
  136. chapters/api/sc_hypervisor/sc_hypervisor.doxy \
  137. chapters/api/sc_hypervisor/sc_hypervisor_usage.doxy \
  138. chapters/api/modularized_scheduler.doxy \
  139. chapters/api/clustering_machine.doxy
  140. starpu_config.h: $(top_srcdir)/include/starpu_config.h.in
  141. @$(SED) 's/#undef \(.*\)/#define \1 1/' $< > $@
  142. chapters/version.sty: $(chapters)
  143. @for f in $(chapters) ; do \
  144. if test -f $(top_srcdir)/doc/doxygen/$$f ; then $(PROG_STAT) --format=%Y $(top_srcdir)/doc/doxygen/$$f ; fi \
  145. done | sort -r | head -1 > timestamp_sty
  146. @if test -s timestamp_sty ; then \
  147. LC_ALL=C $(PROG_DATE) --date=@`cat timestamp_sty` +"%d %B %Y" > timestamp_sty_updated ;\
  148. LC_ALL=C $(PROG_DATE) --date=@`cat timestamp_sty` +"%B %Y" > timestamp_sty_updated_month ;\
  149. fi
  150. @if test -s timestamp_sty_updated ; then \
  151. echo ':newcommand{:STARPUUPDATED}{'`cat timestamp_sty_updated`'}' > $(top_srcdir)/doc/doxygen/chapters/version.sty;\
  152. else \
  153. echo ':newcommand{:STARPUUPDATED}{unknown date}' > $(top_srcdir)/doc/doxygen/chapters/version.sty;\
  154. fi
  155. @echo ':newcommand{:STARPUVERSION}{$(VERSION)}' >> $(top_srcdir)/doc/doxygen/chapters/version.sty
  156. @$(SED) -i 's/:/\\/g' $(top_srcdir)/doc/doxygen/chapters/version.sty
  157. @for f in timestamp_sty timestamp_sty_updated timestamp_sty_updated_month ; do \
  158. if test -f $$f ; then $(RM) $$f ; fi ;\
  159. done
  160. chapters/version.html: $(chapters)
  161. @for f in $(chapters) ; do \
  162. if test -f $(top_srcdir)/doc/doxygen/$$f ; then $(PROG_STAT) --format=%Y $(top_srcdir)/doc/doxygen/$$f ; fi \
  163. done | sort -r | head -1 > timestamp_html
  164. @if test -s timestamp_html ; then \
  165. LC_ALL=C $(PROG_DATE) --date=@`cat timestamp_html` +"%d %B %Y" > timestamp_html_updated ;\
  166. LC_ALL=C $(PROG_DATE) --date=@`cat timestamp_html` +"%B %Y" > timestamp_html_updated_month ;\
  167. fi
  168. @echo "This manual documents the usage of StarPU version $(VERSION)." > $(top_srcdir)/doc/doxygen/chapters/version.html
  169. @if test -s timestamp_html_updated ; then \
  170. echo "Its contents was last updated on "`cat timestamp_html_updated`"." >> $(top_srcdir)/doc/doxygen/chapters/version.html;\
  171. else \
  172. echo "Its contents was last updated on <em>unknown_date</em>." >> $(top_srcdir)/doc/doxygen/chapters/version.html;\
  173. fi
  174. @for f in timestamp_html timestamp_html_updated timestamp_html_updated_month ; do \
  175. if test -f $$f ; then $(RM) $$f ; fi ;\
  176. done
  177. dox_inputs = $(DOX_CONFIG) \
  178. $(chapters) \
  179. starpu_config.h \
  180. chapters/version.sty \
  181. chapters/version.html \
  182. $(top_srcdir)/include/starpu.h \
  183. $(top_srcdir)/include/starpu_bitmap.h \
  184. $(top_srcdir)/include/starpu_bound.h \
  185. $(top_srcdir)/include/starpu_clusters_util.h \
  186. $(top_srcdir)/include/starpu_cublas.h \
  187. $(top_srcdir)/include/starpu_cuda.h \
  188. $(top_srcdir)/include/starpu_data_filters.h \
  189. $(top_srcdir)/include/starpu_data.h \
  190. $(top_srcdir)/include/starpu_data_interfaces.h \
  191. $(top_srcdir)/include/starpu_deprecated_api.h \
  192. $(top_srcdir)/include/starpu_disk.h \
  193. $(top_srcdir)/include/starpu_driver.h \
  194. $(top_srcdir)/include/starpu_expert.h \
  195. $(top_srcdir)/include/starpu_fxt.h \
  196. $(top_srcdir)/include/starpu_hash.h \
  197. $(top_srcdir)/include/starpu_mic.h \
  198. $(top_srcdir)/include/starpu_mod.f90 \
  199. $(top_srcdir)/include/starpu_opencl.h \
  200. $(top_srcdir)/include/starpu_openmp.h \
  201. $(top_srcdir)/include/starpu_perfmodel.h \
  202. $(top_srcdir)/include/starpu_profiling.h \
  203. $(top_srcdir)/include/starpu_rand.h \
  204. $(top_srcdir)/include/starpu_scc.h \
  205. $(top_srcdir)/include/starpu_sched_component.h \
  206. $(top_srcdir)/include/starpu_sched_ctx.h \
  207. $(top_srcdir)/include/starpu_sched_ctx_hypervisor.h \
  208. $(top_srcdir)/include/starpu_scheduler.h \
  209. $(top_srcdir)/include/starpu_simgrid_wrap.h \
  210. $(top_srcdir)/include/starpu_sink.h \
  211. $(top_srcdir)/include/starpu_stdlib.h \
  212. $(top_srcdir)/include/starpu_task_bundle.h \
  213. $(top_srcdir)/include/starpu_task.h \
  214. $(top_srcdir)/include/starpu_task_list.h \
  215. $(top_srcdir)/include/starpu_task_util.h \
  216. $(top_srcdir)/include/starpu_thread.h \
  217. $(top_srcdir)/include/starpu_thread_util.h \
  218. $(top_srcdir)/include/starpu_top.h \
  219. $(top_srcdir)/include/starpu_tree.h \
  220. $(top_srcdir)/include/starpu_util.h \
  221. $(top_srcdir)/include/starpu_worker.h \
  222. $(top_srcdir)/include/fstarpu_mod.f90 \
  223. $(top_srcdir)/mpi/include/starpu_mpi.h \
  224. $(top_srcdir)/mpi/include/fstarpu_mpi_mod.f90 \
  225. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor.h \
  226. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_config.h \
  227. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_lp.h \
  228. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_monitoring.h \
  229. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_policy.h
  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. $(PDFLATEX) refman.tex > /dev/null ;\
  252. $(MAKEINDEX) refman.idx > /dev/null 2>&1 ;\
  253. $(PDFLATEX) refman.tex > /dev/null ;\
  254. done=0; repeat=5 ;\
  255. while test $$done = 0 -a $$repeat -gt 0; do \
  256. if $(EGREP) 'Rerun (LaTeX|to get cross-references right)' refman.log > /dev/null 2>&1; then \
  257. $(PDFLATEX) refman.tex; \
  258. repeat=`expr $$repeat - 1`; \
  259. else \
  260. done=1; \
  261. fi; \
  262. done
  263. mv $(DOX_LATEX_DIR)/refman.pdf $(DOX_PDF)
  264. CLEANFILES = $(DOX_TAG) starpu_config.h \
  265. -r \
  266. $(DOX_HTML_DIR) \
  267. $(DOX_LATEX_DIR) \
  268. $(DOX_PDF)
  269. endif
  270. # Rule to update documentation on web server. Should only be used locally.
  271. PUBLISHHOST ?= gforge
  272. update-web: $(DOX_PDF)
  273. scp -pr starpu.pdf html $(PUBLISHHOST):/home/groups/starpu/htdocs/doc
  274. showcheck:
  275. -cat /dev/null