Makefile.am 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  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. testbindir = $(libdir)/starpu/tests
  52. testbin_PROGRAMS =
  53. SUBDIRS =
  54. TESTS = $(check_PROGRAMS)
  55. check_PROGRAMS =
  56. check_PROGRAMS += \
  57. core/restart \
  58. core/execute_on_a_specific_worker \
  59. core/multithreaded \
  60. core/starpu_task_wait_for_all \
  61. core/starpu_task_wait \
  62. core/static_restartable \
  63. core/static_restartable_using_initializer\
  64. core/static_restartable_tag \
  65. core/regenerate \
  66. core/wait_all_regenerable_tasks \
  67. core/subgraph_repeat \
  68. core/subgraph_repeat_regenerate \
  69. core/empty_task \
  70. core/empty_task_sync_point \
  71. core/empty_task_sync_point_tasks \
  72. core/empty_task_chain \
  73. core/tag_wait_api \
  74. core/task_wait_api \
  75. core/declare_deps_in_callback \
  76. core/declare_deps_after_submission \
  77. core/declare_deps_after_submission_synchronous \
  78. core/get_current_task \
  79. datawizard/acquire_release \
  80. datawizard/data_implicit_deps \
  81. datawizard/scratch \
  82. datawizard/sync_and_notify_data \
  83. datawizard/sync_and_notify_data_implicit\
  84. datawizard/dsm_stress \
  85. datawizard/write_only_tmp_buffer \
  86. datawizard/data_invalidation \
  87. datawizard/dining_philosophers \
  88. datawizard/readers_and_writers \
  89. datawizard/unpartition \
  90. datawizard/user_interaction_implicit \
  91. datawizard/sync_with_data_with_mem \
  92. datawizard/sync_with_data_with_mem_non_blocking\
  93. datawizard/sync_with_data_with_mem_non_blocking_implicit\
  94. datawizard/mpi_like \
  95. datawizard/mpi_like_async \
  96. errorcheck/starpu_init_noworker \
  97. errorcheck/invalid_blocking_calls \
  98. errorcheck/invalid_tasks \
  99. helper/cublas_init \
  100. helper/pinned_memory \
  101. helper/execute_on_all \
  102. helper/starpu_create_sync_task \
  103. microbenchs/async_tasks_overhead \
  104. microbenchs/sync_tasks_overhead \
  105. microbenchs/tasks_overhead \
  106. microbenchs/prefetch_data_on_node \
  107. microbenchs/redundant_buffer \
  108. microbenchs/local_pingpong \
  109. overlap/overlap
  110. testbin_PROGRAMS += \
  111. core/restart
  112. core_restart_SOURCES = \
  113. core/restart.c
  114. testbin_PROGRAMS += \
  115. core/execute_on_a_specific_worker
  116. core_execute_on_a_specific_worker_SOURCES = \
  117. core/execute_on_a_specific_worker.c
  118. testbin_PROGRAMS += \
  119. core/multithreaded
  120. core_multithreaded_SOURCES = \
  121. core/multithreaded.c
  122. testbin_PROGRAMS += \
  123. core/starpu_task_wait_for_all
  124. core_starpu_task_wait_for_all_SOURCES = \
  125. core/starpu_task_wait_for_all.c
  126. testbin_PROGRAMS += \
  127. core/starpu_task_wait
  128. core_starpu_task_wait_SOURCES = \
  129. core/starpu_task_wait.c
  130. testbin_PROGRAMS += \
  131. core/static_restartable
  132. core_static_restartable_SOURCES = \
  133. core/static_restartable.c
  134. testbin_PROGRAMS += \
  135. core/static_restartable_using_initializer
  136. core_static_restartable_using_initializer_SOURCES = \
  137. core/static_restartable_using_initializer.c
  138. testbin_PROGRAMS += \
  139. core/static_restartable_tag
  140. core_static_restartable_tag_SOURCES = \
  141. core/static_restartable_tag.c
  142. testbin_PROGRAMS += \
  143. core/regenerate
  144. core_regenerate_SOURCES = \
  145. core/regenerate.c
  146. testbin_PROGRAMS += \
  147. core/wait_all_regenerable_tasks
  148. core_wait_all_regenerable_tasks_SOURCES = \
  149. core/wait_all_regenerable_tasks.c
  150. testbin_PROGRAMS += \
  151. core/subgraph_repeat
  152. core_subgraph_repeat_SOURCES = \
  153. core/subgraph_repeat.c
  154. testbin_PROGRAMS += \
  155. core/subgraph_repeat_regenerate
  156. core_subgraph_repeat_regenerate_SOURCES = \
  157. core/subgraph_repeat_regenerate.c
  158. testbin_PROGRAMS += \
  159. core/empty_task
  160. core_empty_task_SOURCES = \
  161. core/empty_task.c
  162. testbin_PROGRAMS += \
  163. core/empty_task_sync_point
  164. core_empty_task_sync_point_SOURCES = \
  165. core/empty_task_sync_point.c
  166. testbin_PROGRAMS += \
  167. core/empty_task_sync_point_tasks
  168. core_empty_task_sync_point_tasks_SOURCES = \
  169. core/empty_task_sync_point_tasks.c
  170. testbin_PROGRAMS += \
  171. core/empty_task_chain
  172. core_empty_task_chain_SOURCES = \
  173. core/empty_task_chain.c
  174. testbin_PROGRAMS += \
  175. core/tag_wait_api
  176. core_tag_wait_api_SOURCES = \
  177. core/tag_wait_api.c
  178. testbin_PROGRAMS += \
  179. core/task_wait_api
  180. core_task_wait_api_SOURCES = \
  181. core/task_wait_api.c
  182. testbin_PROGRAMS += \
  183. core/declare_deps_in_callback
  184. core_declare_deps_in_callback_SOURCES = \
  185. core/declare_deps_in_callback.c
  186. testbin_PROGRAMS += \
  187. core/declare_deps_after_submission
  188. core_declare_deps_after_submission_SOURCES = \
  189. core/declare_deps_after_submission.c
  190. testbin_PROGRAMS += \
  191. core/declare_deps_after_submission_synchronous
  192. core_declare_deps_after_submission_synchronous_SOURCES = \
  193. core/declare_deps_after_submission_synchronous.c
  194. testbin_PROGRAMS += \
  195. core/get_current_task
  196. core_get_current_task_SOURCES = \
  197. core/get_current_task.c
  198. testbin_PROGRAMS += \
  199. datawizard/acquire_release
  200. testbin_PROGRAMS += \
  201. datawizard/data_implicit_deps
  202. datawizard_data_implicit_deps_SOURCES = \
  203. datawizard/data_implicit_deps.c
  204. testbin_PROGRAMS += \
  205. datawizard/scratch
  206. datawizard_scratch_SOURCES = \
  207. datawizard/scratch.c
  208. if STARPU_USE_CUDA
  209. datawizard_scratch_SOURCES += \
  210. datawizard/scratch_cuda.cu
  211. endif
  212. testbin_PROGRAMS += \
  213. datawizard/dsm_stress
  214. datawizard_dsm_stress_SOURCES = \
  215. datawizard/dsm_stress.c
  216. testbin_PROGRAMS += \
  217. datawizard/write_only_tmp_buffer
  218. datawizard_write_only_tmp_buffer_SOURCES = \
  219. datawizard/write_only_tmp_buffer.c
  220. testbin_PROGRAMS += \
  221. datawizard/data_invalidation
  222. datawizard_data_invalidation_SOURCES = \
  223. datawizard/data_invalidation.c
  224. testbin_PROGRAMS += \
  225. datawizard/dining_philosophers
  226. datawizard_dining_philosophers_SOURCES = \
  227. datawizard/dining_philosophers.c
  228. testbin_PROGRAMS += \
  229. datawizard/readers_and_writers
  230. datawizard_readers_and_writers_SOURCES = \
  231. datawizard/readers_and_writers.c
  232. testbin_PROGRAMS += \
  233. datawizard/unpartition
  234. datawizard_unpartition_SOURCES = \
  235. datawizard/unpartition.c
  236. testbin_PROGRAMS += \
  237. datawizard/user_interaction_implicit
  238. datawizard_user_interaction_implicit_SOURCES = \
  239. datawizard/user_interaction_implicit.c
  240. testbin_PROGRAMS += \
  241. datawizard/sync_with_data_with_mem
  242. datawizard_sync_with_data_with_mem_SOURCES = \
  243. datawizard/sync_with_data_with_mem.c
  244. testbin_PROGRAMS += \
  245. datawizard/sync_with_data_with_mem_non_blocking
  246. datawizard_sync_with_data_with_mem_non_blocking_SOURCES = \
  247. datawizard/sync_with_data_with_mem_non_blocking.c
  248. testbin_PROGRAMS += \
  249. datawizard/sync_with_data_with_mem_non_blocking_implicit
  250. datawizard_sync_with_data_with_mem_non_blocking_implicit_SOURCES = \
  251. datawizard/sync_with_data_with_mem_non_blocking_implicit.c
  252. testbin_PROGRAMS += \
  253. datawizard/mpi_like
  254. datawizard_mpi_like_SOURCES = \
  255. datawizard/mpi_like.c
  256. testbin_PROGRAMS += \
  257. datawizard/mpi_like_async
  258. datawizard_mpi_like_async_SOURCES = \
  259. datawizard/mpi_like_async.c
  260. if STARPU_USE_CUDA
  261. datawizard_mpi_like_SOURCES += \
  262. datawizard/cuda_codelet_unsigned_inc.cu
  263. datawizard_mpi_like_async_SOURCES += \
  264. datawizard/cuda_codelet_unsigned_inc.cu
  265. endif
  266. testbin_PROGRAMS += \
  267. errorcheck/starpu_init_noworker
  268. errorcheck_starpu_init_noworker_SOURCES = \
  269. errorcheck/starpu_init_noworker.c
  270. testbin_PROGRAMS += \
  271. errorcheck/invalid_blocking_calls
  272. errorcheck_invalid_blocking_calls_SOURCES = \
  273. errorcheck/invalid_blocking_calls.c
  274. testbin_PROGRAMS += \
  275. errorcheck/invalid_tasks
  276. errorcheck_invalid_tasks_SOURCES = \
  277. errorcheck/invalid_tasks.c
  278. testbin_PROGRAMS += \
  279. helper/cublas_init
  280. helper_cublas_init_SOURCES = \
  281. helper/cublas_init.c
  282. testbin_PROGRAMS += \
  283. helper/pinned_memory
  284. helper_pinned_memory_SOURCES = \
  285. helper/pinned_memory.c
  286. testbin_PROGRAMS += \
  287. helper/execute_on_all
  288. helper_execute_on_all_SOURCES = \
  289. helper/execute_on_all.c
  290. testbin_PROGRAMS += \
  291. helper/starpu_create_sync_task
  292. helper_starpu_create_sync_task_SOURCES = \
  293. helper/starpu_create_sync_task.c
  294. testbin_PROGRAMS += \
  295. microbenchs/async_tasks_overhead
  296. microbenchs_async_tasks_overhead_SOURCES = \
  297. microbenchs/async_tasks_overhead.c
  298. testbin_PROGRAMS += \
  299. microbenchs/sync_tasks_overhead
  300. microbenchs_sync_tasks_overhead_SOURCES = \
  301. microbenchs/sync_tasks_overhead.c
  302. testbin_PROGRAMS += \
  303. microbenchs/tasks_overhead
  304. microbenchs_tasks_overhead_SOURCES = \
  305. microbenchs/tasks_overhead.c
  306. testbin_PROGRAMS += \
  307. microbenchs/prefetch_data_on_node
  308. microbenchs_prefetch_data_on_node_SOURCES = \
  309. microbenchs/prefetch_data_on_node.c
  310. testbin_PROGRAMS += \
  311. datawizard/sync_and_notify_data
  312. datawizard_sync_and_notify_data_SOURCES = \
  313. datawizard/sync_and_notify_data.c
  314. testbin_PROGRAMS += \
  315. datawizard/sync_and_notify_data_implicit
  316. datawizard_sync_and_notify_data_implicit_SOURCES = \
  317. datawizard/sync_and_notify_data_implicit.c
  318. nobase_STARPU_OPENCL_DATA_DATA = \
  319. datawizard/sync_and_notify_data_opencl_codelet.cl
  320. testbin_PROGRAMS += \
  321. microbenchs/redundant_buffer
  322. microbenchs_redundant_buffer_SOURCES = \
  323. microbenchs/redundant_buffer.c
  324. testbin_PROGRAMS += \
  325. microbenchs/local_pingpong
  326. microbenchs_local_pingpong_SOURCES = \
  327. microbenchs/local_pingpong.c
  328. if STARPU_USE_CUDA
  329. datawizard_sync_and_notify_data_SOURCES += \
  330. datawizard/sync_and_notify_data_kernels.cu
  331. datawizard_sync_and_notify_data_implicit_SOURCES += \
  332. datawizard/sync_and_notify_data_kernels.cu
  333. endif
  334. if STARPU_USE_OPENCL
  335. datawizard_sync_and_notify_data_SOURCES += \
  336. datawizard/sync_and_notify_data_opencl.c
  337. datawizard_sync_and_notify_data_implicit_SOURCES += \
  338. datawizard/sync_and_notify_data_opencl.c
  339. endif
  340. if STARPU_USE_GORDON
  341. datawizard_sync_and_notify_data_SOURCES += \
  342. datawizard/sync_and_notify_data_gordon_kernels.c
  343. datawizard_sync_and_notify_data_implicit_SOURCES += \
  344. datawizard/sync_and_notify_data_gordon_kernels.c
  345. BUILT_SOURCES += \
  346. datawizard/sync_and_notify_data_gordon_kernels.spuelf \
  347. microbenchs/null_kernel_gordon.spuelf
  348. endif
  349. testbin_PROGRAMS += \
  350. overlap/overlap
  351. overlap_overlap_SOURCES = \
  352. overlap/overlap.c