Makefile.am 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2016 Université de Bordeaux
  4. # Copyright (C) 2010, 2011, 2012, 2013, 2015 CNRS
  5. # Copyright (C) 2011, 2014 INRIA
  6. # Copyright (C) 2016 Inria
  7. #
  8. # StarPU is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU Lesser General Public License as published by
  10. # the Free Software Foundation; either version 2.1 of the License, or (at
  11. # your option) any later version.
  12. #
  13. # StarPU is distributed in the hope that it will be useful, but
  14. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  18. SUBDIRS =
  19. CLEANFILES = *.gcno *.gcda *.linkinfo
  20. EXTRA_DIST = dolib.c
  21. ldflags =
  22. libstarpu_so_version = $(LIBSTARPU_INTERFACE_CURRENT):$(LIBSTARPU_INTERFACE_REVISION):$(LIBSTARPU_INTERFACE_AGE)
  23. if STARPU_HAVE_WINDOWS
  24. LC_MESSAGES=C
  25. export LC_MESSAGES
  26. ldflags += -Xlinker --output-def -Xlinker .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.def
  27. if STARPU_HAVE_MS_LIB
  28. .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.lib: libstarpu-@STARPU_EFFECTIVE_VERSION@.la dolib
  29. ./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
  30. all-local: .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.lib
  31. endif STARPU_HAVE_MS_LIB
  32. install-exec-hook:
  33. $(INSTALL) .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.def $(DESTDIR)$(libdir)
  34. if STARPU_HAVE_MS_LIB
  35. $(INSTALL) .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.lib $(DESTDIR)$(libdir)
  36. $(INSTALL) .libs/libstarpu-@STARPU_EFFECTIVE_VERSION@.exp $(DESTDIR)$(libdir)
  37. endif STARPU_HAVE_MS_LIB
  38. endif STARPU_HAVE_WINDOWS
  39. lib_LTLIBRARIES = libstarpu-@STARPU_EFFECTIVE_VERSION@.la
  40. 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)"'
  41. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_LIBADD = -lm $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS) $(LIBSTARPU_LDFLAGS)
  42. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_LDFLAGS = $(ldflags) $(FXT_LDFLAGS) -no-undefined \
  43. -version-info $(libstarpu_so_version)
  44. if STARPU_HAVE_DARWIN
  45. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_LDFLAGS += \
  46. -Wl,-U,_starpu_main \
  47. -Wl,-U,_smpi_main \
  48. -Wl,-U,__starpu_mpi_simgrid_init \
  49. -Wl,-U,_smpi_simulated_main_ \
  50. -Wl,-U,_starpu_mpi_world_rank
  51. endif
  52. noinst_HEADERS = \
  53. core/dependencies/data_concurrency.h \
  54. core/dependencies/cg.h \
  55. core/dependencies/tags.h \
  56. core/dependencies/implicit_data_deps.h \
  57. core/disk.h \
  58. core/disk_ops/unistd/disk_unistd_global.h \
  59. core/progress_hook.h \
  60. core/sched_policy.h \
  61. core/sched_ctx.h \
  62. core/sched_ctx_list.h \
  63. core/perfmodel/perfmodel.h \
  64. core/perfmodel/regression.h \
  65. core/jobs.h \
  66. core/task.h \
  67. core/workers.h \
  68. core/topology.h \
  69. core/debug.h \
  70. core/errorcheck.h \
  71. core/combined_workers.h \
  72. core/simgrid.h \
  73. core/task_bundle.h \
  74. core/detect_combined_workers.h \
  75. sched_policies/helper_mct.h \
  76. sched_policies/fifo_queues.h \
  77. datawizard/footprint.h \
  78. datawizard/datawizard.h \
  79. datawizard/data_request.h \
  80. datawizard/filters.h \
  81. datawizard/write_back.h \
  82. datawizard/datastats.h \
  83. datawizard/malloc.h \
  84. datawizard/memstats.h \
  85. datawizard/memory_manager.h \
  86. datawizard/memalloc.h \
  87. datawizard/copy_driver.h \
  88. datawizard/coherency.h \
  89. datawizard/sort_data_handles.h \
  90. datawizard/memory_nodes.h \
  91. datawizard/interfaces/data_interface.h \
  92. common/barrier.h \
  93. common/timing.h \
  94. common/list.h \
  95. common/rwlock.h \
  96. common/starpu_spinlock.h \
  97. common/fxt.h \
  98. common/utils.h \
  99. common/thread.h \
  100. common/barrier.h \
  101. common/uthash.h \
  102. common/barrier_counter.h \
  103. common/rbtree.h \
  104. common/rbtree_i.h \
  105. common/prio_list.h \
  106. common/graph.h \
  107. drivers/driver_common/driver_common.h \
  108. drivers/mp_common/mp_common.h \
  109. drivers/mp_common/source_common.h \
  110. drivers/mp_common/sink_common.h \
  111. drivers/cpu/driver_cpu.h \
  112. drivers/cuda/driver_cuda.h \
  113. drivers/opencl/driver_opencl.h \
  114. drivers/opencl/driver_opencl_utils.h \
  115. debug/starpu_debug_helpers.h \
  116. drivers/mic/driver_mic_common.h \
  117. drivers/mic/driver_mic_source.h \
  118. drivers/mic/driver_mic_sink.h \
  119. drivers/scc/driver_scc_common.h \
  120. drivers/scc/driver_scc_source.h \
  121. drivers/scc/driver_scc_sink.h \
  122. drivers/disk/driver_disk.h \
  123. debug/traces/starpu_fxt.h \
  124. profiling/bound.h \
  125. profiling/profiling.h \
  126. util/openmp_runtime_support.h \
  127. util/starpu_clusters_create.h \
  128. util/starpu_task_insert_utils.h \
  129. util/starpu_data_cpy.h \
  130. starpu_parameters.h \
  131. top/starpu_top_message_queue.h \
  132. top/starpu_top_connection.h \
  133. top/starpu_top_core.h \
  134. sched_policies/prio_deque.h \
  135. sched_policies/sched_component.h
  136. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES = \
  137. common/barrier.c \
  138. common/barrier_counter.c \
  139. common/bitmap.c \
  140. common/hash.c \
  141. common/rwlock.c \
  142. common/starpu_spinlock.c \
  143. common/timing.c \
  144. common/fxt.c \
  145. common/utils.c \
  146. common/thread.c \
  147. common/rbtree.c \
  148. common/graph.c \
  149. core/jobs.c \
  150. core/task.c \
  151. core/task_bundle.c \
  152. core/tree.c \
  153. core/workers.c \
  154. core/combined_workers.c \
  155. core/topology.c \
  156. core/disk.c \
  157. core/debug.c \
  158. core/errorcheck.c \
  159. core/progress_hook.c \
  160. core/dependencies/cg.c \
  161. core/dependencies/dependencies.c \
  162. core/dependencies/implicit_data_deps.c \
  163. core/dependencies/tags.c \
  164. core/dependencies/task_deps.c \
  165. core/dependencies/data_concurrency.c \
  166. core/dependencies/data_arbiter_concurrency.c \
  167. core/disk_ops/disk_stdio.c \
  168. core/disk_ops/disk_unistd.c \
  169. core/disk_ops/unistd/disk_unistd_global.c \
  170. core/perfmodel/perfmodel_history.c \
  171. core/perfmodel/perfmodel_bus.c \
  172. core/perfmodel/perfmodel.c \
  173. core/perfmodel/perfmodel_print.c \
  174. core/perfmodel/perfmodel_nan.c \
  175. core/perfmodel/regression.c \
  176. core/sched_policy.c \
  177. core/simgrid.c \
  178. core/sched_ctx.c \
  179. core/sched_ctx_list.c \
  180. core/parallel_task.c \
  181. core/detect_combined_workers.c \
  182. sched_policies/eager_central_policy.c \
  183. sched_policies/eager_central_priority_policy.c \
  184. sched_policies/work_stealing_policy.c \
  185. sched_policies/deque_modeling_policy_data_aware.c \
  186. sched_policies/random_policy.c \
  187. sched_policies/fifo_queues.c \
  188. sched_policies/parallel_heft.c \
  189. sched_policies/parallel_eager.c \
  190. sched_policies/heteroprio.c \
  191. sched_policies/graph_test_policy.c \
  192. drivers/driver_common/driver_common.c \
  193. drivers/disk/driver_disk.c \
  194. datawizard/memory_nodes.c \
  195. datawizard/write_back.c \
  196. datawizard/coherency.c \
  197. datawizard/data_request.c \
  198. datawizard/datawizard.c \
  199. datawizard/copy_driver.c \
  200. datawizard/filters.c \
  201. datawizard/sort_data_handles.c \
  202. datawizard/malloc.c \
  203. datawizard/memory_manager.c \
  204. datawizard/memalloc.c \
  205. datawizard/memstats.c \
  206. datawizard/footprint.c \
  207. datawizard/datastats.c \
  208. datawizard/user_interactions.c \
  209. datawizard/reduction.c \
  210. datawizard/interfaces/data_interface.c \
  211. datawizard/interfaces/bcsr_interface.c \
  212. datawizard/interfaces/coo_interface.c \
  213. datawizard/interfaces/csr_interface.c \
  214. datawizard/interfaces/matrix_filters.c \
  215. datawizard/interfaces/matrix_interface.c \
  216. datawizard/interfaces/block_filters.c \
  217. datawizard/interfaces/block_interface.c \
  218. datawizard/interfaces/vector_interface.c \
  219. datawizard/interfaces/bcsr_filters.c \
  220. datawizard/interfaces/csr_filters.c \
  221. datawizard/interfaces/vector_filters.c \
  222. datawizard/interfaces/variable_interface.c \
  223. datawizard/interfaces/void_interface.c \
  224. datawizard/interfaces/multiformat_interface.c \
  225. util/execute_on_all.c \
  226. util/starpu_create_sync_task.c \
  227. util/file.c \
  228. util/fstarpu.c \
  229. util/misc.c \
  230. util/openmp_runtime_support.c \
  231. util/openmp_runtime_support_environment.c \
  232. util/openmp_runtime_support_omp_api.c \
  233. util/starpu_data_cpy.c \
  234. util/starpu_task_insert.c \
  235. util/starpu_task_insert_utils.c \
  236. debug/traces/starpu_fxt.c \
  237. debug/traces/starpu_fxt_mpi.c \
  238. debug/traces/starpu_fxt_dag.c \
  239. debug/traces/starpu_paje.c \
  240. debug/traces/anim.c \
  241. debug/latency.c \
  242. debug/structures_size.c \
  243. profiling/profiling.c \
  244. profiling/bound.c \
  245. profiling/profiling_helpers.c \
  246. top/starpu_top.c \
  247. top/starpu_top_task.c \
  248. top/starpu_top_message_queue.c \
  249. top/starpu_top_connection.c \
  250. worker_collection/worker_list.c \
  251. worker_collection/worker_tree.c \
  252. sched_policies/component_worker.c \
  253. sched_policies/component_sched.c \
  254. sched_policies/component_fifo.c \
  255. sched_policies/prio_deque.c \
  256. sched_policies/helper_mct.c \
  257. sched_policies/component_prio.c \
  258. sched_policies/component_random.c \
  259. sched_policies/component_eager.c \
  260. sched_policies/component_eager_calibration.c \
  261. sched_policies/component_mct.c \
  262. sched_policies/component_heft.c \
  263. sched_policies/component_best_implementation.c \
  264. sched_policies/component_perfmodel_select.c \
  265. sched_policies/component_composed.c \
  266. sched_policies/component_work_stealing.c \
  267. sched_policies/modular_eager.c \
  268. sched_policies/modular_eager_prefetching.c \
  269. sched_policies/modular_prio.c \
  270. sched_policies/modular_prio_prefetching.c \
  271. sched_policies/modular_random.c \
  272. sched_policies/modular_random_prefetching.c \
  273. sched_policies/modular_heft.c \
  274. sched_policies/modular_heft2.c \
  275. sched_policies/modular_ws.c
  276. if STARPU_HAVE_LEVELDB
  277. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += core/disk_ops/disk_leveldb.cpp
  278. endif
  279. if STARPU_USE_CPU
  280. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/cpu/driver_cpu.c
  281. endif
  282. if STARPU_USE_CUDA
  283. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/cuda/driver_cuda.c
  284. else
  285. if STARPU_SIMGRID
  286. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/cuda/driver_cuda.c
  287. endif
  288. endif
  289. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/cuda/starpu_cublas.c
  290. if STARPU_USE_OPENCL
  291. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/opencl/driver_opencl.c
  292. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/opencl/driver_opencl_utils.c
  293. else
  294. if STARPU_SIMGRID
  295. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/opencl/driver_opencl.c
  296. endif
  297. endif
  298. if STARPU_USE_SCC
  299. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/scc/driver_scc_common.c
  300. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/scc/driver_scc_source.c
  301. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/scc/driver_scc_sink.c
  302. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/scc/driver_scc_utils.c
  303. endif
  304. if STARPU_LINUX_SYS
  305. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += core/disk_ops/disk_unistd_o_direct.c
  306. endif
  307. if STARPU_HAVE_HWLOC
  308. if STARPU_HWLOC_HAVE_TOPOLOGY_DUP
  309. if STARPU_HAVE_OPENMP
  310. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += util/starpu_clusters_create.c
  311. endif
  312. endif
  313. endif
  314. #########################################
  315. # #
  316. # Generic MP compilation #
  317. # #
  318. #########################################
  319. if STARPU_USE_MP
  320. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mp_common/mp_common.c
  321. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mp_common/source_common.c
  322. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mp_common/sink_common.c
  323. endif
  324. #########################################
  325. # #
  326. # MIC compilation #
  327. # #
  328. #########################################
  329. if STARPU_USE_MIC
  330. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mic/driver_mic_common.c
  331. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mic/driver_mic_source.c
  332. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mic/driver_mic_sink.c
  333. libstarpu_@STARPU_EFFECTIVE_VERSION@_la_SOURCES += drivers/mic/driver_mic_utils.c
  334. endif
  335. #########################################
  336. showcheck:
  337. -cat /dev/null