Makefile.am 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  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/ -I$(top_srcdir)/src/
  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. coverage/coverage.sh
  24. CLEANFILES = \
  25. *.gcno *.gcda *.linkinfo \
  26. microbenchs/null_kernel_gordon.spuelf \
  27. datawizard/sync_and_notify_data_gordon_kernels.spuelf
  28. BUILT_SOURCES =
  29. if STARPU_USE_OPENCL
  30. nobase_STARPU_OPENCL_DATA_DATA =
  31. endif
  32. if STARPU_USE_CUDA
  33. # TODO define NVCCFLAGS
  34. NVCC ?= nvcc
  35. NVCCFLAGS += -I$(top_srcdir)/include/ -I$(top_builddir)/include $(HWLOC_CFLAGS)
  36. .cu.cubin:
  37. $(MKDIR_P) `dirname $@`
  38. $(NVCC) -cubin $< -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS)
  39. .cu.o:
  40. $(MKDIR_P) `dirname $@`
  41. $(NVCC) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I${includedir}
  42. endif
  43. if STARPU_USE_GORDON
  44. SPU_CC ?= spu-gcc
  45. SPU_LD ?= spu-ld
  46. .c.spuo:
  47. $(MKDIR_P) `dirname $@`
  48. $(SPU_CC) -c -fpic $< -o $@
  49. .spuo.spuelf:
  50. $(MKDIR_P) `dirname $@`
  51. $(SPU_LD) $< -o $@
  52. #BUILT_SOURCES +=
  53. # microbenchs/null_kernel_gordon.spuelf
  54. endif
  55. testbindir = $(libdir)/starpu/tests
  56. testbin_PROGRAMS =
  57. SUBDIRS =
  58. TESTS = $(check_PROGRAMS) \
  59. coverage/coverage.sh
  60. check_PROGRAMS =
  61. check_PROGRAMS += \
  62. core/restart \
  63. core/execute_on_a_specific_worker \
  64. core/multithreaded \
  65. core/multithreaded_init \
  66. core/starpu_task_wait_for_all \
  67. core/starpu_task_wait \
  68. core/static_restartable \
  69. core/static_restartable_using_initializer\
  70. core/static_restartable_tag \
  71. core/regenerate \
  72. core/wait_all_regenerable_tasks \
  73. core/subgraph_repeat \
  74. core/subgraph_repeat_regenerate \
  75. core/empty_task \
  76. core/empty_task_sync_point \
  77. core/empty_task_sync_point_tasks \
  78. core/empty_task_chain \
  79. core/tag_wait_api \
  80. core/task_wait_api \
  81. core/declare_deps_in_callback \
  82. core/declare_deps_after_submission \
  83. core/declare_deps_after_submission_synchronous \
  84. core/get_current_task \
  85. datawizard/acquire_release \
  86. datawizard/acquire_release2 \
  87. datawizard/data_implicit_deps \
  88. datawizard/scratch \
  89. datawizard/sync_and_notify_data \
  90. datawizard/sync_and_notify_data_implicit\
  91. datawizard/dsm_stress \
  92. datawizard/write_only_tmp_buffer \
  93. datawizard/data_invalidation \
  94. datawizard/dining_philosophers \
  95. datawizard/manual_reduction \
  96. datawizard/readers_and_writers \
  97. datawizard/unpartition \
  98. datawizard/user_interaction_implicit \
  99. datawizard/reclaim \
  100. datawizard/sync_with_data_with_mem \
  101. datawizard/sync_with_data_with_mem_non_blocking\
  102. datawizard/sync_with_data_with_mem_non_blocking_implicit\
  103. datawizard/mpi_like \
  104. datawizard/mpi_like_async \
  105. datawizard/critical_section_with_void_interface\
  106. datawizard/increment_redux \
  107. errorcheck/starpu_init_noworker \
  108. errorcheck/invalid_blocking_calls \
  109. errorcheck/invalid_tasks \
  110. helper/cublas_init \
  111. helper/starpu_data_cpy \
  112. helper/pinned_memory \
  113. helper/execute_on_all \
  114. helper/starpu_create_sync_task \
  115. microbenchs/async_tasks_overhead \
  116. microbenchs/sync_tasks_overhead \
  117. microbenchs/tasks_overhead \
  118. microbenchs/prefetch_data_on_node \
  119. microbenchs/redundant_buffer \
  120. microbenchs/local_pingpong \
  121. overlap/overlap
  122. testbin_PROGRAMS += \
  123. core/restart
  124. core_restart_SOURCES = \
  125. core/restart.c
  126. testbin_PROGRAMS += \
  127. core/execute_on_a_specific_worker
  128. core_execute_on_a_specific_worker_SOURCES = \
  129. core/execute_on_a_specific_worker.c
  130. testbin_PROGRAMS += \
  131. core/multithreaded
  132. core_multithreaded_SOURCES = \
  133. core/multithreaded.c
  134. testbin_PROGRAMS += \
  135. core/multithreaded_init
  136. core_multithreaded_init_SOURCES = \
  137. core/multithreaded_init.c
  138. testbin_PROGRAMS += \
  139. core/starpu_task_wait_for_all
  140. core_starpu_task_wait_for_all_SOURCES = \
  141. core/starpu_task_wait_for_all.c
  142. testbin_PROGRAMS += \
  143. core/starpu_task_wait
  144. core_starpu_task_wait_SOURCES = \
  145. core/starpu_task_wait.c
  146. testbin_PROGRAMS += \
  147. core/static_restartable
  148. core_static_restartable_SOURCES = \
  149. core/static_restartable.c
  150. testbin_PROGRAMS += \
  151. core/static_restartable_using_initializer
  152. core_static_restartable_using_initializer_SOURCES = \
  153. core/static_restartable_using_initializer.c
  154. testbin_PROGRAMS += \
  155. core/static_restartable_tag
  156. core_static_restartable_tag_SOURCES = \
  157. core/static_restartable_tag.c
  158. testbin_PROGRAMS += \
  159. core/regenerate
  160. core_regenerate_SOURCES = \
  161. core/regenerate.c
  162. testbin_PROGRAMS += \
  163. core/wait_all_regenerable_tasks
  164. core_wait_all_regenerable_tasks_SOURCES = \
  165. core/wait_all_regenerable_tasks.c
  166. testbin_PROGRAMS += \
  167. core/subgraph_repeat
  168. core_subgraph_repeat_SOURCES = \
  169. core/subgraph_repeat.c
  170. testbin_PROGRAMS += \
  171. core/subgraph_repeat_regenerate
  172. core_subgraph_repeat_regenerate_SOURCES = \
  173. core/subgraph_repeat_regenerate.c
  174. testbin_PROGRAMS += \
  175. core/empty_task
  176. core_empty_task_SOURCES = \
  177. core/empty_task.c
  178. testbin_PROGRAMS += \
  179. core/empty_task_sync_point
  180. core_empty_task_sync_point_SOURCES = \
  181. core/empty_task_sync_point.c
  182. testbin_PROGRAMS += \
  183. core/empty_task_sync_point_tasks
  184. core_empty_task_sync_point_tasks_SOURCES = \
  185. core/empty_task_sync_point_tasks.c
  186. testbin_PROGRAMS += \
  187. core/empty_task_chain
  188. core_empty_task_chain_SOURCES = \
  189. core/empty_task_chain.c
  190. testbin_PROGRAMS += \
  191. core/tag_wait_api
  192. core_tag_wait_api_SOURCES = \
  193. core/tag_wait_api.c
  194. testbin_PROGRAMS += \
  195. core/task_wait_api
  196. core_task_wait_api_SOURCES = \
  197. core/task_wait_api.c
  198. testbin_PROGRAMS += \
  199. core/declare_deps_in_callback
  200. core_declare_deps_in_callback_SOURCES = \
  201. core/declare_deps_in_callback.c
  202. testbin_PROGRAMS += \
  203. core/declare_deps_after_submission
  204. core_declare_deps_after_submission_SOURCES = \
  205. core/declare_deps_after_submission.c
  206. testbin_PROGRAMS += \
  207. core/declare_deps_after_submission_synchronous
  208. core_declare_deps_after_submission_synchronous_SOURCES = \
  209. core/declare_deps_after_submission_synchronous.c
  210. testbin_PROGRAMS += \
  211. core/get_current_task
  212. core_get_current_task_SOURCES = \
  213. core/get_current_task.c
  214. testbin_PROGRAMS += \
  215. datawizard/acquire_release
  216. datawizard_acquire_release_SOURCES = \
  217. datawizard/acquire_release.c
  218. if STARPU_USE_CUDA
  219. datawizard_acquire_release_SOURCES += \
  220. datawizard/acquire_release_cuda.cu
  221. endif
  222. testbin_PROGRAMS += \
  223. datawizard/acquire_release2
  224. datawizard_acquire_release2_SOURCES = \
  225. datawizard/acquire_release2.c
  226. if STARPU_USE_CUDA
  227. datawizard_acquire_release2_SOURCES += \
  228. datawizard/acquire_release_cuda.cu
  229. endif
  230. testbin_PROGRAMS += \
  231. datawizard/data_implicit_deps
  232. datawizard_data_implicit_deps_SOURCES = \
  233. datawizard/data_implicit_deps.c
  234. testbin_PROGRAMS += \
  235. datawizard/scratch
  236. datawizard_scratch_SOURCES = \
  237. datawizard/scratch.c
  238. if STARPU_USE_CUDA
  239. datawizard_scratch_SOURCES += \
  240. datawizard/scratch_cuda.cu
  241. endif
  242. testbin_PROGRAMS += \
  243. datawizard/dsm_stress
  244. datawizard_dsm_stress_SOURCES = \
  245. datawizard/dsm_stress.c
  246. testbin_PROGRAMS += \
  247. datawizard/write_only_tmp_buffer
  248. datawizard_write_only_tmp_buffer_SOURCES = \
  249. datawizard/write_only_tmp_buffer.c
  250. testbin_PROGRAMS += \
  251. datawizard/data_invalidation
  252. datawizard_data_invalidation_SOURCES = \
  253. datawizard/data_invalidation.c
  254. testbin_PROGRAMS += \
  255. datawizard/dining_philosophers
  256. datawizard_dining_philosophers_SOURCES = \
  257. datawizard/dining_philosophers.c
  258. testbin_PROGRAMS += \
  259. datawizard/manual_reduction
  260. datawizard_manual_reduction_SOURCES = \
  261. datawizard/manual_reduction.c
  262. testbin_PROGRAMS += \
  263. datawizard/readers_and_writers
  264. datawizard_readers_and_writers_SOURCES = \
  265. datawizard/readers_and_writers.c
  266. testbin_PROGRAMS += \
  267. datawizard/unpartition
  268. datawizard_unpartition_SOURCES = \
  269. datawizard/unpartition.c
  270. testbin_PROGRAMS += \
  271. datawizard/user_interaction_implicit
  272. datawizard_user_interaction_implicit_SOURCES = \
  273. datawizard/user_interaction_implicit.c
  274. testbin_PROGRAMS += \
  275. datawizard/reclaim
  276. datawizard_reclaim_SOURCES = \
  277. datawizard/reclaim.c
  278. testbin_PROGRAMS += \
  279. datawizard/sync_with_data_with_mem
  280. datawizard_sync_with_data_with_mem_SOURCES = \
  281. datawizard/sync_with_data_with_mem.c
  282. testbin_PROGRAMS += \
  283. datawizard/sync_with_data_with_mem_non_blocking
  284. datawizard_sync_with_data_with_mem_non_blocking_SOURCES = \
  285. datawizard/sync_with_data_with_mem_non_blocking.c
  286. testbin_PROGRAMS += \
  287. datawizard/sync_with_data_with_mem_non_blocking_implicit
  288. datawizard_sync_with_data_with_mem_non_blocking_implicit_SOURCES = \
  289. datawizard/sync_with_data_with_mem_non_blocking_implicit.c
  290. testbin_PROGRAMS += \
  291. datawizard/mpi_like
  292. datawizard_mpi_like_SOURCES = \
  293. datawizard/mpi_like.c
  294. testbin_PROGRAMS += \
  295. datawizard/mpi_like_async
  296. datawizard_mpi_like_async_SOURCES = \
  297. datawizard/mpi_like_async.c
  298. testbin_PROGRAMS += \
  299. datawizard/critical_section_with_void_interface
  300. datawizard_critical_section_with_void_interface_SOURCES = \
  301. datawizard/critical_section_with_void_interface.c
  302. testbin_PROGRAMS += \
  303. datawizard/increment_redux
  304. datawizard_increment_redux_SOURCES = \
  305. datawizard/increment_redux.c
  306. if STARPU_USE_CUDA
  307. datawizard_mpi_like_SOURCES += \
  308. datawizard/cuda_codelet_unsigned_inc.cu
  309. datawizard_mpi_like_async_SOURCES += \
  310. datawizard/cuda_codelet_unsigned_inc.cu
  311. datawizard_manual_reduction_SOURCES += \
  312. datawizard/cuda_codelet_unsigned_inc.cu
  313. endif
  314. testbin_PROGRAMS += \
  315. errorcheck/starpu_init_noworker
  316. errorcheck_starpu_init_noworker_SOURCES = \
  317. errorcheck/starpu_init_noworker.c
  318. testbin_PROGRAMS += \
  319. errorcheck/invalid_blocking_calls
  320. errorcheck_invalid_blocking_calls_SOURCES = \
  321. errorcheck/invalid_blocking_calls.c
  322. testbin_PROGRAMS += \
  323. errorcheck/invalid_tasks
  324. errorcheck_invalid_tasks_SOURCES = \
  325. errorcheck/invalid_tasks.c
  326. testbin_PROGRAMS += \
  327. helper/cublas_init
  328. helper_cublas_init_SOURCES = \
  329. helper/cublas_init.c
  330. testbin_PROGRAMS += \
  331. helper/starpu_data_cpy
  332. helper_starpu_data_cpy_SOURCES = \
  333. helper/starpu_data_cpy.c
  334. testbin_PROGRAMS += \
  335. helper/pinned_memory
  336. helper_pinned_memory_SOURCES = \
  337. helper/pinned_memory.c
  338. testbin_PROGRAMS += \
  339. helper/execute_on_all
  340. helper_execute_on_all_SOURCES = \
  341. helper/execute_on_all.c
  342. testbin_PROGRAMS += \
  343. helper/starpu_create_sync_task
  344. helper_starpu_create_sync_task_SOURCES = \
  345. helper/starpu_create_sync_task.c
  346. testbin_PROGRAMS += \
  347. microbenchs/async_tasks_overhead
  348. microbenchs_async_tasks_overhead_SOURCES = \
  349. microbenchs/async_tasks_overhead.c
  350. testbin_PROGRAMS += \
  351. microbenchs/sync_tasks_overhead
  352. microbenchs_sync_tasks_overhead_SOURCES = \
  353. microbenchs/sync_tasks_overhead.c
  354. testbin_PROGRAMS += \
  355. microbenchs/tasks_overhead
  356. microbenchs_tasks_overhead_SOURCES = \
  357. microbenchs/tasks_overhead.c
  358. testbin_PROGRAMS += \
  359. microbenchs/prefetch_data_on_node
  360. microbenchs_prefetch_data_on_node_SOURCES = \
  361. microbenchs/prefetch_data_on_node.c
  362. testbin_PROGRAMS += \
  363. datawizard/sync_and_notify_data
  364. datawizard_sync_and_notify_data_SOURCES = \
  365. datawizard/sync_and_notify_data.c
  366. testbin_PROGRAMS += \
  367. datawizard/sync_and_notify_data_implicit
  368. datawizard_sync_and_notify_data_implicit_SOURCES = \
  369. datawizard/sync_and_notify_data_implicit.c
  370. testbin_PROGRAMS += \
  371. microbenchs/redundant_buffer
  372. microbenchs_redundant_buffer_SOURCES = \
  373. microbenchs/redundant_buffer.c
  374. testbin_PROGRAMS += \
  375. microbenchs/display_structures_size
  376. microbenchs_display_structures_size_SOURCES = \
  377. microbenchs/display_structures_size.c
  378. testbin_PROGRAMS += \
  379. microbenchs/local_pingpong
  380. microbenchs_local_pingpong_SOURCES = \
  381. microbenchs/local_pingpong.c
  382. if STARPU_USE_CUDA
  383. datawizard_sync_and_notify_data_SOURCES += \
  384. datawizard/sync_and_notify_data_kernels.cu
  385. datawizard_sync_and_notify_data_implicit_SOURCES += \
  386. datawizard/sync_and_notify_data_kernels.cu
  387. endif
  388. if STARPU_USE_OPENCL
  389. datawizard_sync_and_notify_data_SOURCES += \
  390. datawizard/sync_and_notify_data_opencl.c
  391. datawizard_sync_and_notify_data_implicit_SOURCES += \
  392. datawizard/sync_and_notify_data_opencl.c
  393. nobase_STARPU_OPENCL_DATA_DATA += \
  394. datawizard/sync_and_notify_data_opencl_codelet.cl
  395. endif
  396. if STARPU_USE_GORDON
  397. datawizard_sync_and_notify_data_SOURCES += \
  398. datawizard/sync_and_notify_data_gordon_kernels.c
  399. datawizard_sync_and_notify_data_implicit_SOURCES += \
  400. datawizard/sync_and_notify_data_gordon_kernels.c
  401. BUILT_SOURCES += \
  402. datawizard/sync_and_notify_data_gordon_kernels.spuelf \
  403. microbenchs/null_kernel_gordon.spuelf
  404. endif
  405. testbin_PROGRAMS += \
  406. overlap/overlap
  407. overlap_overlap_SOURCES = \
  408. overlap/overlap.c