Makefile.am 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2015 Université de Bordeaux
  4. # Copyright (C) 2010, 2011, 2012, 2013, 2015 CNRS
  5. # Copyright (C) 2011, 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. 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/ -DBUILDING_STARPU $(GLOBAL_AM_CFLAGS) $(HWLOC_CFLAGS) $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(FXT_CFLAGS) $(STARPU_COI_CPPFLAGS) $(STARPU_SCIF_CPPFLAGS) $(STARPU_RCCE_CFLAGS) $(STARPU_RCCE_CPPFLAGS) -DSTARPU_DATADIR='"$(datadir)"'
  40. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_LIBADD = -lm $(HWLOC_LIBS) $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS) $(FXT_LIBS) $(STARPU_GLPK_LDFLAGS) $(STARPU_COI_LDFLAGS) $(STARPU_SCIF_LDFLAGS) $(STARPU_RCCE_LDFLAGS) $(STARPU_LEVELDB_LDFLAGS)
  41. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_LDFLAGS = $(ldflags) $(FXT_LDFLAGS) -no-undefined \
  42. -version-info $(libstarpu_so_version)
  43. noinst_HEADERS = \
  44. core/dependencies/data_concurrency.h \
  45. core/dependencies/cg.h \
  46. core/dependencies/tags.h \
  47. core/dependencies/implicit_data_deps.h \
  48. core/disk.h \
  49. core/disk_ops/unistd/disk_unistd_global.h \
  50. core/progress_hook.h \
  51. core/sched_policy.h \
  52. core/sched_ctx.h \
  53. core/sched_ctx_list.h \
  54. core/perfmodel/perfmodel.h \
  55. core/perfmodel/regression.h \
  56. core/jobs.h \
  57. core/task.h \
  58. core/workers.h \
  59. core/topology.h \
  60. core/debug.h \
  61. core/errorcheck.h \
  62. core/combined_workers.h \
  63. core/simgrid.h \
  64. core/task_bundle.h \
  65. core/detect_combined_workers.h \
  66. sched_policies/helper_mct.h \
  67. sched_policies/fifo_queues.h \
  68. sched_policies/deque_queues.h \
  69. sched_policies/stack_queues.h \
  70. datawizard/footprint.h \
  71. datawizard/datawizard.h \
  72. datawizard/data_request.h \
  73. datawizard/filters.h \
  74. datawizard/write_back.h \
  75. datawizard/datastats.h \
  76. datawizard/malloc.h \
  77. datawizard/memstats.h \
  78. datawizard/memory_manager.h \
  79. datawizard/memalloc.h \
  80. datawizard/copy_driver.h \
  81. datawizard/coherency.h \
  82. datawizard/sort_data_handles.h \
  83. datawizard/memory_nodes.h \
  84. datawizard/interfaces/data_interface.h \
  85. common/barrier.h \
  86. common/timing.h \
  87. common/list.h \
  88. common/rwlock.h \
  89. common/starpu_spinlock.h \
  90. common/fxt.h \
  91. common/utils.h \
  92. common/thread.h \
  93. common/barrier.h \
  94. common/uthash.h \
  95. common/barrier_counter.h \
  96. drivers/driver_common/driver_common.h \
  97. drivers/mp_common/mp_common.h \
  98. drivers/mp_common/source_common.h \
  99. drivers/mp_common/sink_common.h \
  100. drivers/cpu/driver_cpu.h \
  101. drivers/cuda/driver_cuda.h \
  102. drivers/opencl/driver_opencl.h \
  103. drivers/opencl/driver_opencl_utils.h \
  104. debug/starpu_debug_helpers.h \
  105. drivers/mic/driver_mic_common.h \
  106. drivers/mic/driver_mic_source.h \
  107. drivers/mic/driver_mic_sink.h \
  108. drivers/scc/driver_scc_common.h \
  109. drivers/scc/driver_scc_source.h \
  110. drivers/scc/driver_scc_sink.h \
  111. drivers/disk/driver_disk.h \
  112. debug/traces/starpu_fxt.h \
  113. profiling/bound.h \
  114. profiling/profiling.h \
  115. util/openmp_runtime_support.h \
  116. util/starpu_task_insert_utils.h \
  117. util/starpu_data_cpy.h \
  118. starpu_parameters.h \
  119. top/starpu_top_message_queue.h \
  120. top/starpu_top_connection.h \
  121. top/starpu_top_core.h \
  122. sched_policies/prio_deque.h \
  123. sched_policies/sched_component.h
  124. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES = \
  125. common/barrier.c \
  126. common/barrier_counter.c \
  127. common/bitmap.c \
  128. common/hash.c \
  129. common/rwlock.c \
  130. common/starpu_spinlock.c \
  131. common/timing.c \
  132. common/fxt.c \
  133. common/utils.c \
  134. common/thread.c \
  135. core/jobs.c \
  136. core/task.c \
  137. core/task_bundle.c \
  138. core/tree.c \
  139. core/workers.c \
  140. core/combined_workers.c \
  141. core/topology.c \
  142. core/disk.c \
  143. core/debug.c \
  144. core/errorcheck.c \
  145. core/progress_hook.c \
  146. core/dependencies/cg.c \
  147. core/dependencies/dependencies.c \
  148. core/dependencies/implicit_data_deps.c \
  149. core/dependencies/tags.c \
  150. core/dependencies/task_deps.c \
  151. core/dependencies/data_concurrency.c \
  152. core/dependencies/data_arbiter_concurrency.c \
  153. core/disk_ops/disk_stdio.c \
  154. core/disk_ops/disk_unistd.c \
  155. core/disk_ops/unistd/disk_unistd_global.c \
  156. core/perfmodel/perfmodel_history.c \
  157. core/perfmodel/perfmodel_bus.c \
  158. core/perfmodel/perfmodel.c \
  159. core/perfmodel/perfmodel_print.c \
  160. core/perfmodel/perfmodel_nan.c \
  161. core/perfmodel/regression.c \
  162. core/sched_policy.c \
  163. core/simgrid.c \
  164. core/sched_ctx.c \
  165. core/sched_ctx_list.c \
  166. core/parallel_task.c \
  167. core/detect_combined_workers.c \
  168. sched_policies/eager_central_policy.c \
  169. sched_policies/eager_central_priority_policy.c \
  170. sched_policies/work_stealing_policy.c \
  171. sched_policies/locality_work_stealing_policy.c \
  172. sched_policies/deque_modeling_policy_data_aware.c \
  173. sched_policies/random_policy.c \
  174. sched_policies/stack_queues.c \
  175. sched_policies/deque_queues.c \
  176. sched_policies/fifo_queues.c \
  177. sched_policies/parallel_heft.c \
  178. sched_policies/parallel_eager.c \
  179. drivers/driver_common/driver_common.c \
  180. drivers/disk/driver_disk.c \
  181. datawizard/memory_nodes.c \
  182. datawizard/write_back.c \
  183. datawizard/coherency.c \
  184. datawizard/data_request.c \
  185. datawizard/datawizard.c \
  186. datawizard/copy_driver.c \
  187. datawizard/filters.c \
  188. datawizard/sort_data_handles.c \
  189. datawizard/malloc.c \
  190. datawizard/memory_manager.c \
  191. datawizard/memalloc.c \
  192. datawizard/memstats.c \
  193. datawizard/footprint.c \
  194. datawizard/datastats.c \
  195. datawizard/user_interactions.c \
  196. datawizard/reduction.c \
  197. datawizard/interfaces/data_interface.c \
  198. datawizard/interfaces/bcsr_interface.c \
  199. datawizard/interfaces/coo_interface.c \
  200. datawizard/interfaces/csr_interface.c \
  201. datawizard/interfaces/matrix_filters.c \
  202. datawizard/interfaces/matrix_interface.c \
  203. datawizard/interfaces/block_filters.c \
  204. datawizard/interfaces/block_interface.c \
  205. datawizard/interfaces/vector_interface.c \
  206. datawizard/interfaces/bcsr_filters.c \
  207. datawizard/interfaces/csr_filters.c \
  208. datawizard/interfaces/vector_filters.c \
  209. datawizard/interfaces/variable_interface.c \
  210. datawizard/interfaces/void_interface.c \
  211. datawizard/interfaces/multiformat_interface.c \
  212. util/execute_on_all.c \
  213. util/starpu_create_sync_task.c \
  214. util/file.c \
  215. util/misc.c \
  216. util/openmp_runtime_support.c \
  217. util/openmp_runtime_support_environment.c \
  218. util/openmp_runtime_support_omp_api.c \
  219. util/starpu_data_cpy.c \
  220. util/starpu_task_insert.c \
  221. util/starpu_task_insert_utils.c \
  222. debug/traces/starpu_fxt.c \
  223. debug/traces/starpu_fxt_mpi.c \
  224. debug/traces/starpu_fxt_dag.c \
  225. debug/traces/starpu_paje.c \
  226. debug/latency.c \
  227. debug/structures_size.c \
  228. profiling/profiling.c \
  229. profiling/bound.c \
  230. profiling/profiling_helpers.c \
  231. top/starpu_top.c \
  232. top/starpu_top_task.c \
  233. top/starpu_top_message_queue.c \
  234. top/starpu_top_connection.c \
  235. worker_collection/worker_list.c \
  236. worker_collection/worker_tree.c \
  237. sched_policies/component_worker.c \
  238. sched_policies/component_sched.c \
  239. sched_policies/component_fifo.c \
  240. sched_policies/prio_deque.c \
  241. sched_policies/helper_mct.c \
  242. sched_policies/component_prio.c \
  243. sched_policies/component_random.c \
  244. sched_policies/component_eager.c \
  245. sched_policies/component_eager_calibration.c \
  246. sched_policies/component_mct.c \
  247. sched_policies/component_heft.c \
  248. sched_policies/component_best_implementation.c \
  249. sched_policies/component_perfmodel_select.c \
  250. sched_policies/component_composed.c \
  251. sched_policies/modular_eager.c \
  252. sched_policies/modular_eager_prefetching.c \
  253. sched_policies/modular_prio.c \
  254. sched_policies/modular_prio_prefetching.c \
  255. sched_policies/modular_random.c \
  256. sched_policies/modular_random_prefetching.c \
  257. sched_policies/modular_heft.c \
  258. sched_policies/modular_heft2.c
  259. if STARPU_HAVE_LEVELDB
  260. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += core/disk_ops/disk_leveldb.cpp
  261. endif
  262. if STARPU_USE_CPU
  263. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/cpu/driver_cpu.c
  264. endif
  265. if STARPU_USE_CUDA
  266. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/cuda/driver_cuda.c
  267. else
  268. if STARPU_SIMGRID
  269. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/cuda/driver_cuda.c
  270. endif
  271. endif
  272. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/cuda/starpu_cublas.c
  273. if STARPU_USE_OPENCL
  274. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/opencl/driver_opencl.c
  275. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/opencl/driver_opencl_utils.c
  276. else
  277. if STARPU_SIMGRID
  278. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/opencl/driver_opencl.c
  279. endif
  280. endif
  281. if STARPU_USE_SCC
  282. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/scc/driver_scc_common.c
  283. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/scc/driver_scc_source.c
  284. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/scc/driver_scc_sink.c
  285. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/scc/driver_scc_utils.c
  286. endif
  287. if STARPU_LINUX_SYS
  288. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += core/disk_ops/disk_unistd_o_direct.c
  289. endif
  290. #########################################
  291. # #
  292. # Generic MP compilation #
  293. # #
  294. #########################################
  295. if STARPU_USE_MP
  296. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mp_common/mp_common.c
  297. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mp_common/source_common.c
  298. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mp_common/sink_common.c
  299. endif
  300. #########################################
  301. # #
  302. # MIC compilation #
  303. # #
  304. #########################################
  305. if STARPU_USE_MIC
  306. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mic/driver_mic_common.c
  307. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mic/driver_mic_source.c
  308. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mic/driver_mic_sink.c
  309. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mic/driver_mic_utils.c
  310. endif
  311. #########################################
  312. showcheck:
  313. -cat /dev/null