Makefile.am 28 KB

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