Makefile.am 12 KB

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