Makefile.am 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009, 2010, 2011 Université de Bordeaux 1
  4. # Copyright (C) 2010 Centre National de la Recherche Scientifique
  5. # Copyright (C) 2010 Institut National de Recherche en Informatique et Automatique
  6. #
  7. # StarPU is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU Lesser General Public License as published by
  9. # the Free Software Foundation; either version 2.1 of the License, or (at
  10. # your option) any later version.
  11. #
  12. # StarPU is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. #
  16. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  17. AM_CFLAGS = $(HWLOC_CFLAGS)
  18. LIBS = $(top_builddir)/src/libstarpu.la $(HWLOC_LIBS) @LIBS@
  19. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/src/
  20. EXTRA_DIST = \
  21. microbenchs/null_kernel_gordon.c \
  22. datawizard/sync_and_notify_data_gordon_kernels.c \
  23. datawizard/sync_and_notify_data_opencl_codelet.cl\
  24. coverage/coverage.sh
  25. CLEANFILES = \
  26. *.gcno *.gcda *.linkinfo \
  27. microbenchs/null_kernel_gordon.spuelf \
  28. datawizard/sync_and_notify_data_gordon_kernels.spuelf
  29. BUILT_SOURCES =
  30. if STARPU_USE_OPENCL
  31. nobase_STARPU_OPENCL_DATA_DATA =
  32. endif
  33. if STARPU_USE_CUDA
  34. # TODO define NVCCFLAGS
  35. NVCC ?= nvcc
  36. NVCCFLAGS += -I$(top_srcdir)/include/ -I$(top_builddir)/include $(HWLOC_CFLAGS)
  37. .cu.cubin:
  38. $(MKDIR_P) `dirname $@`
  39. $(NVCC) -cubin $< -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS)
  40. .cu.o:
  41. $(MKDIR_P) `dirname $@`
  42. $(NVCC) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I${includedir}
  43. endif
  44. if STARPU_USE_GORDON
  45. SPU_CC ?= spu-gcc
  46. SPU_LD ?= spu-ld
  47. .c.spuo:
  48. $(MKDIR_P) `dirname $@`
  49. $(SPU_CC) -c -fpic $< -o $@
  50. .spuo.spuelf:
  51. $(MKDIR_P) `dirname $@`
  52. $(SPU_LD) $< -o $@
  53. #BUILT_SOURCES +=
  54. # microbenchs/null_kernel_gordon.spuelf
  55. endif
  56. testbindir = $(libdir)/starpu/tests
  57. testbin_PROGRAMS =
  58. SUBDIRS =
  59. TESTS = $(check_PROGRAMS)
  60. if STARPU_COVERAGE_ENABLED
  61. TESTS += coverage/coverage.sh
  62. endif
  63. check_PROGRAMS =
  64. check_PROGRAMS += \
  65. core/restart \
  66. core/execute_on_a_specific_worker \
  67. core/multithreaded \
  68. core/multithreaded_init \
  69. core/starpu_task_wait_for_all \
  70. core/starpu_task_wait \
  71. core/static_restartable \
  72. core/static_restartable_using_initializer\
  73. core/static_restartable_tag \
  74. core/regenerate \
  75. core/wait_all_regenerable_tasks \
  76. core/subgraph_repeat \
  77. core/subgraph_repeat_regenerate \
  78. core/empty_task \
  79. core/empty_task_sync_point \
  80. core/empty_task_sync_point_tasks \
  81. core/empty_task_chain \
  82. core/tag_wait_api \
  83. core/task_wait_api \
  84. core/declare_deps_in_callback \
  85. core/declare_deps_after_submission \
  86. core/declare_deps_after_submission_synchronous \
  87. core/get_current_task \
  88. datawizard/acquire_release \
  89. datawizard/acquire_release2 \
  90. datawizard/data_implicit_deps \
  91. datawizard/scratch \
  92. datawizard/sync_and_notify_data \
  93. datawizard/sync_and_notify_data_implicit\
  94. datawizard/dsm_stress \
  95. datawizard/write_only_tmp_buffer \
  96. datawizard/data_invalidation \
  97. datawizard/dining_philosophers \
  98. datawizard/manual_reduction \
  99. datawizard/readers_and_writers \
  100. datawizard/unpartition \
  101. datawizard/user_interaction_implicit \
  102. datawizard/reclaim \
  103. datawizard/sync_with_data_with_mem \
  104. datawizard/sync_with_data_with_mem_non_blocking\
  105. datawizard/sync_with_data_with_mem_non_blocking_implicit\
  106. datawizard/mpi_like \
  107. datawizard/mpi_like_async \
  108. datawizard/critical_section_with_void_interface\
  109. datawizard/increment_redux \
  110. datawizard/increment_redux_v2 \
  111. errorcheck/starpu_init_noworker \
  112. errorcheck/invalid_blocking_calls \
  113. errorcheck/invalid_tasks \
  114. helper/cublas_init \
  115. helper/starpu_data_cpy \
  116. helper/pinned_memory \
  117. helper/execute_on_all \
  118. helper/starpu_create_sync_task \
  119. microbenchs/async_tasks_overhead \
  120. microbenchs/sync_tasks_overhead \
  121. microbenchs/tasks_overhead \
  122. microbenchs/prefetch_data_on_node \
  123. microbenchs/redundant_buffer \
  124. microbenchs/local_pingpong \
  125. overlap/overlap \
  126. parallel_tasks/explicit_combined_worker \
  127. parallel_tasks/parallel_kernels \
  128. parallel_tasks/parallel_kernels_spmd \
  129. perfmodels/regression_based \
  130. perfmodels/non_linear_regression_based
  131. testbin_PROGRAMS += \
  132. core/restart
  133. core_restart_SOURCES = \
  134. core/restart.c
  135. testbin_PROGRAMS += \
  136. core/execute_on_a_specific_worker
  137. core_execute_on_a_specific_worker_SOURCES = \
  138. core/execute_on_a_specific_worker.c
  139. testbin_PROGRAMS += \
  140. core/multithreaded
  141. core_multithreaded_SOURCES = \
  142. core/multithreaded.c
  143. testbin_PROGRAMS += \
  144. core/multithreaded_init
  145. core_multithreaded_init_SOURCES = \
  146. core/multithreaded_init.c
  147. testbin_PROGRAMS += \
  148. core/starpu_task_wait_for_all
  149. core_starpu_task_wait_for_all_SOURCES = \
  150. core/starpu_task_wait_for_all.c
  151. testbin_PROGRAMS += \
  152. core/starpu_task_wait
  153. core_starpu_task_wait_SOURCES = \
  154. core/starpu_task_wait.c
  155. testbin_PROGRAMS += \
  156. core/static_restartable
  157. core_static_restartable_SOURCES = \
  158. core/static_restartable.c
  159. testbin_PROGRAMS += \
  160. core/static_restartable_using_initializer
  161. core_static_restartable_using_initializer_SOURCES = \
  162. core/static_restartable_using_initializer.c
  163. testbin_PROGRAMS += \
  164. core/static_restartable_tag
  165. core_static_restartable_tag_SOURCES = \
  166. core/static_restartable_tag.c
  167. testbin_PROGRAMS += \
  168. core/regenerate
  169. core_regenerate_SOURCES = \
  170. core/regenerate.c
  171. testbin_PROGRAMS += \
  172. core/wait_all_regenerable_tasks
  173. core_wait_all_regenerable_tasks_SOURCES = \
  174. core/wait_all_regenerable_tasks.c
  175. testbin_PROGRAMS += \
  176. core/subgraph_repeat
  177. core_subgraph_repeat_SOURCES = \
  178. core/subgraph_repeat.c
  179. testbin_PROGRAMS += \
  180. core/subgraph_repeat_regenerate
  181. core_subgraph_repeat_regenerate_SOURCES = \
  182. core/subgraph_repeat_regenerate.c
  183. testbin_PROGRAMS += \
  184. core/empty_task
  185. core_empty_task_SOURCES = \
  186. core/empty_task.c
  187. testbin_PROGRAMS += \
  188. core/empty_task_sync_point
  189. core_empty_task_sync_point_SOURCES = \
  190. core/empty_task_sync_point.c
  191. testbin_PROGRAMS += \
  192. core/empty_task_sync_point_tasks
  193. core_empty_task_sync_point_tasks_SOURCES = \
  194. core/empty_task_sync_point_tasks.c
  195. testbin_PROGRAMS += \
  196. core/empty_task_chain
  197. core_empty_task_chain_SOURCES = \
  198. core/empty_task_chain.c
  199. testbin_PROGRAMS += \
  200. core/tag_wait_api
  201. core_tag_wait_api_SOURCES = \
  202. core/tag_wait_api.c
  203. testbin_PROGRAMS += \
  204. core/task_wait_api
  205. core_task_wait_api_SOURCES = \
  206. core/task_wait_api.c
  207. testbin_PROGRAMS += \
  208. core/declare_deps_in_callback
  209. core_declare_deps_in_callback_SOURCES = \
  210. core/declare_deps_in_callback.c
  211. testbin_PROGRAMS += \
  212. core/declare_deps_after_submission
  213. core_declare_deps_after_submission_SOURCES = \
  214. core/declare_deps_after_submission.c
  215. testbin_PROGRAMS += \
  216. core/declare_deps_after_submission_synchronous
  217. core_declare_deps_after_submission_synchronous_SOURCES = \
  218. core/declare_deps_after_submission_synchronous.c
  219. testbin_PROGRAMS += \
  220. core/get_current_task
  221. core_get_current_task_SOURCES = \
  222. core/get_current_task.c
  223. testbin_PROGRAMS += \
  224. datawizard/acquire_release
  225. datawizard_acquire_release_SOURCES = \
  226. datawizard/acquire_release.c
  227. if STARPU_USE_CUDA
  228. datawizard_acquire_release_SOURCES += \
  229. datawizard/acquire_release_cuda.cu
  230. endif
  231. testbin_PROGRAMS += \
  232. datawizard/acquire_release2
  233. datawizard_acquire_release2_SOURCES = \
  234. datawizard/acquire_release2.c
  235. if STARPU_USE_CUDA
  236. datawizard_acquire_release2_SOURCES += \
  237. datawizard/acquire_release_cuda.cu
  238. endif
  239. testbin_PROGRAMS += \
  240. datawizard/data_implicit_deps
  241. datawizard_data_implicit_deps_SOURCES = \
  242. datawizard/data_implicit_deps.c
  243. testbin_PROGRAMS += \
  244. datawizard/scratch
  245. datawizard_scratch_SOURCES = \
  246. datawizard/scratch.c
  247. if STARPU_USE_CUDA
  248. datawizard_scratch_SOURCES += \
  249. datawizard/scratch_cuda.cu
  250. endif
  251. testbin_PROGRAMS += \
  252. datawizard/dsm_stress
  253. datawizard_dsm_stress_SOURCES = \
  254. datawizard/dsm_stress.c
  255. testbin_PROGRAMS += \
  256. datawizard/write_only_tmp_buffer
  257. datawizard_write_only_tmp_buffer_SOURCES = \
  258. datawizard/write_only_tmp_buffer.c
  259. testbin_PROGRAMS += \
  260. datawizard/data_invalidation
  261. datawizard_data_invalidation_SOURCES = \
  262. datawizard/data_invalidation.c
  263. testbin_PROGRAMS += \
  264. datawizard/dining_philosophers
  265. datawizard_dining_philosophers_SOURCES = \
  266. datawizard/dining_philosophers.c
  267. testbin_PROGRAMS += \
  268. datawizard/manual_reduction
  269. datawizard_manual_reduction_SOURCES = \
  270. datawizard/manual_reduction.c
  271. testbin_PROGRAMS += \
  272. datawizard/readers_and_writers
  273. datawizard_readers_and_writers_SOURCES = \
  274. datawizard/readers_and_writers.c
  275. testbin_PROGRAMS += \
  276. datawizard/unpartition
  277. datawizard_unpartition_SOURCES = \
  278. datawizard/unpartition.c
  279. testbin_PROGRAMS += \
  280. datawizard/user_interaction_implicit
  281. datawizard_user_interaction_implicit_SOURCES = \
  282. datawizard/user_interaction_implicit.c
  283. testbin_PROGRAMS += \
  284. datawizard/reclaim
  285. datawizard_reclaim_SOURCES = \
  286. datawizard/reclaim.c
  287. testbin_PROGRAMS += \
  288. datawizard/sync_with_data_with_mem
  289. datawizard_sync_with_data_with_mem_SOURCES = \
  290. datawizard/sync_with_data_with_mem.c
  291. testbin_PROGRAMS += \
  292. datawizard/sync_with_data_with_mem_non_blocking
  293. datawizard_sync_with_data_with_mem_non_blocking_SOURCES = \
  294. datawizard/sync_with_data_with_mem_non_blocking.c
  295. testbin_PROGRAMS += \
  296. datawizard/sync_with_data_with_mem_non_blocking_implicit
  297. datawizard_sync_with_data_with_mem_non_blocking_implicit_SOURCES = \
  298. datawizard/sync_with_data_with_mem_non_blocking_implicit.c
  299. testbin_PROGRAMS += \
  300. datawizard/mpi_like
  301. datawizard_mpi_like_SOURCES = \
  302. datawizard/mpi_like.c
  303. testbin_PROGRAMS += \
  304. datawizard/mpi_like_async
  305. datawizard_mpi_like_async_SOURCES = \
  306. datawizard/mpi_like_async.c
  307. testbin_PROGRAMS += \
  308. datawizard/critical_section_with_void_interface
  309. datawizard_critical_section_with_void_interface_SOURCES = \
  310. datawizard/critical_section_with_void_interface.c
  311. testbin_PROGRAMS += \
  312. datawizard/increment_redux
  313. datawizard_increment_redux_SOURCES = \
  314. datawizard/increment_redux.c
  315. testbin_PROGRAMS += \
  316. datawizard/increment_redux_v2
  317. datawizard_increment_redux_v2_SOURCES = \
  318. datawizard/increment_redux_v2.c
  319. if STARPU_USE_CUDA
  320. datawizard_mpi_like_SOURCES += \
  321. datawizard/cuda_codelet_unsigned_inc.cu
  322. datawizard_mpi_like_async_SOURCES += \
  323. datawizard/cuda_codelet_unsigned_inc.cu
  324. endif
  325. testbin_PROGRAMS += \
  326. errorcheck/starpu_init_noworker
  327. errorcheck_starpu_init_noworker_SOURCES = \
  328. errorcheck/starpu_init_noworker.c
  329. testbin_PROGRAMS += \
  330. errorcheck/invalid_blocking_calls
  331. errorcheck_invalid_blocking_calls_SOURCES = \
  332. errorcheck/invalid_blocking_calls.c
  333. testbin_PROGRAMS += \
  334. errorcheck/invalid_tasks
  335. errorcheck_invalid_tasks_SOURCES = \
  336. errorcheck/invalid_tasks.c
  337. testbin_PROGRAMS += \
  338. helper/cublas_init
  339. helper_cublas_init_SOURCES = \
  340. helper/cublas_init.c
  341. testbin_PROGRAMS += \
  342. helper/starpu_data_cpy
  343. helper_starpu_data_cpy_SOURCES = \
  344. helper/starpu_data_cpy.c
  345. testbin_PROGRAMS += \
  346. helper/pinned_memory
  347. helper_pinned_memory_SOURCES = \
  348. helper/pinned_memory.c
  349. testbin_PROGRAMS += \
  350. helper/execute_on_all
  351. helper_execute_on_all_SOURCES = \
  352. helper/execute_on_all.c
  353. testbin_PROGRAMS += \
  354. helper/starpu_create_sync_task
  355. helper_starpu_create_sync_task_SOURCES = \
  356. helper/starpu_create_sync_task.c
  357. testbin_PROGRAMS += \
  358. microbenchs/async_tasks_overhead
  359. microbenchs_async_tasks_overhead_SOURCES = \
  360. microbenchs/async_tasks_overhead.c
  361. testbin_PROGRAMS += \
  362. microbenchs/sync_tasks_overhead
  363. microbenchs_sync_tasks_overhead_SOURCES = \
  364. microbenchs/sync_tasks_overhead.c
  365. testbin_PROGRAMS += \
  366. microbenchs/tasks_overhead
  367. microbenchs_tasks_overhead_SOURCES = \
  368. microbenchs/tasks_overhead.c
  369. testbin_PROGRAMS += \
  370. microbenchs/prefetch_data_on_node
  371. microbenchs_prefetch_data_on_node_SOURCES = \
  372. microbenchs/prefetch_data_on_node.c
  373. testbin_PROGRAMS += \
  374. datawizard/sync_and_notify_data
  375. datawizard_sync_and_notify_data_SOURCES = \
  376. datawizard/sync_and_notify_data.c
  377. testbin_PROGRAMS += \
  378. datawizard/sync_and_notify_data_implicit
  379. datawizard_sync_and_notify_data_implicit_SOURCES = \
  380. datawizard/sync_and_notify_data_implicit.c
  381. testbin_PROGRAMS += \
  382. microbenchs/redundant_buffer
  383. microbenchs_redundant_buffer_SOURCES = \
  384. microbenchs/redundant_buffer.c
  385. testbin_PROGRAMS += \
  386. microbenchs/display_structures_size
  387. microbenchs_display_structures_size_SOURCES = \
  388. microbenchs/display_structures_size.c
  389. testbin_PROGRAMS += \
  390. microbenchs/local_pingpong
  391. microbenchs_local_pingpong_SOURCES = \
  392. microbenchs/local_pingpong.c
  393. if STARPU_USE_CUDA
  394. datawizard_sync_and_notify_data_SOURCES += \
  395. datawizard/sync_and_notify_data_kernels.cu
  396. datawizard_sync_and_notify_data_implicit_SOURCES += \
  397. datawizard/sync_and_notify_data_kernels.cu
  398. endif
  399. if STARPU_USE_OPENCL
  400. datawizard_sync_and_notify_data_SOURCES += \
  401. datawizard/sync_and_notify_data_opencl.c
  402. datawizard_sync_and_notify_data_implicit_SOURCES += \
  403. datawizard/sync_and_notify_data_opencl.c
  404. nobase_STARPU_OPENCL_DATA_DATA += \
  405. datawizard/sync_and_notify_data_opencl_codelet.cl
  406. endif
  407. if STARPU_USE_GORDON
  408. datawizard_sync_and_notify_data_SOURCES += \
  409. datawizard/sync_and_notify_data_gordon_kernels.c
  410. datawizard_sync_and_notify_data_implicit_SOURCES += \
  411. datawizard/sync_and_notify_data_gordon_kernels.c
  412. BUILT_SOURCES += \
  413. datawizard/sync_and_notify_data_gordon_kernels.spuelf \
  414. microbenchs/null_kernel_gordon.spuelf
  415. endif
  416. testbin_PROGRAMS += \
  417. overlap/overlap
  418. overlap_overlap_SOURCES = \
  419. overlap/overlap.c
  420. testbin_PROGRAMS += \
  421. parallel_tasks/explicit_combined_worker
  422. parallel_tasks_explicit_combined_worker_SOURCES = \
  423. parallel_tasks/explicit_combined_worker.c
  424. testbin_PROGRAMS += \
  425. parallel_tasks/parallel_kernels
  426. parallel_tasks_parallel_kernels_SOURCES = \
  427. parallel_tasks/parallel_kernels.c
  428. testbin_PROGRAMS += \
  429. parallel_tasks/parallel_kernels_spmd
  430. parallel_tasks_parallel_kernels_spmd_SOURCES = \
  431. parallel_tasks/parallel_kernels_spmd.c
  432. testbin_PROGRAMS += \
  433. parallel_tasks/spmd_pgreedy
  434. parallel_tasks_spmd_pgreedy_SOURCES = \
  435. parallel_tasks/spmd_pgreedy.c
  436. testbin_PROGRAMS += \
  437. perfmodels/regression_based
  438. perfmodels_regression_based_SOURCES = \
  439. perfmodels/regression_based.c
  440. testbin_PROGRAMS += \
  441. perfmodels/non_linear_regression_based
  442. perfmodels_non_linear_regression_based_SOURCES = \
  443. perfmodels/non_linear_regression_based.c