Makefile.am 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2013 Université de Bordeaux 1
  4. # Copyright (C) 2010, 2011, 2012, 2013 Centre National de la Recherche Scientifique
  5. # Copyright (C) 2011 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. SUBDIRS =
  18. CLEANFILES = *.gcno *.gcda *.linkinfo
  19. EXTRA_DIST = dolib.c
  20. ldflags =
  21. libstarpu_so_version = $(LIBSTARPU_INTERFACE_CURRENT):$(LIBSTARPU_INTERFACE_REVISION):$(LIBSTARPU_INTERFACE_AGE)
  22. if STARPU_HAVE_WINDOWS
  23. LC_MESSAGES=C
  24. export LC_MESSAGES
  25. ldflags += -Xlinker --output-def -Xlinker .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.def
  26. if STARPU_HAVE_MS_LIB
  27. .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.lib: libstarpu-@STARPU_EFFECTIVE_VERSION@.la dolib
  28. ./dolib "$(STARPU_MS_LIB)" $(STARPU_MS_LIB_ARCH) .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.def @STARPU_EFFECTIVE_VERSION@ $(libstarpu_so_version) .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.lib
  29. all-local: .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.lib
  30. endif STARPU_HAVE_MS_LIB
  31. install-exec-hook:
  32. $(INSTALL) .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.def $(DESTDIR)$(libdir)
  33. if STARPU_HAVE_MS_LIB
  34. $(INSTALL) .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.lib $(DESTDIR)$(libdir)
  35. $(INSTALL) .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.exp $(DESTDIR)$(libdir)
  36. endif STARPU_HAVE_MS_LIB
  37. endif STARPU_HAVE_WINDOWS
  38. lib_LTLIBRARIES = libstarpu-@STARPU_EFFECTIVE_VERSION@.la
  39. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_CPPFLAGS = -I$(top_srcdir)/include/ $(STARPU_RCCE_CPPFLAGS) -DBUILDING_STARPU
  40. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_CFLAGS = $(GLOBAL_AM_CFLAGS) $(HWLOC_CFLAGS) $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(STARPU_COI_CPPFLAGS) $(STARPU_RCCE_CFLAGS) $(FXT_CFLAGS)
  41. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_LIBADD = -lm $(HWLOC_LIBS) $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS) $(STARPU_COI_LDFLAGS) $(STARPU_RCCE_LDFLAGS) $(FXT_LIBS) $(STARPU_GLPK_LDFLAGS)
  42. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_LDFLAGS = $(ldflags) $(FXT_LDFLAGS) -no-undefined \
  43. -version-info $(libstarpu_so_version)
  44. noinst_HEADERS = \
  45. core/dependencies/data_concurrency.h \
  46. core/dependencies/cg.h \
  47. core/dependencies/tags.h \
  48. core/dependencies/implicit_data_deps.h \
  49. core/progress_hook.h \
  50. core/sched_policy.h \
  51. core/sched_ctx.h \
  52. core/perfmodel/perfmodel.h \
  53. core/perfmodel/regression.h \
  54. core/jobs.h \
  55. core/task.h \
  56. core/workers.h \
  57. core/topology.h \
  58. core/debug.h \
  59. core/errorcheck.h \
  60. core/combined_workers.h \
  61. core/simgrid.h \
  62. core/task_bundle.h \
  63. sched_policies/detect_combined_workers.h \
  64. sched_policies/fifo_queues.h \
  65. sched_policies/deque_queues.h \
  66. sched_policies/stack_queues.h \
  67. datawizard/footprint.h \
  68. datawizard/datawizard.h \
  69. datawizard/data_request.h \
  70. datawizard/filters.h \
  71. datawizard/write_back.h \
  72. datawizard/datastats.h \
  73. datawizard/memstats.h \
  74. datawizard/memory_manager.h \
  75. datawizard/memalloc.h \
  76. datawizard/copy_driver.h \
  77. datawizard/coherency.h \
  78. datawizard/sort_data_handles.h \
  79. datawizard/memory_nodes.h \
  80. datawizard/interfaces/data_interface.h \
  81. common/barrier.h \
  82. common/timing.h \
  83. common/list.h \
  84. common/rwlock.h \
  85. common/starpu_spinlock.h \
  86. common/fxt.h \
  87. common/utils.h \
  88. common/thread.h \
  89. common/barrier.h \
  90. common/uthash.h \
  91. common/barrier_counter.h \
  92. drivers/driver_common/driver_common.h \
  93. drivers/mp_common/mp_common.h \
  94. drivers/mp_common/source_common.h \
  95. drivers/mp_common/sink_common.h \
  96. drivers/cpu/driver_cpu.h \
  97. drivers/cuda/driver_cuda.h \
  98. drivers/opencl/driver_opencl.h \
  99. drivers/opencl/driver_opencl_utils.h \
  100. debug/starpu_debug_helpers.h \
  101. drivers/mic/driver_mic_common.h \
  102. drivers/mic/driver_mic_source.h \
  103. drivers/mic/driver_mic_sink.h \
  104. drivers/scc/driver_scc_common.h \
  105. drivers/scc/driver_scc_source.h \
  106. drivers/scc/driver_scc_sink.h \
  107. drivers/disk/driver_disk.h \
  108. debug/traces/starpu_fxt.h \
  109. profiling/bound.h \
  110. profiling/profiling.h \
  111. util/starpu_insert_task_utils.h \
  112. util/starpu_data_cpy.h \
  113. util/starpu_task_list_inline.h \
  114. starpu_parameters.h \
  115. top/starpu_top_message_queue.h \
  116. top/starpu_top_connection.h \
  117. top/starpu_top_core.h
  118. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES = \
  119. common/barrier.c \
  120. common/barrier_counter.c \
  121. common/hash.c \
  122. common/rwlock.c \
  123. common/starpu_spinlock.c \
  124. common/timing.c \
  125. common/fxt.c \
  126. common/utils.c \
  127. common/thread.c \
  128. core/jobs.c \
  129. core/task.c \
  130. core/task_bundle.c \
  131. core/workers.c \
  132. core/combined_workers.c \
  133. core/topology.c \
  134. core/disk.c \
  135. core/debug.c \
  136. core/errorcheck.c \
  137. core/progress_hook.c \
  138. core/dependencies/cg.c \
  139. core/dependencies/dependencies.c \
  140. core/dependencies/implicit_data_deps.c \
  141. core/dependencies/tags.c \
  142. core/dependencies/task_deps.c \
  143. core/dependencies/data_concurrency.c \
  144. core/perfmodel/perfmodel_history.c \
  145. core/perfmodel/perfmodel_bus.c \
  146. core/perfmodel/perfmodel.c \
  147. core/perfmodel/perfmodel_print.c \
  148. core/perfmodel/regression.c \
  149. core/sched_policy.c \
  150. core/simgrid.c \
  151. core/sched_ctx.c \
  152. core/parallel_task.c \
  153. sched_policies/eager_central_policy.c \
  154. sched_policies/eager_central_priority_policy.c \
  155. sched_policies/work_stealing_policy.c \
  156. sched_policies/deque_modeling_policy_data_aware.c \
  157. sched_policies/random_policy.c \
  158. sched_policies/stack_queues.c \
  159. sched_policies/deque_queues.c \
  160. sched_policies/fifo_queues.c \
  161. sched_policies/detect_combined_workers.c \
  162. sched_policies/parallel_heft.c \
  163. sched_policies/parallel_eager.c \
  164. drivers/driver_common/driver_common.c \
  165. drivers/disk/driver_disk.c \
  166. datawizard/memory_nodes.c \
  167. datawizard/write_back.c \
  168. datawizard/coherency.c \
  169. datawizard/data_request.c \
  170. datawizard/datawizard.c \
  171. datawizard/copy_driver.c \
  172. datawizard/filters.c \
  173. datawizard/sort_data_handles.c \
  174. datawizard/malloc.c \
  175. datawizard/memory_manager.c \
  176. datawizard/memalloc.c \
  177. datawizard/memstats.c \
  178. datawizard/footprint.c \
  179. datawizard/datastats.c \
  180. datawizard/user_interactions.c \
  181. datawizard/reduction.c \
  182. datawizard/interfaces/data_interface.c \
  183. datawizard/interfaces/bcsr_interface.c \
  184. datawizard/interfaces/coo_interface.c \
  185. datawizard/interfaces/csr_interface.c \
  186. datawizard/interfaces/matrix_filters.c \
  187. datawizard/interfaces/matrix_interface.c \
  188. datawizard/interfaces/block_filters.c \
  189. datawizard/interfaces/block_interface.c \
  190. datawizard/interfaces/vector_interface.c \
  191. datawizard/interfaces/bcsr_filters.c \
  192. datawizard/interfaces/csr_filters.c \
  193. datawizard/interfaces/vector_filters.c \
  194. datawizard/interfaces/variable_interface.c \
  195. datawizard/interfaces/void_interface.c \
  196. datawizard/interfaces/multiformat_interface.c \
  197. util/execute_on_all.c \
  198. util/starpu_create_sync_task.c \
  199. util/file.c \
  200. util/misc.c \
  201. util/starpu_data_cpy.c \
  202. util/starpu_insert_task.c \
  203. util/starpu_insert_task_utils.c \
  204. util/starpu_inlines.c \
  205. debug/traces/starpu_fxt.c \
  206. debug/traces/starpu_fxt_mpi.c \
  207. debug/traces/starpu_fxt_dag.c \
  208. debug/traces/starpu_paje.c \
  209. debug/latency.c \
  210. debug/structures_size.c \
  211. profiling/profiling.c \
  212. profiling/bound.c \
  213. profiling/profiling_helpers.c \
  214. top/starpu_top.c \
  215. top/starpu_top_task.c \
  216. top/starpu_top_message_queue.c \
  217. top/starpu_top_connection.c \
  218. worker_collection/worker_list.c
  219. if STARPU_USE_CPU
  220. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/cpu/driver_cpu.c
  221. endif
  222. if STARPU_USE_CUDA
  223. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/cuda/driver_cuda.c
  224. else
  225. if STARPU_SIMGRID
  226. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/cuda/driver_cuda.c
  227. endif
  228. endif
  229. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/cuda/starpu_cublas.c
  230. if STARPU_USE_OPENCL
  231. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/opencl/driver_opencl.c
  232. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/opencl/driver_opencl_utils.c
  233. else
  234. if STARPU_SIMGRID
  235. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/opencl/driver_opencl.c
  236. endif
  237. endif
  238. if STARPU_USE_SCC
  239. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/scc/driver_scc_common.c
  240. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/scc/driver_scc_source.c
  241. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/scc/driver_scc_sink.c
  242. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/scc/driver_scc_utils.c
  243. endif
  244. #########################################
  245. # #
  246. # Generic MP compilation #
  247. # #
  248. #########################################
  249. if STARPU_USE_MP
  250. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mp_common/mp_common.c
  251. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mp_common/source_common.c
  252. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mp_common/sink_common.c
  253. endif
  254. #########################################
  255. # #
  256. # MIC compilation #
  257. # #
  258. #########################################
  259. if STARPU_USE_MIC
  260. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mic/driver_mic_common.c
  261. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mic/driver_mic_source.c
  262. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mic/driver_mic_sink.c
  263. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mic/driver_mic_utils.c
  264. endif
  265. #########################################
  266. showcheck:
  267. -cat /dev/null