Makefile.am 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2016 Université de Bordeaux
  4. # Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015 CNRS
  5. # Copyright (C) 2010, 2011, 2012 INRIA
  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. include $(top_srcdir)/starpu.mk
  18. AM_CFLAGS = $(HWLOC_CFLAGS) $(FXT_CFLAGS) -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(STARPU_COI_CPPFLAGS) $(STARPU_SCIF_CPPFLAGS) $(GLOBAL_AM_CFLAGS) -Wno-unused
  19. AM_CXXFLAGS = $(HWLOC_CFLAGS) $(FXT_CFLAGS) -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(STARPU_COI_CPPFLAGS) $(STARPU_SCIF_CPPFLAGS) $(GLOBAL_AM_CXXFLAGS) -Wno-unused
  20. LIBS = $(top_builddir)/src/@LIBSTARPU_LINK@ $(HWLOC_LIBS) @LIBS@ $(FXT_LIBS)
  21. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_builddir)/src -I$(top_srcdir)/src/
  22. AM_LDFLAGS = @STARPU_EXPORT_DYNAMIC@ $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS) $(STARPU_COI_LDFLAGS) $(STARPU_SCIF_LDFLAGS) $(FXT_LDFLAGS)
  23. EXTRA_DIST = \
  24. helper.h \
  25. datawizard/scal.h \
  26. datawizard/mpi_like.h \
  27. microbenchs/tasks_size_overhead.sh \
  28. microbenchs/tasks_size_overhead.gp \
  29. datawizard/scratch_opencl_kernel.cl \
  30. datawizard/sync_and_notify_data_opencl_codelet.cl\
  31. datawizard/opencl_codelet_unsigned_inc_kernel.cl \
  32. coverage/coverage.sh \
  33. datawizard/acquire_release_opencl_kernel.cl \
  34. datawizard/interfaces/test_interfaces.h \
  35. datawizard/interfaces/bcsr/bcsr_opencl_kernel.cl \
  36. datawizard/interfaces/coo/coo_opencl_kernel.cl \
  37. datawizard/interfaces/matrix/matrix_opencl_kernel.cl \
  38. datawizard/interfaces/variable/variable_opencl_kernel.cl \
  39. datawizard/interfaces/vector/test_vector_opencl_kernel.cl \
  40. datawizard/interfaces/multiformat/multiformat_types.h \
  41. datawizard/interfaces/multiformat/multiformat_opencl_kernel.cl \
  42. datawizard/interfaces/multiformat/multiformat_conversion_codelets_kernel.cl \
  43. datawizard/interfaces/multiformat/advanced/generic.h \
  44. datawizard/interfaces/csr/csr_opencl_kernel.cl \
  45. datawizard/interfaces/block/block_opencl_kernel.cl \
  46. perfmodels/opencl_memset_kernel.cl
  47. CLEANFILES = \
  48. *.gcno *.gcda *.linkinfo core starpu_idle_microsec.log *.mod
  49. BUILT_SOURCES =
  50. SUBDIRS =
  51. examplebindir = $(libdir)/starpu/examples
  52. if STARPU_USE_OPENCL
  53. nobase_STARPU_OPENCL_DATA_DATA =
  54. endif
  55. if STARPU_USE_CUDA
  56. # TODO define NVCCFLAGS
  57. NVCC ?= nvcc
  58. NVCCFLAGS += -I$(top_srcdir)/include/ -I$(top_srcdir)/src -I$(top_builddir)/src -I$(top_builddir)/src/common -I$(top_builddir)/include $(HWLOC_CFLAGS) $(SIMGRID_CFLAGS)
  59. .cu.cubin:
  60. $(MKDIR_P) `dirname $@`
  61. $(NVCC) -cubin $< -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS)
  62. .cu.o:
  63. $(MKDIR_P) `dirname $@`
  64. $(NVCC) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I${includedir}
  65. endif
  66. testbindir = $(libdir)/starpu/tests
  67. #####################################
  68. # What to install and what to check #
  69. #####################################
  70. if !STARPU_HAVE_WINDOWS
  71. ## test loader program
  72. if !STARPU_CROSS_COMPILING
  73. LOADER = loader
  74. LOADER_BIN = $(abs_top_builddir)/tests/$(LOADER)
  75. else
  76. LOADER =
  77. LOADER_BIN = $(top_builddir)/tests/loader-cross.sh
  78. endif
  79. if STARPU_HAVE_AM111
  80. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  81. LOG_COMPILER = $(LOADER_BIN)
  82. else
  83. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  84. endif
  85. endif
  86. TESTS = $(noinst_PROGRAMS)
  87. if STARPU_COVERAGE_ENABLED
  88. TESTS += coverage/coverage.sh
  89. endif
  90. XFAIL_TESTS= errorcheck/invalid_blocking_calls
  91. noinst_PROGRAMS = \
  92. main/deprecated_func \
  93. main/driver_api/init_run_deinit \
  94. main/driver_api/run_driver \
  95. main/deploop \
  96. main/restart \
  97. main/execute_on_a_specific_worker \
  98. main/execute_schedule \
  99. main/insert_task \
  100. main/insert_task_value \
  101. main/insert_task_dyn_handles \
  102. main/insert_task_nullcodelet \
  103. main/insert_task_array \
  104. main/multithreaded \
  105. main/multithreaded_init \
  106. main/starpu_task_bundle \
  107. main/starpu_task_wait_for_all \
  108. main/starpu_task_wait \
  109. main/static_restartable \
  110. main/static_restartable_using_initializer\
  111. main/static_restartable_tag \
  112. main/regenerate \
  113. main/regenerate_pipeline \
  114. main/wait_all_regenerable_tasks \
  115. main/subgraph_repeat \
  116. main/subgraph_repeat_tag \
  117. main/subgraph_repeat_regenerate \
  118. main/subgraph_repeat_regenerate_tag \
  119. main/empty_task \
  120. main/empty_task_sync_point \
  121. main/empty_task_sync_point_tasks \
  122. main/empty_task_chain \
  123. main/tag_wait_api \
  124. main/tag_get_task \
  125. main/task_wait_api \
  126. main/declare_deps_in_callback \
  127. main/declare_deps_after_submission \
  128. main/declare_deps_after_submission_synchronous \
  129. main/get_current_task \
  130. main/starpu_init \
  131. main/starpu_worker_exists \
  132. main/submit \
  133. main/pause_resume \
  134. main/codelet_null_callback \
  135. main/pack \
  136. main/get_children_tasks \
  137. datawizard/allocate \
  138. datawizard/acquire_cb \
  139. datawizard/acquire_cb_insert \
  140. datawizard/acquire_release \
  141. datawizard/acquire_release2 \
  142. datawizard/cache \
  143. datawizard/commute \
  144. datawizard/commute2 \
  145. datawizard/copy \
  146. datawizard/data_implicit_deps \
  147. datawizard/data_lookup \
  148. datawizard/scratch \
  149. datawizard/sync_and_notify_data \
  150. datawizard/sync_and_notify_data_implicit\
  151. datawizard/dsm_stress \
  152. datawizard/double_parameter \
  153. datawizard/write_only_tmp_buffer \
  154. datawizard/data_invalidation \
  155. datawizard/dining_philosophers \
  156. datawizard/manual_reduction \
  157. datawizard/readers_and_writers \
  158. datawizard/unpartition \
  159. datawizard/user_interaction_implicit \
  160. datawizard/sync_with_data_with_mem \
  161. datawizard/sync_with_data_with_mem_non_blocking\
  162. datawizard/sync_with_data_with_mem_non_blocking_implicit\
  163. datawizard/mpi_like \
  164. datawizard/mpi_like_async \
  165. datawizard/critical_section_with_void_interface\
  166. datawizard/increment_init \
  167. datawizard/increment_redux \
  168. datawizard/increment_redux_v2 \
  169. datawizard/increment_redux_lazy \
  170. datawizard/handle_to_pointer \
  171. datawizard/lazy_allocation \
  172. datawizard/lazy_unregister \
  173. datawizard/no_unregister \
  174. datawizard/noreclaim \
  175. datawizard/nowhere \
  176. datawizard/interfaces/copy_interfaces \
  177. datawizard/interfaces/block/block_interface \
  178. datawizard/interfaces/bcsr/bcsr_interface \
  179. datawizard/interfaces/coo/coo_interface \
  180. datawizard/interfaces/csr/csr_interface \
  181. datawizard/interfaces/matrix/matrix_interface \
  182. datawizard/interfaces/multiformat/multiformat_interface \
  183. datawizard/interfaces/multiformat/advanced/multiformat_cuda_opencl \
  184. datawizard/interfaces/multiformat/advanced/multiformat_data_release \
  185. datawizard/interfaces/multiformat/advanced/multiformat_worker \
  186. datawizard/interfaces/multiformat/advanced/multiformat_handle_conversion \
  187. datawizard/interfaces/multiformat/advanced/same_handle \
  188. datawizard/interfaces/variable/variable_interface \
  189. datawizard/interfaces/vector/test_vector_interface \
  190. datawizard/interfaces/void/void_interface \
  191. datawizard/in_place_partition \
  192. datawizard/partition_dep \
  193. datawizard/partition_lazy \
  194. datawizard/gpu_register \
  195. datawizard/gpu_ptr_register \
  196. datawizard/variable_parameters \
  197. datawizard/wt_host \
  198. datawizard/wt_broadcast \
  199. datawizard/readonly \
  200. datawizard/specific_node \
  201. datawizard/task_with_multiple_time_the_same_handle \
  202. datawizard/test_arbiter \
  203. datawizard/locality \
  204. disk/disk_copy \
  205. disk/disk_compute \
  206. disk/disk_pack \
  207. disk/mem_reclaim \
  208. errorcheck/starpu_init_noworker \
  209. errorcheck/invalid_blocking_calls \
  210. errorcheck/invalid_tasks \
  211. errorcheck/workers_cpuid \
  212. helper/cublas_init \
  213. helper/starpu_data_cpy \
  214. helper/pinned_memory \
  215. helper/execute_on_all \
  216. helper/starpu_create_sync_task \
  217. microbenchs/async_tasks_overhead \
  218. microbenchs/sync_tasks_overhead \
  219. microbenchs/tasks_overhead \
  220. microbenchs/tasks_size_overhead \
  221. microbenchs/prefetch_data_on_node \
  222. microbenchs/redundant_buffer \
  223. microbenchs/local_pingpong \
  224. microbenchs/matrix_as_vector \
  225. sched_ctx/sched_ctx_list \
  226. openmp/init_exit_01 \
  227. openmp/init_exit_02 \
  228. openmp/environment \
  229. openmp/api_01 \
  230. openmp/parallel_01 \
  231. openmp/parallel_02 \
  232. openmp/parallel_03 \
  233. openmp/parallel_barrier_01 \
  234. openmp/parallel_master_01 \
  235. openmp/parallel_master_inline_01 \
  236. openmp/parallel_single_wait_01 \
  237. openmp/parallel_single_nowait_01 \
  238. openmp/parallel_single_inline_01 \
  239. openmp/parallel_single_copyprivate_01 \
  240. openmp/parallel_single_copyprivate_inline_01 \
  241. openmp/parallel_critical_01 \
  242. openmp/parallel_critical_inline_01 \
  243. openmp/parallel_critical_named_01 \
  244. openmp/parallel_critical_named_inline_01\
  245. openmp/parallel_simple_lock_01 \
  246. openmp/parallel_nested_lock_01 \
  247. openmp/parallel_for_01 \
  248. openmp/parallel_for_02 \
  249. openmp/parallel_for_ordered_01 \
  250. openmp/parallel_sections_01 \
  251. openmp/parallel_sections_combined_01 \
  252. openmp/task_01 \
  253. openmp/task_02 \
  254. openmp/taskwait_01 \
  255. openmp/taskgroup_01 \
  256. openmp/taskgroup_02 \
  257. openmp/array_slice_01 \
  258. openmp/cuda_task_01 \
  259. overlap/overlap \
  260. overlap/gpu_concurrency \
  261. parallel_tasks/explicit_combined_worker \
  262. parallel_tasks/parallel_kernels \
  263. parallel_tasks/parallel_kernels_spmd \
  264. parallel_tasks/spmd_peager \
  265. parallel_tasks/cuda_only \
  266. perfmodels/regression_based \
  267. perfmodels/non_linear_regression_based \
  268. perfmodels/feed \
  269. perfmodels/user_base \
  270. perfmodels/valid_model \
  271. perfmodels/value_nan \
  272. perfmodels/memory \
  273. sched_policies/data_locality \
  274. sched_policies/execute_all_tasks \
  275. sched_policies/prio \
  276. sched_policies/simple_deps \
  277. sched_policies/simple_cpu_gpu_sched
  278. if STARPU_HAVE_FC
  279. if !STARPU_SANITIZE
  280. if !STARPU_SIMGRID
  281. noinst_PROGRAMS += \
  282. fortran90/init_01
  283. endif
  284. endif
  285. endif
  286. if STARPU_LONG_CHECK
  287. noinst_PROGRAMS += \
  288. main/tag_task_data_deps \
  289. datawizard/reclaim
  290. endif
  291. examplebin_PROGRAMS = \
  292. microbenchs/tasks_size_overhead \
  293. microbenchs/local_pingpong
  294. examplebin_SCRIPTS = \
  295. microbenchs/tasks_size_overhead.gp \
  296. microbenchs/tasks_size_overhead.sh
  297. if STARPU_HAVE_WINDOWS
  298. check_PROGRAMS = $(noinst_PROGRAMS)
  299. else
  300. check_PROGRAMS = $(LOADER) $(noinst_PROGRAMS)
  301. endif
  302. #######################
  303. # Source files #
  304. #######################
  305. datawizard_acquire_release_SOURCES = \
  306. datawizard/acquire_release.c
  307. if STARPU_USE_CUDA
  308. datawizard_acquire_release_SOURCES += \
  309. datawizard/acquire_release_cuda.cu
  310. endif
  311. if STARPU_USE_OPENCL
  312. datawizard_acquire_release_SOURCES += \
  313. datawizard/acquire_release_opencl.c
  314. nobase_STARPU_OPENCL_DATA_DATA += \
  315. datawizard/acquire_release_opencl_kernel.cl
  316. endif
  317. datawizard_acquire_release2_SOURCES = \
  318. datawizard/acquire_release2.c
  319. if STARPU_USE_CUDA
  320. datawizard_acquire_release2_SOURCES += \
  321. datawizard/acquire_release_cuda.cu
  322. endif
  323. if STARPU_USE_OPENCL
  324. datawizard_acquire_release2_SOURCES += \
  325. datawizard/acquire_release_opencl.c
  326. endif
  327. datawizard_scratch_SOURCES = \
  328. datawizard/scratch.c
  329. if STARPU_USE_CUDA
  330. datawizard_scratch_SOURCES += \
  331. datawizard/scratch_cuda.cu
  332. endif
  333. if STARPU_USE_OPENCL
  334. datawizard_scratch_SOURCES += \
  335. datawizard/scratch_opencl.c
  336. nobase_STARPU_OPENCL_DATA_DATA += \
  337. datawizard/scratch_opencl_kernel.cl
  338. endif
  339. datawizard_mpi_like_SOURCES = \
  340. datawizard/mpi_like.c
  341. if STARPU_USE_CUDA
  342. datawizard_mpi_like_SOURCES += \
  343. datawizard/cuda_codelet_unsigned_inc.cu
  344. endif
  345. if STARPU_USE_OPENCL
  346. datawizard_mpi_like_SOURCES += \
  347. datawizard/opencl_codelet_unsigned_inc.c
  348. nobase_STARPU_OPENCL_DATA_DATA+= \
  349. datawizard/opencl_codelet_unsigned_inc_kernel.cl
  350. endif
  351. datawizard_mpi_like_async_SOURCES = \
  352. datawizard/mpi_like_async.c
  353. if STARPU_USE_CUDA
  354. datawizard_mpi_like_async_SOURCES += \
  355. datawizard/cuda_codelet_unsigned_inc.cu
  356. endif
  357. if STARPU_USE_OPENCL
  358. datawizard_mpi_like_async_SOURCES += \
  359. datawizard/opencl_codelet_unsigned_inc.c
  360. endif
  361. datawizard_sync_and_notify_data_SOURCES = \
  362. datawizard/sync_and_notify_data.c
  363. if STARPU_USE_CUDA
  364. datawizard_sync_and_notify_data_SOURCES += \
  365. datawizard/sync_and_notify_data_kernels.cu
  366. endif
  367. if STARPU_USE_OPENCL
  368. datawizard_sync_and_notify_data_SOURCES += \
  369. datawizard/sync_and_notify_data_opencl.c
  370. nobase_STARPU_OPENCL_DATA_DATA += \
  371. datawizard/sync_and_notify_data_opencl_codelet.cl
  372. endif
  373. datawizard_sync_and_notify_data_implicit_SOURCES = \
  374. datawizard/sync_and_notify_data_implicit.c
  375. if STARPU_USE_CUDA
  376. datawizard_sync_and_notify_data_implicit_SOURCES += \
  377. datawizard/sync_and_notify_data_kernels.cu
  378. endif
  379. if STARPU_USE_OPENCL
  380. datawizard_sync_and_notify_data_implicit_SOURCES += \
  381. datawizard/sync_and_notify_data_opencl.c
  382. endif
  383. datawizard_in_place_partition_SOURCES = \
  384. datawizard/in_place_partition.c \
  385. datawizard/scal.c
  386. if STARPU_USE_CUDA
  387. datawizard_in_place_partition_SOURCES += \
  388. datawizard/scal_cuda.cu
  389. endif
  390. if STARPU_USE_OPENCL
  391. datawizard_in_place_partition_SOURCES += \
  392. datawizard/scal_opencl.cl
  393. endif
  394. datawizard_partition_dep_SOURCES = \
  395. datawizard/partition_dep.c \
  396. datawizard/scal.c
  397. if STARPU_USE_CUDA
  398. datawizard_partition_dep_SOURCES += \
  399. datawizard/scal_cuda.cu
  400. endif
  401. if STARPU_USE_OPENCL
  402. datawizard_partition_dep_SOURCES += \
  403. datawizard/scal_opencl.cl
  404. endif
  405. datawizard_partition_lazy_SOURCES = \
  406. datawizard/partition_lazy.c \
  407. datawizard/scal.c
  408. if STARPU_USE_CUDA
  409. datawizard_partition_lazy_SOURCES += \
  410. datawizard/scal_cuda.cu
  411. endif
  412. if STARPU_USE_OPENCL
  413. datawizard_partition_lazy_SOURCES += \
  414. datawizard/scal_opencl.cl
  415. endif
  416. datawizard_gpu_register_SOURCES = \
  417. datawizard/gpu_register.c \
  418. datawizard/scal.c
  419. if STARPU_USE_CUDA
  420. datawizard_gpu_register_SOURCES += \
  421. datawizard/scal_cuda.cu
  422. endif
  423. if STARPU_USE_OPENCL
  424. datawizard_gpu_register_SOURCES += \
  425. datawizard/scal_opencl.cl
  426. endif
  427. datawizard_gpu_ptr_register_SOURCES = \
  428. datawizard/gpu_ptr_register.c \
  429. datawizard/scal.c
  430. if STARPU_USE_CUDA
  431. datawizard_gpu_ptr_register_SOURCES += \
  432. datawizard/scal_cuda.cu
  433. endif
  434. if STARPU_USE_OPENCL
  435. datawizard_gpu_ptr_register_SOURCES += \
  436. datawizard/scal_opencl.cl
  437. endif
  438. datawizard_wt_host_SOURCES = \
  439. datawizard/wt_host.c
  440. datawizard_wt_broadcast_SOURCES = \
  441. datawizard/wt_broadcast.c
  442. datawizard_specific_node_SOURCES = \
  443. datawizard/specific_node.c
  444. if STARPU_USE_CUDA
  445. datawizard_specific_node_SOURCES += \
  446. datawizard/cuda_codelet_unsigned_inc.cu
  447. endif
  448. if STARPU_USE_OPENCL
  449. datawizard_specific_node_SOURCES += \
  450. datawizard/opencl_codelet_unsigned_inc.c
  451. endif
  452. datawizard_test_arbiter_SOURCES = \
  453. datawizard/test_arbiter.cpp
  454. main_deprecated_func_CFLAGS = $(AM_CFLAGS) -Wno-deprecated-declarations
  455. main_subgraph_repeat_SOURCES = \
  456. main/subgraph_repeat.c
  457. if STARPU_USE_CUDA
  458. main_subgraph_repeat_SOURCES += \
  459. main/increment.cu
  460. endif
  461. main_subgraph_repeat_tag_SOURCES = \
  462. main/subgraph_repeat_tag.c
  463. if STARPU_USE_CUDA
  464. main_subgraph_repeat_tag_SOURCES += \
  465. main/increment.cu
  466. endif
  467. main_subgraph_repeat_regenerate_SOURCES = \
  468. main/subgraph_repeat_regenerate.c
  469. if STARPU_USE_CUDA
  470. main_subgraph_repeat_regenerate_SOURCES += \
  471. main/increment.cu
  472. endif
  473. main_subgraph_repeat_regenerate_tag_SOURCES = \
  474. main/subgraph_repeat_regenerate_tag.c
  475. if STARPU_USE_CUDA
  476. main_subgraph_repeat_regenerate_tag_SOURCES += \
  477. main/increment.cu
  478. endif
  479. sched_ctx_sched_ctx_list_SOURCES = \
  480. sched_ctx/sched_ctx_list.c
  481. openmp_init_exit_01_SOURCES = \
  482. openmp/init_exit_01.c
  483. openmp_init_exit_02_SOURCES = \
  484. openmp/init_exit_02.c
  485. openmp_environment_SOURCES = \
  486. openmp/environment.c
  487. openmp_api_01_SOURCES = \
  488. openmp/api_01.c
  489. openmp_parallel_01_SOURCES = \
  490. openmp/parallel_01.c
  491. openmp_parallel_02_SOURCES = \
  492. openmp/parallel_02.c
  493. openmp_parallel_03_SOURCES = \
  494. openmp/parallel_03.c
  495. openmp_parallel_barrier_01_SOURCES = \
  496. openmp/parallel_barrier_01.c
  497. openmp_parallel_master_01_SOURCES = \
  498. openmp/parallel_master_01.c
  499. openmp_parallel_master_inline_01_SOURCES = \
  500. openmp/parallel_master_inline_01.c
  501. openmp_parallel_single_wait_01_SOURCES = \
  502. openmp/parallel_single_wait_01.c
  503. openmp_parallel_single_nowait_01_SOURCES = \
  504. openmp/parallel_single_nowait_01.c
  505. openmp_parallel_single_inline_01_SOURCES = \
  506. openmp/parallel_single_inline_01.c
  507. openmp_parallel_single_copyprivate_01_SOURCES = \
  508. openmp/parallel_single_copyprivate_01.c
  509. openmp_parallel_single_copyprivate_inline_01_SOURCES = \
  510. openmp/parallel_single_copyprivate_inline_01.c
  511. openmp_parallel_critical_01_SOURCES = \
  512. openmp/parallel_critical_01.c
  513. openmp_parallel_critical_inline_01_SOURCES = \
  514. openmp/parallel_critical_inline_01.c
  515. openmp_parallel_critical_named_01_SOURCES = \
  516. openmp/parallel_critical_named_01.c
  517. openmp_parallel_critical_named_inline_01_SOURCES = \
  518. openmp/parallel_critical_named_inline_01.c
  519. openmp_parallel_simple_lock_01_SOURCES = \
  520. openmp/parallel_simple_lock_01.c
  521. openmp_parallel_nested_lock_01_SOURCES = \
  522. openmp/parallel_nested_lock_01.c
  523. openmp_parallel_for_01_SOURCES = \
  524. openmp/parallel_for_01.c
  525. openmp_parallel_for_02_SOURCES = \
  526. openmp/parallel_for_02.c
  527. openmp_parallel_for_ordered_01_SOURCES = \
  528. openmp/parallel_for_ordered_01.c
  529. openmp_parallel_sections_01_SOURCES = \
  530. openmp/parallel_sections_01.c
  531. openmp_parallel_sections_combined_01_SOURCES = \
  532. openmp/parallel_sections_combined_01.c
  533. openmp_task_01_SOURCES = \
  534. openmp/task_01.c
  535. openmp_task_02_SOURCES = \
  536. openmp/task_02.c
  537. openmp_taskwait_01_SOURCES = \
  538. openmp/taskwait_01.c
  539. openmp_taskgroup_01_SOURCES = \
  540. openmp/taskgroup_01.c
  541. openmp_taskgroup_02_SOURCES = \
  542. openmp/taskgroup_02.c
  543. openmp_array_slice_01_SOURCES = \
  544. openmp/array_slice_01.c
  545. openmp_cuda_task_01_SOURCES = \
  546. openmp/cuda_task_01.c
  547. if STARPU_HAVE_FC
  548. fortran90_init_01_SOURCES = \
  549. $(top_srcdir)/include/starpu_mod.f90 \
  550. fortran90/init_01.f90
  551. endif
  552. ###################
  553. # Block interface #
  554. ###################
  555. datawizard_interfaces_block_block_interface_SOURCES= \
  556. datawizard/interfaces/test_interfaces.c \
  557. datawizard/interfaces/block/block_interface.c
  558. if STARPU_USE_CUDA
  559. datawizard_interfaces_block_block_interface_SOURCES+= \
  560. datawizard/interfaces/block/block_cuda.cu
  561. endif
  562. if STARPU_USE_OPENCL
  563. datawizard_interfaces_block_block_interface_SOURCES+= \
  564. datawizard/interfaces/block/block_opencl.c
  565. nobase_STARPU_OPENCL_DATA_DATA += \
  566. datawizard/interfaces/block/block_opencl_kernel.cl
  567. endif
  568. ##################
  569. # BSCR interface #
  570. ##################
  571. datawizard_interfaces_bcsr_bcsr_interface_SOURCES= \
  572. datawizard/interfaces/test_interfaces.c \
  573. datawizard/interfaces/bcsr/bcsr_interface.c
  574. if STARPU_USE_CUDA
  575. datawizard_interfaces_bcsr_bcsr_interface_SOURCES+= \
  576. datawizard/interfaces/bcsr/bcsr_cuda.cu
  577. endif
  578. if STARPU_USE_OPENCL
  579. datawizard_interfaces_bcsr_bcsr_interface_SOURCES+= \
  580. datawizard/interfaces/bcsr/bcsr_opencl.c
  581. nobase_STARPU_OPENCL_DATA_DATA += \
  582. datawizard/interfaces/bcsr/bcsr_opencl_kernel.cl
  583. endif
  584. #################
  585. # COO interface #
  586. #################
  587. datawizard_interfaces_coo_coo_interface_SOURCES= \
  588. datawizard/interfaces/test_interfaces.c \
  589. datawizard/interfaces/coo/coo_interface.c
  590. if STARPU_USE_CUDA
  591. datawizard_interfaces_coo_coo_interface_SOURCES+= \
  592. datawizard/interfaces/coo/coo_cuda.cu
  593. endif
  594. if STARPU_USE_OPENCL
  595. datawizard_interfaces_coo_coo_interface_SOURCES+= \
  596. datawizard/interfaces/coo/coo_opencl.c
  597. nobase_STARPU_OPENCL_DATA_DATA += \
  598. datawizard/interfaces/coo/coo_opencl_kernel.cl
  599. endif
  600. #################
  601. # CSR interface #
  602. #################
  603. datawizard_interfaces_csr_csr_interface_SOURCES= \
  604. datawizard/interfaces/test_interfaces.c \
  605. datawizard/interfaces/csr/csr_interface.c
  606. if STARPU_USE_CUDA
  607. datawizard_interfaces_csr_csr_interface_SOURCES+= \
  608. datawizard/interfaces/csr/csr_cuda.cu
  609. endif
  610. if STARPU_USE_OPENCL
  611. datawizard_interfaces_csr_csr_interface_SOURCES+= \
  612. datawizard/interfaces/csr/csr_opencl.c
  613. nobase_STARPU_OPENCL_DATA_DATA += \
  614. datawizard/interfaces/csr/csr_opencl_kernel.cl
  615. endif
  616. datawizard_interfaces_vector_test_vector_interface_SOURCES = \
  617. datawizard/interfaces/vector/test_vector_interface.c \
  618. datawizard/interfaces/test_interfaces.c
  619. if STARPU_USE_CUDA
  620. datawizard_interfaces_vector_test_vector_interface_SOURCES += \
  621. datawizard/interfaces/vector/test_vector_cuda.cu
  622. endif
  623. if STARPU_USE_OPENCL
  624. datawizard_interfaces_vector_test_vector_interface_SOURCES += \
  625. datawizard/interfaces/vector/test_vector_opencl.c
  626. nobase_STARPU_OPENCL_DATA_DATA += \
  627. datawizard/interfaces/vector/test_vector_opencl_kernel.cl
  628. endif
  629. ####################
  630. # Matrix interface #
  631. ####################
  632. datawizard_interfaces_matrix_matrix_interface_SOURCES= \
  633. datawizard/interfaces/test_interfaces.c \
  634. datawizard/interfaces/matrix/matrix_interface.c
  635. if STARPU_USE_CUDA
  636. datawizard_interfaces_matrix_matrix_interface_SOURCES+= \
  637. datawizard/interfaces/matrix/matrix_cuda.cu
  638. endif
  639. if STARPU_USE_OPENCL
  640. datawizard_interfaces_matrix_matrix_interface_SOURCES+= \
  641. datawizard/interfaces/matrix/matrix_opencl.c
  642. nobase_STARPU_OPENCL_DATA_DATA+= \
  643. datawizard/interfaces/matrix/matrix_opencl_kernel.cl
  644. endif
  645. #########################
  646. # Multiformat interface #
  647. #########################
  648. datawizard_interfaces_multiformat_multiformat_interface_SOURCES = \
  649. datawizard/interfaces/test_interfaces.c \
  650. datawizard/interfaces/multiformat/multiformat_interface.c \
  651. datawizard/interfaces/multiformat/multiformat_conversion_codelets.c
  652. if STARPU_USE_CUDA
  653. datawizard_interfaces_multiformat_multiformat_interface_SOURCES+= \
  654. datawizard/interfaces/multiformat/multiformat_cuda.cu \
  655. datawizard/interfaces/multiformat/multiformat_conversion_codelets_cuda.cu
  656. endif
  657. if STARPU_USE_OPENCL
  658. datawizard_interfaces_multiformat_multiformat_interface_SOURCES+= \
  659. datawizard/interfaces/multiformat/multiformat_opencl.c \
  660. datawizard/interfaces/multiformat/multiformat_conversion_codelets_opencl.c
  661. nobase_STARPU_OPENCL_DATA_DATA += \
  662. datawizard/interfaces/multiformat/multiformat_opencl_kernel.cl \
  663. datawizard/interfaces/multiformat/multiformat_conversion_codelets_kernel.cl
  664. endif
  665. datawizard_interfaces_multiformat_advanced_multiformat_cuda_opencl_SOURCES=\
  666. datawizard/interfaces/multiformat/advanced/generic.c \
  667. datawizard/interfaces/multiformat/advanced/multiformat_cuda_opencl.c
  668. datawizard_interfaces_multiformat_advanced_multiformat_data_release_SOURCES = \
  669. datawizard/interfaces/multiformat/advanced/generic.c \
  670. datawizard/interfaces/multiformat/advanced/multiformat_data_release.c
  671. datawizard_interfaces_multiformat_advanced_multiformat_worker_SOURCES=\
  672. datawizard/interfaces/multiformat/advanced/generic.c \
  673. datawizard/interfaces/multiformat/advanced/multiformat_worker.c
  674. datawizard_interfaces_multiformat_advanced_multiformat_handle_conversion_SOURCES = \
  675. datawizard/interfaces/multiformat/advanced/generic.c \
  676. datawizard/interfaces/multiformat/advanced/multiformat_handle_conversion.c
  677. datawizard_interfaces_multiformat_advanced_same_handle_SOURCES= \
  678. datawizard/interfaces/multiformat/advanced/generic.c \
  679. datawizard/interfaces/multiformat/advanced/same_handle.c
  680. datawizard_interfaces_variable_variable_interface_SOURCES= \
  681. datawizard/interfaces/test_interfaces.c \
  682. datawizard/interfaces/variable/variable_interface.c
  683. if STARPU_USE_CUDA
  684. datawizard_interfaces_variable_variable_interface_SOURCES+= \
  685. datawizard/interfaces/variable/variable_cuda.cu
  686. endif
  687. if STARPU_USE_OPENCL
  688. datawizard_interfaces_variable_variable_interface_SOURCES+= \
  689. datawizard/interfaces/variable/variable_opencl.c
  690. nobase_STARPU_OPENCL_DATA_DATA += \
  691. datawizard/interfaces/variable/variable_opencl_kernel.cl
  692. endif
  693. ##################
  694. # Void interface #
  695. ##################
  696. datawizard_interfaces_void_void_interface_SOURCES=\
  697. datawizard/interfaces/test_interfaces.c \
  698. datawizard/interfaces/void/void_interface.c
  699. overlap_gpu_concurrency_SOURCES=\
  700. overlap/gpu_concurrency.c
  701. if STARPU_USE_CUDA
  702. overlap_gpu_concurrency_SOURCES+=\
  703. overlap/long_kernel.cu
  704. endif
  705. perfmodels_regression_based_SOURCES=\
  706. perfmodels/regression_based.c
  707. if STARPU_USE_OPENCL
  708. perfmodels_regression_based_SOURCES+=\
  709. perfmodels/opencl_memset.c
  710. nobase_STARPU_OPENCL_DATA_DATA += \
  711. perfmodels/opencl_memset_kernel.cl
  712. endif
  713. perfmodels_non_linear_regression_based_SOURCES=\
  714. perfmodels/non_linear_regression_based.c
  715. if STARPU_USE_OPENCL
  716. perfmodels_non_linear_regression_based_SOURCES+=\
  717. perfmodels/opencl_memset.c
  718. endif
  719. perfmodels_feed_SOURCES=\
  720. perfmodels/feed.c
  721. sched_policies_execute_all_tasks_LDFLAGS = $(AM_LDFLAGS) -lm
  722. if STARPU_HAVE_FC
  723. # Fortran90 tests
  724. # - list explicit dependences to control proper module files generation
  725. # - the overriding rule fully disables the corresponing default rule, thus
  726. # the default rule body must be copied entirely
  727. starpu_mod.mod: starpu_mod.o
  728. starpu_mod.o: $(top_srcdir)/include/starpu_mod.f90
  729. $(AM_V_FC)$(FC) $(fortran90_init_01_FCFLAGS) $(FCFLAGS) -c -o $@ '$(top_srcdir)/'include/starpu_mod.f90
  730. init_01.o: $(top_srcdir)/tests/fortran90/init_01.f90 starpu_mod.mod
  731. $(AM_V_FC)$(FC) $(fortran90_init_01_FCFLAGS) $(FCFLAGS) -c -o $@ `test -f 'fortran90/init_01.f90' || echo '$(srcdir)/'`fortran90/init_01.f90
  732. endif