Makefile.am 13 KB

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