Makefile.am 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. #
  2. # StarPU
  3. # Copyright (C) INRIA 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. LIBS = $(top_builddir)/src/libstarpu.la @LIBS@
  17. AM_CPPFLAGS = -I$(top_srcdir)/include/
  18. EXTRA_DIST = \
  19. microbenchs/null_kernel_gordon.c \
  20. datawizard/sync_and_notify_data_gordon_kernels.c \
  21. datawizard/sync_and_notify_data_opencl_codelet.cl
  22. CLEANFILES = \
  23. *.gcno *.gcda *.linkinfo \
  24. microbenchs/null_kernel_gordon.spuelf \
  25. datawizard/sync_and_notify_data_gordon_kernels.spuelf
  26. BUILT_SOURCES =
  27. if STARPU_USE_CUDA
  28. # TODO define NVCCFLAGS
  29. NVCC ?= nvcc
  30. NVCCFLAGS += -I$(top_srcdir)/include/ -I$(top_builddir)/include
  31. .cu.cubin:
  32. $(MKDIR_P) `dirname $@`
  33. $(NVCC) -cubin $< -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS)
  34. .cu.o:
  35. $(MKDIR_P) `dirname $@`
  36. $(NVCC) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I${includedir}
  37. endif
  38. if STARPU_USE_GORDON
  39. SPU_CC ?= spu-gcc
  40. SPU_LD ?= spu-ld
  41. .c.spuo:
  42. $(MKDIR_P) `dirname $@`
  43. $(SPU_CC) -c -fpic $< -o $@
  44. .spuo.spuelf:
  45. $(MKDIR_P) `dirname $@`
  46. $(SPU_LD) $< -o $@
  47. #BUILT_SOURCES +=
  48. # microbenchs/null_kernel_gordon.spuelf
  49. endif
  50. SUBDIRS =
  51. TESTS = $(check_PROGRAMS)
  52. check_PROGRAMS =
  53. check_PROGRAMS += \
  54. core/restart \
  55. core/execute_on_a_specific_worker \
  56. core/multithreaded \
  57. core/starpu_task_wait_for_all \
  58. core/starpu_task_wait \
  59. core/static_restartable \
  60. core/static_restartable_using_initializer\
  61. core/static_restartable_tag \
  62. core/regenerate \
  63. core/wait_all_regenerable_tasks \
  64. core/subgraph_repeat \
  65. core/subgraph_repeat_regenerate \
  66. core/empty_task \
  67. core/empty_task_sync_point \
  68. core/empty_task_sync_point_tasks \
  69. core/empty_task_chain \
  70. core/tag_wait_api \
  71. core/task_wait_api \
  72. core/declare_deps_in_callback \
  73. core/declare_deps_after_submission \
  74. core/declare_deps_after_submission_synchronous \
  75. core/get_current_task \
  76. datawizard/data_implicit_deps \
  77. datawizard/scratch \
  78. datawizard/sync_and_notify_data \
  79. datawizard/sync_and_notify_data_implicit\
  80. datawizard/dsm_stress \
  81. datawizard/write_only_tmp_buffer \
  82. datawizard/dining_philosophers \
  83. datawizard/readers_and_writers \
  84. datawizard/unpartition \
  85. datawizard/sync_with_data_with_mem \
  86. datawizard/sync_with_data_with_mem_non_blocking\
  87. errorcheck/starpu_init_noworker \
  88. errorcheck/invalid_blocking_calls \
  89. errorcheck/invalid_tasks \
  90. helper/cublas_init \
  91. helper/pinned_memory \
  92. helper/execute_on_all \
  93. helper/starpu_create_sync_task \
  94. microbenchs/async_tasks_overhead \
  95. microbenchs/sync_tasks_overhead \
  96. microbenchs/tasks_overhead \
  97. microbenchs/prefetch_data_on_node \
  98. microbenchs/redundant_buffer \
  99. microbenchs/local_pingpong \
  100. overlap/overlap
  101. core_restart_SOURCES = \
  102. core/restart.c
  103. core_execute_on_a_specific_worker_SOURCES = \
  104. core/execute_on_a_specific_worker.c
  105. core_multithreaded_SOURCES = \
  106. core/multithreaded.c
  107. core_starpu_task_wait_for_all_SOURCES = \
  108. core/starpu_task_wait_for_all.c
  109. core_starpu_task_wait_SOURCES = \
  110. core/starpu_task_wait.c
  111. core_static_restartable_SOURCES = \
  112. core/static_restartable.c
  113. core_static_restartable_using_initializer_SOURCES = \
  114. core/static_restartable_using_initializer.c
  115. core_static_restartable_tag_SOURCES = \
  116. core/static_restartable_tag.c
  117. core_regenerate_SOURCES = \
  118. core/regenerate.c
  119. core_wait_all_regenerable_tasks_SOURCES = \
  120. core/wait_all_regenerable_tasks.c
  121. core_subgraph_repeat_SOURCES = \
  122. core/subgraph_repeat.c
  123. core_subgraph_repeat_regenerate_SOURCES = \
  124. core/subgraph_repeat_regenerate.c
  125. core_empty_task_SOURCES = \
  126. core/empty_task.c
  127. core_empty_task_sync_point_SOURCES = \
  128. core/empty_task_sync_point.c
  129. core_empty_task_sync_point_tasks_SOURCES = \
  130. core/empty_task_sync_point_tasks.c
  131. core_empty_task_chain_SOURCES = \
  132. core/empty_task_chain.c
  133. core_tag_wait_api_SOURCES = \
  134. core/tag_wait_api.c
  135. core_task_wait_api_SOURCES = \
  136. core/task_wait_api.c
  137. core_declare_deps_in_callback_SOURCES = \
  138. core/declare_deps_in_callback.c
  139. core_declare_deps_after_submission_SOURCES = \
  140. core/declare_deps_after_submission.c
  141. core_declare_deps_after_submission_synchronous_SOURCES = \
  142. core/declare_deps_after_submission_synchronous.c
  143. core_get_current_task_SOURCES = \
  144. core/get_current_task.c
  145. datawizard_data_implicit_deps_SOURCES = \
  146. datawizard/data_implicit_deps.c
  147. datawizard_scratch_SOURCES = \
  148. datawizard/scratch.c
  149. if STARPU_USE_CUDA
  150. datawizard_scratch_SOURCES += \
  151. datawizard/scratch_cuda.cu
  152. endif
  153. datawizard_dsm_stress_SOURCES = \
  154. datawizard/dsm_stress.c
  155. datawizard_write_only_tmp_buffer_SOURCES = \
  156. datawizard/write_only_tmp_buffer.c
  157. datawizard_dining_philosophers_SOURCES = \
  158. datawizard/dining_philosophers.c
  159. datawizard_readers_and_writers_SOURCES = \
  160. datawizard/readers_and_writers.c
  161. datawizard_unpartition_SOURCES = \
  162. datawizard/unpartition.c
  163. datawizard_sync_with_data_with_mem_SOURCES = \
  164. datawizard/sync_with_data_with_mem.c
  165. datawizard_sync_with_data_with_mem_non_blocking_SOURCES = \
  166. datawizard/sync_with_data_with_mem_non_blocking.c
  167. errorcheck_starpu_init_noworker_SOURCES = \
  168. errorcheck/starpu_init_noworker.c
  169. errorcheck_invalid_blocking_calls_SOURCES = \
  170. errorcheck/invalid_blocking_calls.c
  171. errorcheck_invalid_tasks_SOURCES = \
  172. errorcheck/invalid_tasks.c
  173. helper_cublas_init_SOURCES = \
  174. helper/cublas_init.c
  175. helper_pinned_memory_SOURCES = \
  176. helper/pinned_memory.c
  177. helper_execute_on_all_SOURCES = \
  178. helper/execute_on_all.c
  179. helper_starpu_create_sync_task_SOURCES = \
  180. helper/starpu_create_sync_task.c
  181. microbenchs_async_tasks_overhead_SOURCES = \
  182. microbenchs/async_tasks_overhead.c
  183. microbenchs_sync_tasks_overhead_SOURCES = \
  184. microbenchs/sync_tasks_overhead.c
  185. microbenchs_tasks_overhead_SOURCES = \
  186. microbenchs/tasks_overhead.c
  187. microbenchs_prefetch_data_on_node_SOURCES = \
  188. microbenchs/prefetch_data_on_node.c
  189. datawizard_sync_and_notify_data_SOURCES = \
  190. datawizard/sync_and_notify_data.c
  191. datawizard_sync_and_notify_data_implicit_SOURCES = \
  192. datawizard/sync_and_notify_data_implicit.c
  193. nobase_STARPU_OPENCL_DATA_DATA = \
  194. datawizard/sync_and_notify_data_opencl_codelet.cl
  195. microbenchs_redundant_buffer_SOURCES = \
  196. microbenchs/redundant_buffer.c
  197. microbenchs_local_pingpong_SOURCES = \
  198. microbenchs/local_pingpong.c
  199. if STARPU_USE_CUDA
  200. datawizard_sync_and_notify_data_SOURCES += \
  201. datawizard/sync_and_notify_data_kernels.cu
  202. datawizard_sync_and_notify_data_implicit_SOURCES += \
  203. datawizard/sync_and_notify_data_kernels.cu
  204. endif
  205. if STARPU_USE_OPENCL
  206. datawizard_sync_and_notify_data_SOURCES += \
  207. datawizard/sync_and_notify_data_opencl.c
  208. datawizard_sync_and_notify_data_implicit_SOURCES += \
  209. datawizard/sync_and_notify_data_opencl.c
  210. endif
  211. if STARPU_USE_GORDON
  212. datawizard_sync_and_notify_data_SOURCES += \
  213. datawizard/sync_and_notify_data_gordon_kernels.c
  214. datawizard_sync_and_notify_data_implicit_SOURCES += \
  215. datawizard/sync_and_notify_data_gordon_kernels.c
  216. BUILT_SOURCES += \
  217. datawizard/sync_and_notify_data_gordon_kernels.spuelf \
  218. microbenchs/null_kernel_gordon.spuelf
  219. endif
  220. overlap_overlap_SOURCES = \
  221. overlap/overlap.c