Makefile.am 27 KB

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