Makefile.am 29 KB

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