Makefile.am 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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 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/advanced_examples.doxy \
  23. chapters/basic_examples.doxy \
  24. chapters/building.doxy \
  25. chapters/c_extensions.doxy \
  26. chapters/fft_support.doxy \
  27. chapters/introduction.doxy \
  28. chapters/mpi_support.doxy \
  29. chapters/optimize_performance.doxy \
  30. chapters/performance_feedback.doxy \
  31. chapters/scheduling_context_hypervisor.doxy \
  32. chapters/scheduling_contexts.doxy \
  33. chapters/out_of_core.doxy \
  34. chapters/socl_opencl_extensions.doxy \
  35. chapters/tips_and_tricks.doxy \
  36. chapters/environment_variables.doxy \
  37. chapters/configure_options.doxy \
  38. chapters/fdl-1.3.doxy \
  39. chapters/scaling-vector-example.doxy \
  40. chapters/mic_scc_support.doxy \
  41. chapters/files.doxy \
  42. chapters/code/hello_pragma2.c \
  43. chapters/code/hello_pragma.c \
  44. chapters/code/scal_pragma.cu \
  45. chapters/code/matmul_pragma.c \
  46. chapters/code/matmul_pragma2.c \
  47. chapters/code/cholesky_pragma.c \
  48. chapters/code/forkmode.c \
  49. chapters/code/multiformat.c \
  50. chapters/code/complex.c \
  51. chapters/code/simgrid.c \
  52. chapters/code/vector_scal_c.c \
  53. chapters/code/vector_scal_cpu.c \
  54. chapters/code/vector_scal_cuda.cu \
  55. chapters/code/vector_scal_opencl.c \
  56. chapters/code/vector_scal_opencl_codelet.cl \
  57. chapters/code/disk_copy.c \
  58. chapters/code/disk_compute.c \
  59. chapters/api/codelet_and_tasks.doxy \
  60. chapters/api/cuda_extensions.doxy \
  61. chapters/api/data_interfaces.doxy \
  62. chapters/api/data_management.doxy \
  63. chapters/api/data_partition.doxy \
  64. chapters/api/data_out_of_core.doxy \
  65. chapters/api/expert_mode.doxy \
  66. chapters/api/explicit_dependencies.doxy \
  67. chapters/api/fft_support.doxy \
  68. chapters/api/fxt_support.doxy \
  69. chapters/api/implicit_dependencies.doxy \
  70. chapters/api/initialization.doxy \
  71. chapters/api/insert_task.doxy \
  72. chapters/api/lower_bound.doxy \
  73. chapters/api/misc_helpers.doxy \
  74. chapters/api/mpi.doxy \
  75. chapters/api/multiformat_data_interface.doxy \
  76. chapters/api/opencl_extensions.doxy \
  77. chapters/api/mic_extensions.doxy \
  78. chapters/api/scc_extensions.doxy \
  79. chapters/api/parallel_tasks.doxy \
  80. chapters/api/performance_model.doxy \
  81. chapters/api/profiling.doxy \
  82. chapters/api/running_driver.doxy \
  83. chapters/api/scheduling_context_hypervisor.doxy \
  84. chapters/api/scheduling_contexts.doxy \
  85. chapters/api/scheduling_policy.doxy \
  86. chapters/api/standard_memory_library.doxy \
  87. chapters/api/task_bundles.doxy \
  88. chapters/api/task_lists.doxy \
  89. chapters/api/top.doxy \
  90. chapters/api/versioning.doxy \
  91. chapters/api/workers.doxy \
  92. chapters/api/threads.doxy
  93. starpu_config.h: $(top_srcdir)/include/starpu_config.h.in
  94. sed 's/#undef \(.*\)/#define \1 1/' $< > $@
  95. chapters/version.sty: $(chapters)
  96. for f in $(chapters) ; do \
  97. if test -f $(top_srcdir)/doc/doxygen/$$f ; then stat --format=%Y $(top_srcdir)/doc/doxygen/$$f ; fi \
  98. done | sort -r | head -1 > timestamp
  99. if test -s timestamp ; then \
  100. LC_ALL=C date --date=@`cat timestamp` +"%d %B %Y" > timestamp_updated ;\
  101. LC_ALL=C date --date=@`cat timestamp` +"%B %Y" > timestamp_updated_month ;\
  102. fi
  103. if test -s timestamp_updated ; then \
  104. echo "\newcommand{\STARPUUPDATED}{"`cat timestamp_updated`"}" > $(top_srcdir)/doc/doxygen/chapters/version.sty;\
  105. else \
  106. echo "\newcommand{\STARPUUPDATED}{unknown date}" > $(top_srcdir)/doc/doxygen/chapters/version.sty;\
  107. fi
  108. echo "\newcommand{\STARPUVERSION}{$(VERSION)}" >> $(top_srcdir)/doc/doxygen/chapters/version.sty
  109. for f in timestamp timestamp_updated timestamp_updated_month ; do \
  110. if test -f $$f ; then $(RM) $$f ; fi ;\
  111. done
  112. chapters/version.html: $(chapters)
  113. for f in $(chapters) ; do \
  114. if test -f $(top_srcdir)/doc/doxygen/$$f ; then stat --format=%Y $(top_srcdir)/doc/doxygen/$$f ; fi \
  115. done | sort -r | head -1 > timestamp
  116. if test -s timestamp ; then \
  117. LC_ALL=C date --date=@`cat timestamp` +"%d %B %Y" > timestamp_updated ;\
  118. LC_ALL=C date --date=@`cat timestamp` +"%B %Y" > timestamp_updated_month ;\
  119. fi
  120. echo "This manual documents the usage of StarPU version $(VERSION)." > $(top_srcdir)/doc/doxygen/chapters/version.html
  121. if test -s timestamp_updated ; then \
  122. echo "Its contents was last updated on "`cat timestamp_updated`"." >> $(top_srcdir)/doc/doxygen/chapters/version.html;\
  123. else \
  124. echo "Its contents was last updated on <em>unknown_date</em>." >> $(top_srcdir)/doc/doxygen/chapters/version.html;\
  125. fi
  126. for f in timestamp timestamp_updated timestamp_updated_month ; do \
  127. if test -f $$f ; then $(RM) $$f ; fi ;\
  128. done
  129. EXTRA_DIST = \
  130. $(chapters) \
  131. chapters/version.sty \
  132. chapters/version.html \
  133. chapters/tasks_size_overhead.png \
  134. chapters/tasks_size_overhead.eps \
  135. chapters/tasks_size_overhead.pdf \
  136. chapters/starpu_non_linear_memset_regression_based.png \
  137. chapters/starpu_non_linear_memset_regression_based.eps \
  138. chapters/starpu_non_linear_memset_regression_based.pdf \
  139. chapters/starpu_starpu_slu_lu_model_11.png \
  140. chapters/starpu_starpu_slu_lu_model_11.eps \
  141. chapters/starpu_starpu_slu_lu_model_11.pdf \
  142. doxygen.cfg \
  143. refman.tex
  144. dox_inputs = $(DOX_CONFIG) \
  145. $(chapters) \
  146. starpu_config.h \
  147. chapters/version.sty \
  148. chapters/version.html \
  149. $(top_srcdir)/include/starpu.h \
  150. $(top_srcdir)/include/starpu_data_filters.h \
  151. $(top_srcdir)/include/starpu_data_interfaces.h \
  152. $(top_srcdir)/include/starpu_disk.h \
  153. $(top_srcdir)/include/starpu_worker.h \
  154. $(top_srcdir)/include/starpu_task.h \
  155. $(top_srcdir)/include/starpu_task_bundle.h \
  156. $(top_srcdir)/include/starpu_task_list.h \
  157. $(top_srcdir)/include/starpu_task_util.h \
  158. $(top_srcdir)/include/starpu_data.h \
  159. $(top_srcdir)/include/starpu_perfmodel.h \
  160. $(top_srcdir)/include/starpu_util.h \
  161. $(top_srcdir)/include/starpu_fxt.h \
  162. $(top_srcdir)/include/starpu_cuda.h \
  163. $(top_srcdir)/include/starpu_opencl.h \
  164. $(top_srcdir)/include/starpu_sink.h \
  165. $(top_srcdir)/include/starpu_mic.h \
  166. $(top_srcdir)/include/starpu_scc.h \
  167. $(top_srcdir)/include/starpu_expert.h \
  168. $(top_srcdir)/include/starpu_profiling.h \
  169. $(top_srcdir)/include/starpu_bound.h \
  170. $(top_srcdir)/include/starpu_scheduler.h \
  171. $(top_srcdir)/include/starpu_sched_ctx.h \
  172. $(top_srcdir)/include/starpu_top.h \
  173. $(top_srcdir)/include/starpu_hash.h \
  174. $(top_srcdir)/include/starpu_rand.h \
  175. $(top_srcdir)/include/starpu_cublas.h \
  176. $(top_srcdir)/include/starpu_driver.h \
  177. $(top_srcdir)/include/starpu_stdlib.h \
  178. $(top_srcdir)/include/starpu_thread.h \
  179. $(top_srcdir)/include/starpu_thread_util.h \
  180. $(top_srcdir)/mpi/include/starpu_mpi.h \
  181. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor.h \
  182. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_config.h \
  183. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_lp.h \
  184. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_monitoring.h \
  185. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_policy.h
  186. $(DOX_TAG): $(dox_inputs)
  187. rm -fr $(DOX_HTML_DIR) $(DOX_LATEX_DIR)
  188. $(DOXYGEN) $(DOX_CONFIG)
  189. sed -i 's/ModuleDocumentation <\/li>/<a class="el" href="modules.html">Modules<\/a>/' html/index.html
  190. sed -i 's/FileDocumentation <\/li>/<a class="el" href="files.html">Files<\/a>/' html/index.html
  191. dist_pdf_DATA = $(DOX_PDF)
  192. $(DOX_PDF): $(DOX_TAG) refman.tex
  193. cp $(top_srcdir)/doc/doxygen/chapters/version.sty $(DOX_LATEX_DIR)
  194. cp $(top_srcdir)/doc/doxygen/chapters/*pdf $(DOX_LATEX_DIR)
  195. cd $(DOX_LATEX_DIR); \
  196. rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
  197. sed -i -e 's/__env__/\\_Environment Variables!/' -e 's/\\-\\_\\-\\-\\_\\-env\\-\\_\\-\\-\\_\\-//' ExecutionConfigurationThroughEnvironmentVariables.tex ;\
  198. sed -i -e 's/__configure__/\\_Configure Options!/' -e 's/\\-\\_\\-\\-\\_\\-configure\\-\\_\\-\\-\\_\\-//' CompilationConfiguration.tex ;\
  199. sed -i s'/\\item Module\\-Documentation/\\item \\hyperlink{ModuleDocumentation}{Module Documentation}/' index.tex ;\
  200. sed -i s'/\\item File\\-Documentation/\\item \\hyperlink{FileDocumentation}{File Documentation}/' index.tex ;\
  201. $(PDFLATEX) refman.tex; \
  202. $(MAKEINDEX) refman.idx;\
  203. $(PDFLATEX) refman.tex; \
  204. done=0; repeat=5; \
  205. while test $$done = 0 -a $$repeat -gt 0; do \
  206. if $(EGREP) 'Rerun (LaTeX|to get cross-references right)' refman.log > /dev/null 2>&1; then \
  207. $(PDFLATEX) refman.tex; \
  208. repeat=`expr $$repeat - 1`; \
  209. else \
  210. done=1; \
  211. fi; \
  212. done; \
  213. mv refman.pdf ../$(DOX_PDF)
  214. CLEANFILES = $(DOX_TAG) starpu_config.h \
  215. -r \
  216. $(DOX_HTML_DIR) \
  217. $(DOX_LATEX_DIR) \
  218. $(DOX_PDF)
  219. # Rule to update documentation on web server. Should only be used locally.
  220. PUBLISHHOST ?= sync
  221. update-web: $(DOX_PDF)
  222. scp -pr starpu.pdf html $(PUBLISHHOST):/web/runtime/html/StarPU/doc
  223. showcheck:
  224. -cat /dev/null