Makefile.am 12 KB

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