Makefile.am 13 KB

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