Makefile.am 6.4 KB

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