Makefile.am 12 KB

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