Makefile.am 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. #
  2. # StarPU
  3. # Copyright (C) Université Bordeaux 1, CNRS 2008-2009 (see AUTHORS file)
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU Lesser General Public License as published by
  7. # the Free Software Foundation; either version 2.1 of the License, or (at
  8. # your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful, but
  11. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. #
  14. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  15. #
  16. AM_CFLAGS = $(HWLOC_CFLAGS)
  17. LIBS = $(top_builddir)/src/libstarpu.la $(HWLOC_LIBS) @LIBS@
  18. AM_CPPFLAGS = -I$(top_srcdir)/include/
  19. EXTRA_DIST = \
  20. microbenchs/null_kernel_gordon.c \
  21. datawizard/sync_and_notify_data_gordon_kernels.c \
  22. datawizard/sync_and_notify_data_opencl_codelet.cl
  23. CLEANFILES = \
  24. *.gcno *.gcda *.linkinfo \
  25. microbenchs/null_kernel_gordon.spuelf \
  26. datawizard/sync_and_notify_data_gordon_kernels.spuelf
  27. BUILT_SOURCES =
  28. if STARPU_USE_CUDA
  29. # TODO define NVCCFLAGS
  30. NVCC ?= nvcc
  31. NVCCFLAGS += -I$(top_srcdir)/include/ -I$(top_builddir)/include $(HWLOC_CFLAGS)
  32. .cu.cubin:
  33. $(MKDIR_P) `dirname $@`
  34. $(NVCC) -cubin $< -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS)
  35. .cu.o:
  36. $(MKDIR_P) `dirname $@`
  37. $(NVCC) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I${includedir}
  38. endif
  39. if STARPU_USE_GORDON
  40. SPU_CC ?= spu-gcc
  41. SPU_LD ?= spu-ld
  42. .c.spuo:
  43. $(MKDIR_P) `dirname $@`
  44. $(SPU_CC) -c -fpic $< -o $@
  45. .spuo.spuelf:
  46. $(MKDIR_P) `dirname $@`
  47. $(SPU_LD) $< -o $@
  48. #BUILT_SOURCES +=
  49. # microbenchs/null_kernel_gordon.spuelf
  50. endif
  51. SUBDIRS =
  52. TESTS = $(check_PROGRAMS)
  53. check_PROGRAMS =
  54. check_PROGRAMS += \
  55. core/restart \
  56. core/execute_on_a_specific_worker \
  57. core/multithreaded \
  58. core/starpu_task_wait_for_all \
  59. core/starpu_task_wait \
  60. core/static_restartable \
  61. core/static_restartable_using_initializer\
  62. core/static_restartable_tag \
  63. core/regenerate \
  64. core/wait_all_regenerable_tasks \
  65. core/subgraph_repeat \
  66. core/subgraph_repeat_regenerate \
  67. core/empty_task \
  68. core/empty_task_sync_point \
  69. core/empty_task_sync_point_tasks \
  70. core/empty_task_chain \
  71. core/tag_wait_api \
  72. core/task_wait_api \
  73. core/declare_deps_in_callback \
  74. core/declare_deps_after_submission \
  75. core/declare_deps_after_submission_synchronous \
  76. core/get_current_task \
  77. datawizard/data_implicit_deps \
  78. datawizard/scratch \
  79. datawizard/sync_and_notify_data \
  80. datawizard/sync_and_notify_data_implicit\
  81. datawizard/dsm_stress \
  82. datawizard/write_only_tmp_buffer \
  83. datawizard/data_invalidation \
  84. datawizard/dining_philosophers \
  85. datawizard/readers_and_writers \
  86. datawizard/unpartition \
  87. datawizard/user_interaction_implicit \
  88. datawizard/sync_with_data_with_mem \
  89. datawizard/sync_with_data_with_mem_non_blocking\
  90. datawizard/sync_with_data_with_mem_non_blocking_implicit\
  91. datawizard/mpi_like \
  92. datawizard/mpi_like_async \
  93. errorcheck/starpu_init_noworker \
  94. errorcheck/invalid_blocking_calls \
  95. errorcheck/invalid_tasks \
  96. helper/cublas_init \
  97. helper/pinned_memory \
  98. helper/execute_on_all \
  99. helper/starpu_create_sync_task \
  100. microbenchs/async_tasks_overhead \
  101. microbenchs/sync_tasks_overhead \
  102. microbenchs/tasks_overhead \
  103. microbenchs/prefetch_data_on_node \
  104. microbenchs/redundant_buffer \
  105. microbenchs/local_pingpong \
  106. overlap/overlap
  107. core_restart_SOURCES = \
  108. core/restart.c
  109. core_execute_on_a_specific_worker_SOURCES = \
  110. core/execute_on_a_specific_worker.c
  111. core_multithreaded_SOURCES = \
  112. core/multithreaded.c
  113. core_starpu_task_wait_for_all_SOURCES = \
  114. core/starpu_task_wait_for_all.c
  115. core_starpu_task_wait_SOURCES = \
  116. core/starpu_task_wait.c
  117. core_static_restartable_SOURCES = \
  118. core/static_restartable.c
  119. core_static_restartable_using_initializer_SOURCES = \
  120. core/static_restartable_using_initializer.c
  121. core_static_restartable_tag_SOURCES = \
  122. core/static_restartable_tag.c
  123. core_regenerate_SOURCES = \
  124. core/regenerate.c
  125. core_wait_all_regenerable_tasks_SOURCES = \
  126. core/wait_all_regenerable_tasks.c
  127. core_subgraph_repeat_SOURCES = \
  128. core/subgraph_repeat.c
  129. core_subgraph_repeat_regenerate_SOURCES = \
  130. core/subgraph_repeat_regenerate.c
  131. core_empty_task_SOURCES = \
  132. core/empty_task.c
  133. core_empty_task_sync_point_SOURCES = \
  134. core/empty_task_sync_point.c
  135. core_empty_task_sync_point_tasks_SOURCES = \
  136. core/empty_task_sync_point_tasks.c
  137. core_empty_task_chain_SOURCES = \
  138. core/empty_task_chain.c
  139. core_tag_wait_api_SOURCES = \
  140. core/tag_wait_api.c
  141. core_task_wait_api_SOURCES = \
  142. core/task_wait_api.c
  143. core_declare_deps_in_callback_SOURCES = \
  144. core/declare_deps_in_callback.c
  145. core_declare_deps_after_submission_SOURCES = \
  146. core/declare_deps_after_submission.c
  147. core_declare_deps_after_submission_synchronous_SOURCES = \
  148. core/declare_deps_after_submission_synchronous.c
  149. core_get_current_task_SOURCES = \
  150. core/get_current_task.c
  151. datawizard_data_implicit_deps_SOURCES = \
  152. datawizard/data_implicit_deps.c
  153. datawizard_scratch_SOURCES = \
  154. datawizard/scratch.c
  155. if STARPU_USE_CUDA
  156. datawizard_scratch_SOURCES += \
  157. datawizard/scratch_cuda.cu
  158. endif
  159. datawizard_dsm_stress_SOURCES = \
  160. datawizard/dsm_stress.c
  161. datawizard_write_only_tmp_buffer_SOURCES = \
  162. datawizard/write_only_tmp_buffer.c
  163. datawizard_data_invalidation_SOURCES = \
  164. datawizard/data_invalidation.c
  165. datawizard_dining_philosophers_SOURCES = \
  166. datawizard/dining_philosophers.c
  167. datawizard_readers_and_writers_SOURCES = \
  168. datawizard/readers_and_writers.c
  169. datawizard_unpartition_SOURCES = \
  170. datawizard/unpartition.c
  171. datawizard_user_interaction_implicit_SOURCES = \
  172. datawizard/user_interaction_implicit.c
  173. datawizard_sync_with_data_with_mem_SOURCES = \
  174. datawizard/sync_with_data_with_mem.c
  175. datawizard_sync_with_data_with_mem_non_blocking_SOURCES = \
  176. datawizard/sync_with_data_with_mem_non_blocking.c
  177. datawizard_sync_with_data_with_mem_non_blocking_implicit_SOURCES = \
  178. datawizard/sync_with_data_with_mem_non_blocking_implicit.c
  179. datawizard_mpi_like_SOURCES = \
  180. datawizard/mpi_like.c
  181. datawizard_mpi_like_async_SOURCES = \
  182. datawizard/mpi_like_async.c
  183. if STARPU_USE_CUDA
  184. datawizard_mpi_like_SOURCES += \
  185. datawizard/cuda_codelet_unsigned_inc.cu
  186. datawizard_mpi_like_async_SOURCES += \
  187. datawizard/cuda_codelet_unsigned_inc.cu
  188. endif
  189. errorcheck_starpu_init_noworker_SOURCES = \
  190. errorcheck/starpu_init_noworker.c
  191. errorcheck_invalid_blocking_calls_SOURCES = \
  192. errorcheck/invalid_blocking_calls.c
  193. errorcheck_invalid_tasks_SOURCES = \
  194. errorcheck/invalid_tasks.c
  195. helper_cublas_init_SOURCES = \
  196. helper/cublas_init.c
  197. helper_pinned_memory_SOURCES = \
  198. helper/pinned_memory.c
  199. helper_execute_on_all_SOURCES = \
  200. helper/execute_on_all.c
  201. helper_starpu_create_sync_task_SOURCES = \
  202. helper/starpu_create_sync_task.c
  203. microbenchs_async_tasks_overhead_SOURCES = \
  204. microbenchs/async_tasks_overhead.c
  205. microbenchs_sync_tasks_overhead_SOURCES = \
  206. microbenchs/sync_tasks_overhead.c
  207. microbenchs_tasks_overhead_SOURCES = \
  208. microbenchs/tasks_overhead.c
  209. microbenchs_prefetch_data_on_node_SOURCES = \
  210. microbenchs/prefetch_data_on_node.c
  211. datawizard_sync_and_notify_data_SOURCES = \
  212. datawizard/sync_and_notify_data.c
  213. datawizard_sync_and_notify_data_implicit_SOURCES = \
  214. datawizard/sync_and_notify_data_implicit.c
  215. nobase_STARPU_OPENCL_DATA_DATA = \
  216. datawizard/sync_and_notify_data_opencl_codelet.cl
  217. microbenchs_redundant_buffer_SOURCES = \
  218. microbenchs/redundant_buffer.c
  219. microbenchs_local_pingpong_SOURCES = \
  220. microbenchs/local_pingpong.c
  221. if STARPU_USE_CUDA
  222. datawizard_sync_and_notify_data_SOURCES += \
  223. datawizard/sync_and_notify_data_kernels.cu
  224. datawizard_sync_and_notify_data_implicit_SOURCES += \
  225. datawizard/sync_and_notify_data_kernels.cu
  226. endif
  227. if STARPU_USE_OPENCL
  228. datawizard_sync_and_notify_data_SOURCES += \
  229. datawizard/sync_and_notify_data_opencl.c
  230. datawizard_sync_and_notify_data_implicit_SOURCES += \
  231. datawizard/sync_and_notify_data_opencl.c
  232. endif
  233. if STARPU_USE_GORDON
  234. datawizard_sync_and_notify_data_SOURCES += \
  235. datawizard/sync_and_notify_data_gordon_kernels.c
  236. datawizard_sync_and_notify_data_implicit_SOURCES += \
  237. datawizard/sync_and_notify_data_gordon_kernels.c
  238. BUILT_SOURCES += \
  239. datawizard/sync_and_notify_data_gordon_kernels.spuelf \
  240. microbenchs/null_kernel_gordon.spuelf
  241. endif
  242. overlap_overlap_SOURCES = \
  243. overlap/overlap.c