Makefile.am 14 KB

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