Makefile.am 28 KB

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