Makefile.am 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2016 Université de Bordeaux
  4. # Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015 CNRS
  5. # Copyright (C) 2011 Télécom-SudParis
  6. # Copyright (C) 2011-2012 INRIA
  7. # Copyright (C) 2015-2016 Inria
  8. # Copyright (C) 2016 Uppsala University
  9. #
  10. # StarPU is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU Lesser General Public License as published by
  12. # the Free Software Foundation; either version 2.1 of the License, or (at
  13. # your option) any later version.
  14. #
  15. # StarPU is distributed in the hope that it will be useful, but
  16. # WITHOUT ANY WARRANTY; without even the implied warranty of
  17. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  18. #
  19. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  20. include $(top_srcdir)/starpu.mk
  21. if STARPU_SIMGRID
  22. STARPU_PERF_MODEL_DIR=$(abs_top_srcdir)/tools/perfmodels/sampling
  23. STARPU_HOSTNAME=mirage
  24. export STARPU_PERF_MODEL_DIR
  25. export STARPU_HOSTNAME
  26. endif
  27. AM_CFLAGS = $(MAGMA_CFLAGS) $(HWLOC_CFLAGS) -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(GLOBAL_AM_CFLAGS) -Wno-unused
  28. AM_CXXFLAGS = $(MAGMA_CFLAGS) $(HWLOC_CFLAGS) -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(GLOBAL_AM_CXXFLAGS) -Wno-unused
  29. LIBS = $(top_builddir)/src/@LIBSTARPU_LINK@ $(MAGMA_LIBS) $(HWLOC_LIBS) @LIBS@ $(FXT_LIBS)
  30. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/examples/ -I$(top_builddir)/include
  31. AM_LDFLAGS = @STARPU_EXPORT_DYNAMIC@ $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS) $(STARPU_COI_LDFLAGS) $(STARPU_SCIF_LDFLAGS)
  32. SUBDIRS = stencil
  33. BUILT_SOURCES =
  34. if STARPU_USE_OPENCL
  35. nobase_STARPU_OPENCL_DATA_DATA =
  36. endif
  37. EXTRA_DIST = \
  38. README.txt \
  39. axpy/axpy.h \
  40. axpy/axpy_opencl_kernel.cl \
  41. basic_examples/vector_scal_opencl_kernel.cl \
  42. basic_examples/multiformat_types.h \
  43. basic_examples/multiformat_opencl_kernel.cl \
  44. basic_examples/multiformat_conversion_codelets_opencl_kernel.cl \
  45. common/blas_model.c \
  46. spmd/vector_scal_spmd.c \
  47. spmv/spmv_cuda.cu \
  48. spmv/spmv_opencl.cl \
  49. spmv/matrix_market/examples/fidapm05.mtx \
  50. mult/xgemm.c \
  51. lu/xlu.c \
  52. lu/xlu_pivot.c \
  53. lu/xlu_implicit.c \
  54. lu/xlu_implicit_pivot.c \
  55. lu/xlu_kernels.c \
  56. lu/lu_example.c \
  57. incrementer/incrementer_kernels_opencl_kernel.cl \
  58. basic_examples/variable_kernels_opencl_kernel.cl \
  59. matvecmult/matvecmult_kernel.cl \
  60. basic_examples/block_opencl_kernel.cl \
  61. filters/fblock_opencl_kernel.cl \
  62. filters/custom_mf/conversion_opencl.cl \
  63. filters/custom_mf/custom_opencl.cl \
  64. filters/custom_mf/custom_types.h \
  65. interface/complex_kernels.cl \
  66. reductions/dot_product.h \
  67. reductions/dot_product_opencl_kernels.cl \
  68. scheduler/schedulers.sh \
  69. scheduler/schedulers_context.sh \
  70. fortran/Makefile \
  71. sched_ctx/axpy_partition_gpu.h \
  72. sched_ctx/axpy_partition_gpu.cu
  73. CLEANFILES = *.gcno *.gcda *.linkinfo *.mod starpu_idle_microsec.log
  74. if STARPU_USE_CUDA
  75. if STARPU_COVERITY
  76. include $(top_srcdir)/starpu-mynvcc.mk
  77. else
  78. NVCCFLAGS += --compiler-options -fno-strict-aliasing -I$(top_srcdir)/include/ -I$(top_builddir)/include/ -I$(top_srcdir)/examples/ $(HWLOC_CFLAGS)
  79. .cu.o:
  80. $(NVCC) $< -c -o $@ $(NVCCFLAGS)
  81. endif
  82. endif
  83. if STARPU_HAVE_ICC
  84. .icc.o:
  85. $(ICC) -x c $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  86. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $< -c -o $@
  87. endif
  88. examplebindir = $(libdir)/starpu/examples/
  89. examplebin_PROGRAMS =
  90. noinst_HEADERS = \
  91. axpy/axpy.h \
  92. cg/cg.h \
  93. heat/lu_kernels_model.h \
  94. heat/dw_sparse_cg.h \
  95. heat/heat.h \
  96. heat/dw_factolu.h \
  97. lu/xlu.h \
  98. lu/xlu_kernels.h \
  99. lu/lu-float.h \
  100. lu/lu-double.h \
  101. lu/complex_float.h \
  102. lu/complex_double.h \
  103. lu/blas_complex.h \
  104. cholesky/cholesky.h \
  105. sched_ctx_utils/sched_ctx_utils.h \
  106. common/blas_model.h \
  107. common/blas.h \
  108. mult/simple.h \
  109. mult/double.h \
  110. fortran/StarPU_fortran.h \
  111. ppm_downscaler/ppm_downscaler.h \
  112. ppm_downscaler/yuv_downscaler.h \
  113. spmv/matrix_market/mmio.h \
  114. spmv/matrix_market/mm_to_bcsr.h \
  115. spmv/spmv.h \
  116. spmv/dw_block_spmv.h \
  117. basic_examples/multiformat_types.h \
  118. filters/custom_mf/custom_interface.h \
  119. filters/custom_mf/custom_types.h \
  120. interface/complex_interface.h \
  121. interface/complex_codelet.h \
  122. pi/pi.h \
  123. pi/SobolQRNG/sobol.h \
  124. pi/SobolQRNG/sobol_gold.h \
  125. pi/SobolQRNG/sobol_gpu.h \
  126. pi/SobolQRNG/sobol_primitives.h \
  127. reductions/dot_product.h \
  128. basic_examples/vector_scal_cpu_template.h \
  129. sched_ctx/axpy_partition_gpu.h
  130. #####################################
  131. # What to install and what to check #
  132. #####################################
  133. examplebin_PROGRAMS += $(STARPU_EXAMPLES)
  134. TESTS = $(STARPU_EXAMPLES)
  135. if STARPU_NEW_CHECK
  136. TESTS += scheduler/schedulers.sh
  137. TESTS += scheduler/schedulers_context.sh
  138. endif
  139. if STARPU_HAVE_WINDOWS
  140. check_PROGRAMS = $(STARPU_EXAMPLES)
  141. else
  142. check_PROGRAMS = $(LOADER) $(STARPU_EXAMPLES)
  143. endif
  144. if !STARPU_HAVE_WINDOWS
  145. ## test loader program
  146. if !STARPU_CROSS_COMPILING
  147. LOADER = loader
  148. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  149. LOADER_BIN = $(abs_top_builddir)/examples/$(LOADER)
  150. loader_SOURCES = ../tests/loader.c
  151. else
  152. LOADER =
  153. LOADER_BIN = $(top_builddir)/examples/loader-cross.sh
  154. endif
  155. if STARPU_HAVE_AM111
  156. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  157. LOG_COMPILER = $(LOADER_BIN)
  158. else
  159. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  160. endif
  161. endif
  162. # STARPU_EXAMPLES list all applications which have to be compiled and checked
  163. # Applications which should only be compiled are added directly in examplebin_PROGRAMS
  164. # see for instance mandelbrot/mandelbrot
  165. STARPU_EXAMPLES =
  166. STARPU_EXAMPLES += \
  167. sched_ctx/prio \
  168. worker_collections/worker_list_example
  169. if !STARPU_SIMGRID
  170. STARPU_EXAMPLES += \
  171. basic_examples/hello_world \
  172. basic_examples/vector_scal \
  173. basic_examples/mult \
  174. basic_examples/block \
  175. basic_examples/variable \
  176. basic_examples/multiformat \
  177. basic_examples/dynamic_handles \
  178. mlr/mlr \
  179. cpp/incrementer_cpp \
  180. cpp/add_vectors \
  181. filters/fvector \
  182. filters/fblock \
  183. filters/fmatrix \
  184. filters/fmultiple_manual \
  185. filters/fmultiple_submit \
  186. filters/fmultiple_submit_readonly \
  187. tag_example/tag_example \
  188. tag_example/tag_example2 \
  189. tag_example/tag_example3 \
  190. tag_example/tag_example4 \
  191. tag_example/tag_restartable \
  192. spmd/vector_scal_spmd \
  193. spmv/spmv \
  194. callback/callback \
  195. callback/prologue \
  196. incrementer/incrementer \
  197. binary/binary \
  198. interface/complex \
  199. matvecmult/matvecmult \
  200. profiling/profiling \
  201. scheduler/dummy_sched \
  202. scheduler/heteroprio_test \
  203. sched_ctx/sched_ctx \
  204. sched_ctx/two_cpu_contexts \
  205. sched_ctx/dummy_sched_with_ctx \
  206. worker_collections/worker_tree_example \
  207. reductions/dot_product \
  208. reductions/minmax_reduction \
  209. sched_ctx/gpu_partition
  210. endif
  211. if !STARPU_SIMGRID
  212. STARPU_EXAMPLES += \
  213. scheduler/dummy_sched
  214. if STARPU_HAVE_CXX11
  215. STARPU_EXAMPLES += \
  216. cpp/add_vectors_cpp11
  217. endif
  218. if STARPU_HAVE_F77
  219. if STARPU_HAVE_F77_H
  220. STARPU_EXAMPLES += \
  221. fortran/hello
  222. endif
  223. STARPU_EXAMPLES += \
  224. basic_examples/vector_scal_fortran
  225. endif
  226. if STARPU_HAVE_FC
  227. if !STARPU_SANITIZE
  228. STARPU_EXAMPLES += \
  229. fortran90/f90_example \
  230. native_fortran/nf_vector \
  231. native_fortran/nf_matrix \
  232. native_fortran/nf_example \
  233. native_fortran/nf_dynbuf \
  234. native_fortran/nf_varbuf \
  235. native_fortran/nf_sched_ctx \
  236. native_fortran/nf_partition
  237. endif
  238. endif
  239. endif
  240. if !NO_BLAS_LIB
  241. STARPU_EXAMPLES += \
  242. mult/sgemm \
  243. mult/dgemm \
  244. cholesky/cholesky_tag \
  245. cholesky/cholesky_tile_tag \
  246. cholesky/cholesky_implicit
  247. if !STARPU_SIMGRID
  248. STARPU_EXAMPLES += \
  249. axpy/axpy \
  250. cholesky/cholesky_grain_tag \
  251. lu/lu_example_float \
  252. lu/lu_example_double \
  253. lu/lu_implicit_example_float \
  254. lu/lu_implicit_example_double \
  255. heat/heat \
  256. cg/cg \
  257. pipeline/pipeline
  258. endif
  259. endif
  260. if !STARPU_SIMGRID
  261. if MKL_BLAS_LIB
  262. STARPU_EXAMPLES += \
  263. lu/lu_example_complex_float \
  264. lu/lu_example_complex_double \
  265. lu/lu_implicit_example_complex_float \
  266. lu/lu_implicit_example_complex_double
  267. endif
  268. if ATLAS_BLAS_LIB
  269. STARPU_EXAMPLES += \
  270. spmv/dw_block_spmv
  271. endif
  272. if !STARPU_SIMGRID
  273. if STARPU_HAVE_F77
  274. if STARPU_HAVE_F77_H
  275. STARPU_EXAMPLES += \
  276. fortran/hello
  277. endif
  278. STARPU_EXAMPLES += \
  279. basic_examples/vector_scal_fortran
  280. endif
  281. endif
  282. if STARPU_HAVE_OPENMP
  283. STARPU_EXAMPLES += \
  284. openmp/vector_scal_omp \
  285. sched_ctx/sched_ctx_without_sched_policy\
  286. sched_ctx/nested_sched_ctxs \
  287. sched_ctx/sched_ctx_without_sched_policy_awake\
  288. sched_ctx/parallel_tasks_reuse_handle
  289. if STARPU_LONG_CHECK
  290. STARPU_EXAMPLES += \
  291. sched_ctx/parallel_code
  292. endif
  293. if STARPU_HAVE_HWLOC
  294. if STARPU_HWLOC_HAVE_TOPOLOGY_DUP
  295. STARPU_EXAMPLES += \
  296. sched_ctx/parallel_tasks_with_cluster_api
  297. endif
  298. endif
  299. endif
  300. endif !STARPU_SIMGRID
  301. sched_ctx_gpu_partition_SOURCES = \
  302. sched_ctx/gpu_partition.c
  303. if STARPU_USE_CUDA
  304. sched_ctx_gpu_partition_SOURCES += \
  305. sched_ctx/axpy_partition_gpu.cu
  306. endif
  307. ##################
  308. # Basic examples #
  309. ##################
  310. basic_examples_vector_scal_SOURCES = \
  311. basic_examples/vector_scal.c \
  312. basic_examples/vector_scal_cpu.c
  313. if STARPU_HAVE_ICC
  314. if STARPU_CROSS_COMPILING
  315. else
  316. basic_examples_vector_scal_SOURCES += \
  317. basic_examples/vector_scal_cpu_icc.icc
  318. endif
  319. endif
  320. if STARPU_USE_CUDA
  321. basic_examples_vector_scal_SOURCES += \
  322. basic_examples/vector_scal_cuda.cu
  323. endif
  324. if STARPU_USE_OPENCL
  325. basic_examples_vector_scal_SOURCES += \
  326. basic_examples/vector_scal_opencl.c
  327. nobase_STARPU_OPENCL_DATA_DATA += \
  328. basic_examples/vector_scal_opencl_kernel.cl
  329. endif
  330. if STARPU_HAVE_F77
  331. basic_examples_vector_scal_fortran_SOURCES = \
  332. basic_examples/vector_scal_fortran.F \
  333. basic_examples/vector_scal_c.c \
  334. basic_examples/vector_scal_cpu.c
  335. if STARPU_USE_CUDA
  336. basic_examples_vector_scal_fortran_SOURCES += \
  337. basic_examples/vector_scal_cuda.cu
  338. basic_examples_vector_scal_fortran_LDADD = \
  339. $(STARPU_CUDA_FORTRAN_LDFLAGS)
  340. endif
  341. if STARPU_HAVE_F77_H
  342. fortran_hello_SOURCES = \
  343. fortran/hello_c.c \
  344. fortran/hello.F \
  345. fortran/StarPU_fortran.h
  346. endif
  347. endif
  348. if STARPU_HAVE_FC
  349. fortran90_f90_example_SOURCES = \
  350. fortran90/mod_types.f90 \
  351. $(top_srcdir)/include/starpu_mod.f90 \
  352. fortran90/mod_interface.f90 \
  353. fortran90/mod_compute.f90 \
  354. fortran90/marshalling.c \
  355. fortran90/f90_example.f90
  356. native_fortran_nf_vector_SOURCES = \
  357. native_fortran/nf_codelets.f90 \
  358. $(top_srcdir)/include/fstarpu_mod.f90 \
  359. native_fortran/nf_vector.f90
  360. native_fortran_nf_matrix_SOURCES = \
  361. native_fortran/nf_codelets.f90 \
  362. $(top_srcdir)/include/fstarpu_mod.f90 \
  363. native_fortran/nf_matrix.f90
  364. native_fortran_nf_example_SOURCES = \
  365. native_fortran/nf_types.f90 \
  366. native_fortran/nf_compute.f90 \
  367. $(top_srcdir)/include/fstarpu_mod.f90 \
  368. native_fortran/nf_example.f90
  369. native_fortran_nf_dynbuf_SOURCES = \
  370. native_fortran/nf_dynbuf_cl.f90 \
  371. $(top_srcdir)/include/fstarpu_mod.f90 \
  372. native_fortran/nf_dynbuf.f90
  373. native_fortran_nf_varbuf_SOURCES = \
  374. native_fortran/nf_varbuf_cl.f90 \
  375. $(top_srcdir)/include/fstarpu_mod.f90 \
  376. native_fortran/nf_varbuf.f90
  377. native_fortran_nf_sched_ctx_SOURCES = \
  378. native_fortran/nf_sched_ctx_cl.f90 \
  379. $(top_srcdir)/include/fstarpu_mod.f90 \
  380. native_fortran/nf_sched_ctx.f90
  381. native_fortran_nf_partition_SOURCES = \
  382. native_fortran/nf_partition_cl.f90 \
  383. $(top_srcdir)/include/fstarpu_mod.f90 \
  384. native_fortran/nf_partition.f90
  385. endif
  386. #######################
  387. # Multiformat example #
  388. #######################
  389. basic_examples_multiformat_SOURCES = \
  390. basic_examples/multiformat.c \
  391. basic_examples/multiformat_conversion_codelets.c
  392. if STARPU_USE_CUDA
  393. basic_examples_multiformat_SOURCES += \
  394. basic_examples/multiformat_cuda.cu \
  395. basic_examples/multiformat_conversion_codelets_cuda.cu
  396. endif
  397. if STARPU_USE_OPENCL
  398. basic_examples_multiformat_SOURCES += \
  399. basic_examples/multiformat_opencl.c \
  400. basic_examples/multiformat_conversion_codelets_opencl.c
  401. nobase_STARPU_OPENCL_DATA_DATA += \
  402. basic_examples/multiformat_opencl_kernel.cl \
  403. basic_examples/multiformat_conversion_codelets_opencl_kernel.cl
  404. endif
  405. #################
  406. # block example #
  407. #################
  408. basic_examples_block_SOURCES = \
  409. basic_examples/block.c \
  410. basic_examples/block_cpu.c
  411. if STARPU_USE_CUDA
  412. basic_examples_block_SOURCES += \
  413. basic_examples/block_cuda.cu
  414. endif
  415. if STARPU_USE_OPENCL
  416. basic_examples_block_SOURCES += \
  417. basic_examples/block_opencl.c
  418. nobase_STARPU_OPENCL_DATA_DATA += \
  419. basic_examples/block_opencl_kernel.cl
  420. endif
  421. ####################
  422. # Variable example #
  423. ####################
  424. basic_examples_variable_SOURCES = \
  425. basic_examples/variable.c \
  426. basic_examples/variable_kernels_cpu.c
  427. if STARPU_USE_CUDA
  428. basic_examples_variable_SOURCES += \
  429. basic_examples/variable_kernels.cu
  430. endif
  431. if STARPU_USE_OPENCL
  432. basic_examples_variable_SOURCES += \
  433. basic_examples/variable_kernels_opencl.c
  434. nobase_STARPU_OPENCL_DATA_DATA += \
  435. basic_examples/variable_kernels_opencl_kernel.cl
  436. endif
  437. ###########
  438. # Filters #
  439. ###########
  440. filters_fblock_SOURCES = \
  441. filters/fblock.c \
  442. filters/fblock_cpu.c
  443. if STARPU_USE_CUDA
  444. filters_fblock_SOURCES += \
  445. filters/fblock_cuda.cu
  446. endif
  447. if STARPU_USE_OPENCL
  448. filters_fblock_SOURCES += \
  449. filters/fblock_opencl.c
  450. nobase_STARPU_OPENCL_DATA_DATA += \
  451. filters/fblock_opencl_kernel.cl
  452. endif
  453. filters_fmultiple_manual_SOURCES = \
  454. filters/fmultiple_manual.c
  455. if STARPU_USE_CUDA
  456. filters_fmultiple_manual_SOURCES += \
  457. filters/fmultiple_cuda.cu
  458. endif
  459. filters_fmultiple_submit_SOURCES = \
  460. filters/fmultiple_submit.c
  461. if STARPU_USE_CUDA
  462. filters_fmultiple_submit_SOURCES += \
  463. filters/fmultiple_cuda.cu
  464. endif
  465. filters_fmultiple_submit_readonly_SOURCES = \
  466. filters/fmultiple_submit_readonly.c
  467. if STARPU_USE_CUDA
  468. filters_fmultiple_submit_readonly_SOURCES += \
  469. filters/fmultiple_cuda.cu
  470. endif
  471. examplebin_PROGRAMS += \
  472. filters/shadow \
  473. filters/shadow2d \
  474. filters/shadow3d
  475. #############################
  476. # Custom multiformat filter #
  477. #############################
  478. #TODO: see why the application is failing
  479. #lt-custom_mf_filter: .../src/datawizard/malloc.c:784: starpu_free_on_node: Assertion `chunk != _starpu_chunk_list_end(chunks[dst_node])' failed.
  480. examplebin_PROGRAMS += \
  481. filters/custom_mf/custom_mf_filter
  482. filters_custom_mf_custom_mf_filter_SOURCES=\
  483. filters/custom_mf/custom_mf_filter.c \
  484. filters/custom_mf/custom_interface.c \
  485. filters/custom_mf/custom_conversion_codelets.c
  486. if STARPU_USE_CUDA
  487. filters_custom_mf_custom_mf_filter_SOURCES += \
  488. filters/custom_mf/conversion.cu \
  489. filters/custom_mf/cuda.cu
  490. endif
  491. if STARPU_USE_OPENCL
  492. filters_custom_mf_custom_mf_filter_SOURCES += \
  493. filters/custom_mf/conversion_opencl.c \
  494. filters/custom_mf/custom_opencl.c
  495. nobase_STARPU_OPENCL_DATA_DATA += \
  496. filters/custom_mf/conversion_opencl.cl \
  497. filters/custom_mf/custom_opencl.cl
  498. endif
  499. ################
  500. # AXPY example #
  501. ################
  502. if !NO_BLAS_LIB
  503. axpy_axpy_SOURCES = \
  504. axpy/axpy.c \
  505. common/blas.c
  506. if STARPU_USE_OPENCL
  507. axpy_axpy_SOURCES += \
  508. axpy/axpy_opencl.c
  509. nobase_STARPU_OPENCL_DATA_DATA += \
  510. axpy/axpy_opencl_kernel.cl
  511. endif
  512. axpy_axpy_LDADD = \
  513. $(STARPU_BLAS_LDFLAGS)
  514. endif
  515. ################
  516. # Mult example #
  517. ################
  518. if !NO_BLAS_LIB
  519. mult_sgemm_SOURCES = \
  520. mult/sgemm.c \
  521. common/blas.c
  522. mult_sgemm_LDADD = \
  523. $(STARPU_BLAS_LDFLAGS)
  524. mult_dgemm_SOURCES = \
  525. mult/dgemm.c \
  526. common/blas.c
  527. mult_dgemm_LDADD = \
  528. $(STARPU_BLAS_LDFLAGS)
  529. endif
  530. ####################
  531. # Cholesky example #
  532. ####################
  533. if !NO_BLAS_LIB
  534. cholesky_cholesky_tag_SOURCES = \
  535. cholesky/cholesky_tag.c \
  536. cholesky/cholesky_models.c \
  537. cholesky/cholesky_kernels.c \
  538. common/blas.c
  539. cholesky_cholesky_tag_LDADD = \
  540. $(STARPU_BLAS_LDFLAGS)
  541. cholesky_cholesky_tile_tag_SOURCES = \
  542. cholesky/cholesky_tile_tag.c \
  543. cholesky/cholesky_models.c \
  544. cholesky/cholesky_kernels.c \
  545. common/blas.c
  546. cholesky_cholesky_tile_tag_LDADD = \
  547. $(STARPU_BLAS_LDFLAGS)
  548. cholesky_cholesky_grain_tag_SOURCES = \
  549. cholesky/cholesky_grain_tag.c \
  550. cholesky/cholesky_models.c \
  551. cholesky/cholesky_kernels.c \
  552. common/blas.c
  553. cholesky_cholesky_grain_tag_LDADD = \
  554. $(STARPU_BLAS_LDFLAGS)
  555. cholesky_cholesky_implicit_SOURCES = \
  556. cholesky/cholesky_implicit.c \
  557. cholesky/cholesky_models.c \
  558. cholesky/cholesky_kernels.c \
  559. sched_ctx_utils/sched_ctx_utils.c \
  560. common/blas.c
  561. cholesky_cholesky_implicit_LDADD = \
  562. $(STARPU_BLAS_LDFLAGS)
  563. endif
  564. ##############
  565. # LU example #
  566. ##############
  567. if !NO_BLAS_LIB
  568. lu_lu_example_float_SOURCES = \
  569. lu/lu_example_float.c \
  570. lu/slu.c \
  571. lu/slu_pivot.c \
  572. lu/slu_kernels.c \
  573. common/blas.c
  574. lu_lu_example_float_LDADD = \
  575. $(STARPU_BLAS_LDFLAGS)
  576. lu_lu_example_double_SOURCES = \
  577. lu/lu_example_double.c \
  578. lu/dlu.c \
  579. lu/dlu_pivot.c \
  580. lu/dlu_kernels.c \
  581. common/blas.c
  582. lu_lu_example_double_LDADD = \
  583. $(STARPU_BLAS_LDFLAGS)
  584. lu_lu_implicit_example_float_SOURCES = \
  585. lu/lu_example_float.c \
  586. lu/slu_implicit.c \
  587. lu/slu_implicit_pivot.c \
  588. lu/slu_kernels.c \
  589. common/blas.c
  590. lu_lu_implicit_example_float_LDADD = \
  591. $(STARPU_BLAS_LDFLAGS)
  592. lu_lu_implicit_example_double_SOURCES = \
  593. lu/lu_example_double.c \
  594. lu/dlu_implicit.c \
  595. lu/dlu_implicit_pivot.c \
  596. lu/dlu_kernels.c \
  597. common/blas.c
  598. lu_lu_implicit_example_double_LDADD = \
  599. $(STARPU_BLAS_LDFLAGS)
  600. if MKL_BLAS_LIB
  601. lu_lu_example_complex_float_SOURCES = \
  602. lu/lu_example_complex_float.c \
  603. lu/clu.c \
  604. lu/clu_pivot.c \
  605. lu/clu_kernels.c \
  606. lu/blas_complex.c \
  607. common/blas.c
  608. lu_lu_example_complex_float_LDADD = \
  609. $(STARPU_BLAS_LDFLAGS)
  610. lu_lu_implicit_example_complex_float_SOURCES = \
  611. lu/lu_example_complex_float.c \
  612. lu/clu_implicit.c \
  613. lu/clu_implicit_pivot.c \
  614. lu/clu_kernels.c \
  615. lu/blas_complex.c \
  616. common/blas.c
  617. lu_lu_implicit_example_complex_float_LDADD = \
  618. $(STARPU_BLAS_LDFLAGS)
  619. lu_lu_example_complex_double_SOURCES = \
  620. lu/lu_example_complex_double.c \
  621. lu/zlu.c \
  622. lu/zlu_pivot.c \
  623. lu/zlu_kernels.c \
  624. lu/blas_complex.c \
  625. common/blas.c
  626. lu_lu_example_complex_double_LDADD = \
  627. $(STARPU_BLAS_LDFLAGS)
  628. lu_lu_implicit_example_complex_double_SOURCES = \
  629. lu/lu_example_complex_double.c \
  630. lu/zlu_implicit.c \
  631. lu/zlu_implicit_pivot.c \
  632. lu/zlu_kernels.c \
  633. lu/blas_complex.c \
  634. common/blas.c
  635. lu_lu_implicit_example_complex_double_LDADD = \
  636. $(STARPU_BLAS_LDFLAGS)
  637. endif
  638. endif
  639. ################
  640. # Heat example #
  641. ################
  642. if !NO_BLAS_LIB
  643. heat_heat_SOURCES = \
  644. heat/heat.c \
  645. heat/dw_factolu.c \
  646. heat/dw_factolu_tag.c \
  647. heat/dw_factolu_grain.c \
  648. heat/dw_sparse_cg.c \
  649. heat/heat_display.c \
  650. heat/lu_kernels_model.c \
  651. heat/dw_sparse_cg_kernels.c \
  652. heat/dw_factolu_kernels.c \
  653. common/blas.c
  654. heat_heat_LDADD = \
  655. $(STARPU_OPENGL_RENDER_LDFLAGS) \
  656. $(STARPU_BLAS_LDFLAGS)
  657. endif
  658. ##############
  659. # CG example #
  660. ##############
  661. if !NO_BLAS_LIB
  662. cg_cg_SOURCES = \
  663. cg/cg.c \
  664. cg/cg_kernels.c \
  665. common/blas.c
  666. if STARPU_USE_CUDA
  667. cg_cg_SOURCES += \
  668. cg/cg_dot_kernel.cu
  669. endif
  670. cg_cg_LDADD = \
  671. $(STARPU_BLAS_LDFLAGS)
  672. endif
  673. ################
  674. # SPMD example #
  675. ################
  676. spmd_vector_scal_spmd_SOURCES = \
  677. spmd/vector_scal_spmd.c
  678. ################
  679. # SpMV example #
  680. ################
  681. spmv_spmv_SOURCES = \
  682. spmv/spmv.c \
  683. spmv/spmv_kernels.c
  684. if STARPU_USE_CUDA
  685. spmv_spmv_SOURCES += \
  686. spmv/spmv_cuda.cu
  687. endif
  688. if ATLAS_BLAS_LIB
  689. spmv_dw_block_spmv_SOURCES = \
  690. spmv/dw_block_spmv.c \
  691. spmv/dw_block_spmv_kernels.c \
  692. spmv/matrix_market/mm_to_bcsr.c \
  693. spmv/matrix_market/mmio.c
  694. spmv_dw_block_spmv_LDADD = \
  695. $(STARPU_BLAS_LDFLAGS)
  696. endif
  697. ###########################
  698. # C++ Incrementer example #
  699. ###########################
  700. cpp_incrementer_cpp_SOURCES = \
  701. cpp/incrementer_cpp.cpp
  702. if STARPU_USE_CUDA
  703. cpp_incrementer_cpp_SOURCES += \
  704. incrementer/incrementer_kernels.cu
  705. endif
  706. if STARPU_USE_OPENCL
  707. cpp_incrementer_cpp_SOURCES += \
  708. incrementer/incrementer_kernels_opencl.c
  709. endif
  710. ###########################
  711. # C++ Add vectors example #
  712. ###########################
  713. cpp_add_vectors_SOURCES = \
  714. cpp/add_vectors.cpp
  715. if STARPU_HAVE_CXX11
  716. cpp_add_vectors_cpp11_SOURCES = \
  717. cpp/add_vectors_cpp11.cpp
  718. endif
  719. #######################
  720. # Incrementer example #
  721. #######################
  722. incrementer_incrementer_SOURCES = \
  723. incrementer/incrementer.c
  724. if STARPU_USE_CUDA
  725. incrementer_incrementer_SOURCES += \
  726. incrementer/incrementer_kernels.cu
  727. endif
  728. if STARPU_USE_OPENCL
  729. incrementer_incrementer_SOURCES += \
  730. incrementer/incrementer_kernels_opencl.c
  731. nobase_STARPU_OPENCL_DATA_DATA += \
  732. incrementer/incrementer_kernels_opencl_kernel.cl
  733. endif
  734. ##################
  735. # Binary example #
  736. ##################
  737. binary_binary_SOURCES = \
  738. binary/binary.c
  739. if STARPU_USE_OPENCL
  740. binary_binary_SOURCES += \
  741. incrementer/incrementer_kernels_opencl.c
  742. endif
  743. #####################
  744. # interface example #
  745. #####################
  746. interface_complex_SOURCES = \
  747. interface/complex.c \
  748. interface/complex_interface.c
  749. if STARPU_USE_CUDA
  750. interface_complex_SOURCES += \
  751. interface/complex_kernels.cu
  752. endif
  753. if STARPU_USE_OPENCL
  754. interface_complex_SOURCES +=\
  755. interface/complex_kernels_opencl.c
  756. nobase_STARPU_OPENCL_DATA_DATA += \
  757. interface/complex_kernels.cl
  758. endif
  759. ######################
  760. # matVecMult example #
  761. ######################
  762. if STARPU_USE_OPENCL
  763. nobase_STARPU_OPENCL_DATA_DATA += \
  764. matvecmult/matvecmult_kernel.cl
  765. endif
  766. #######################
  767. # dot_product example #
  768. #######################
  769. reductions_dot_product_SOURCES = \
  770. reductions/dot_product.c
  771. if STARPU_USE_CUDA
  772. reductions_dot_product_SOURCES += \
  773. reductions/dot_product_kernels.cu
  774. endif
  775. if STARPU_USE_OPENCL
  776. nobase_STARPU_OPENCL_DATA_DATA += \
  777. reductions/dot_product_opencl_kernels.cl
  778. endif
  779. ##################
  780. # Mandelbrot Set #
  781. ##################
  782. examplebin_PROGRAMS += \
  783. mandelbrot/mandelbrot
  784. mandelbrot_mandelbrot_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
  785. if HAVE_X11
  786. mandelbrot_mandelbrot_CPPFLAGS += $(X_CFLAGS)
  787. mandelbrot_mandelbrot_LDADD = $(X_PRE_LIBS) $(X_LIBS) -lX11 $(X_EXTRA_LIBS)
  788. endif
  789. ####################
  790. # Image downscaler #
  791. ####################
  792. examplebin_PROGRAMS += \
  793. ppm_downscaler/ppm_downscaler \
  794. ppm_downscaler/yuv_downscaler
  795. ################
  796. # Top Examples #
  797. ################
  798. examplebin_PROGRAMS += \
  799. top/hello_world_top
  800. top_hello_world_top_SOURCES = \
  801. top/hello_world_top.c
  802. ######
  803. # Pi #
  804. ######
  805. if !STARPU_HAVE_WINDOWS
  806. examplebin_PROGRAMS += \
  807. pi/pi \
  808. pi/pi_redux
  809. pi_pi_SOURCES = \
  810. pi/pi.c \
  811. pi/SobolQRNG/sobol_gold.c \
  812. pi/SobolQRNG/sobol_primitives.c
  813. if STARPU_USE_CUDA
  814. pi_pi_SOURCES += \
  815. pi/pi_kernel.cu \
  816. pi/SobolQRNG/sobol_gpu.cu
  817. endif
  818. pi_pi_redux_SOURCES = \
  819. pi/pi_redux.c
  820. if STARPU_USE_CUDA
  821. pi_pi_redux_SOURCES += \
  822. pi/pi_redux_kernel.cu
  823. pi_pi_redux_LDADD = \
  824. $(STARPU_CURAND_LDFLAGS)
  825. endif
  826. endif
  827. ###########################
  828. # OpenGL interoperability #
  829. ###########################
  830. if HAVE_OPENGL
  831. examplebin_PROGRAMS += \
  832. gl_interop/gl_interop \
  833. gl_interop/gl_interop_idle
  834. gl_interop_gl_interop_SOURCES = \
  835. gl_interop/gl_interop.c
  836. gl_interop_gl_interop_LDADD = \
  837. $(STARPU_OPENGL_RENDER_LDFLAGS)
  838. gl_interop_gl_interop_idle_SOURCES = \
  839. gl_interop/gl_interop_idle.c
  840. gl_interop_gl_interop_idle_LDADD = \
  841. $(STARPU_OPENGL_RENDER_LDFLAGS)
  842. endif
  843. ####################
  844. # pipeline example #
  845. ####################
  846. if !NO_BLAS_LIB
  847. pipeline_pipeline_SOURCES = \
  848. pipeline/pipeline.c \
  849. common/blas.c
  850. pipeline_pipeline_LDADD = \
  851. $(STARPU_BLAS_LDFLAGS)
  852. endif
  853. ##################
  854. # openmp example #
  855. ##################
  856. if STARPU_HAVE_OPENMP
  857. openmp_vector_scal_omp_CFLAGS = \
  858. $(AM_CFLAGS) -fopenmp
  859. sched_ctx_parallel_code_CFLAGS = \
  860. $(AM_CFLAGS) -fopenmp
  861. sched_ctx_sched_ctx_without_sched_policy_CFLAGS = \
  862. $(AM_CFLAGS) -fopenmp
  863. sched_ctx_nested_sched_ctxs_CFLAGS = \
  864. $(AM_CFLAGS) -fopenmp
  865. sched_ctx_parallel_tasks_reuse_handle_CFLAGS = \
  866. $(AM_CFLAGS) -fopenmp
  867. endif
  868. if STARPU_HAVE_FC
  869. # Fortran90 example
  870. # - list explicit dependences to control proper module files generation
  871. # - the overriding rule fully disables the corresponing default rule, thus
  872. # the default rule body must be copied entirely
  873. mod_types.mod: mod_types.o
  874. mod_compute.mod: mod_compute.o
  875. mod_interface.mod: mod_interface.o
  876. starpu_mod.mod: starpu_mod.o
  877. starpu_mod.o: $(top_srcdir)/include/starpu_mod.f90
  878. $(AM_V_FC)$(FC) $(fortran90_f90_example_FCFLAGS) $(FCFLAGS) -c -o $@ '$(top_srcdir)/'include/starpu_mod.f90
  879. mod_compute.o: $(top_srcdir)/examples/fortran90/mod_compute.f90 mod_types.mod mod_interface.mod starpu_mod.mod
  880. $(AM_V_FC)$(FC) $(fortran90_f90_example_FCFLAGS) $(FCFLAGS) -c -o $@ `test -f 'fortran90/mod_compute.f90' || echo '$(srcdir)/'`fortran90/mod_compute.f90
  881. f90_example.o: $(top_srcdir)/examples/fortran90/f90_example.f90 $(top_srcdir)/examples/fortran90/marshalling.c mod_types.mod mod_interface.mod mod_compute.mod starpu_mod.mod
  882. $(AM_V_FC)$(FC) $(fortran90_f90_example_FCFLAGS) $(FCFLAGS) -c -o $@ `test -f 'fortran90/f90_example.f90' || echo '$(srcdir)/'`fortran90/f90_example.f90
  883. # Native Fortran example
  884. # - list explicit dependences to control proper module files generation
  885. # - the overriding rule fully disables the corresponing default rule, thus
  886. # the default rule body must be copied entirely
  887. nf_types.mod: nf_types.o
  888. nf_compute.mod: nf_compute.o
  889. fstarpu_mod.mod: fstarpu_mod.o
  890. nf_codelets.mod: nf_codelets.o
  891. nf_dynbuf_cl.mod: nf_dynbuf_cl.o
  892. nf_varbuf_cl.mod: nf_varbuf_cl.o
  893. nf_sched_ctx_cl.mod: nf_sched_ctx_cl.o
  894. nf_partition_cl.mod: nf_partition_cl.o
  895. fstarpu_mod.o: $(top_srcdir)/include/fstarpu_mod.f90
  896. $(AM_V_FC)$(FC) $(native_fortran_nf_vector_FCFLAGS) $(FCFLAGS) -c -o $@ '$(top_srcdir)/'include/fstarpu_mod.f90
  897. nf_codelets.o: $(top_srcdir)/examples/native_fortran/nf_codelets.f90 fstarpu_mod.mod
  898. $(AM_V_FC)$(FC) $(native_fortran_nf_vector_FCFLAGS) $(FCFLAGS) -c -o $@ `test -f 'native_fortran/nf_codelets.f90' || echo '$(srcdir)/'`native_fortran/nf_codelets.f90
  899. nf_vector.o: $(top_srcdir)/examples/native_fortran/nf_vector.f90 nf_codelets.mod fstarpu_mod.mod
  900. $(AM_V_FC)$(FC) $(native_fortran_nf_vector_FCFLAGS) $(FCFLAGS) -c -o $@ `test -f 'native_fortran/nf_vector.f90' || echo '$(srcdir)/'`native_fortran/nf_vector.f90
  901. nf_matrix.o: $(top_srcdir)/examples/native_fortran/nf_matrix.f90 nf_codelets.mod fstarpu_mod.mod
  902. $(AM_V_FC)$(FC) $(native_fortran_nf_matrix_FCFLAGS) $(FCFLAGS) -c -o $@ `test -f 'native_fortran/nf_matrix.f90' || echo '$(srcdir)/'`native_fortran/nf_matrix.f90
  903. nf_compute.o: $(top_srcdir)/examples/native_fortran/nf_compute.f90 nf_types.mod fstarpu_mod.mod
  904. $(AM_V_FC)$(FC) $(native_fortran_nf_example_FCFLAGS) $(FCFLAGS) -c -o $@ `test -f 'native_fortran/nf_compute.f90' || echo '$(srcdir)/'`native_fortran/nf_compute.f90
  905. nf_example.o: $(top_srcdir)/examples/native_fortran/nf_example.f90 nf_types.mod nf_compute.mod fstarpu_mod.mod
  906. $(AM_V_FC)$(FC) $(native_fortran_nf_example_FCFLAGS) $(FCFLAGS) -c -o $@ `test -f 'native_fortran/nf_example.f90' || echo '$(srcdir)/'`native_fortran/nf_example.f90
  907. nf_dynbuf_cl.o: $(top_srcdir)/examples/native_fortran/nf_dynbuf_cl.f90 nf_types.mod fstarpu_mod.mod
  908. $(AM_V_FC)$(FC) $(native_fortran_nf_dynbuf_FCFLAGS) $(FCFLAGS) -c -o $@ `test -f 'native_fortran/nf_dynbuf_cl.f90' || echo '$(srcdir)/'`native_fortran/nf_dynbuf_cl.f90
  909. nf_dynbuf.o: $(top_srcdir)/examples/native_fortran/nf_dynbuf.f90 nf_types.mod nf_dynbuf_cl.mod fstarpu_mod.mod
  910. $(AM_V_FC)$(FC) $(native_fortran_nf_dynbuf_FCFLAGS) $(FCFLAGS) -c -o $@ `test -f 'native_fortran/nf_dynbuf.f90' || echo '$(srcdir)/'`native_fortran/nf_dynbuf.f90
  911. nf_varbuf_cl.o: $(top_srcdir)/examples/native_fortran/nf_varbuf_cl.f90 nf_types.mod fstarpu_mod.mod
  912. $(AM_V_FC)$(FC) $(native_fortran_nf_varbuf_FCFLAGS) $(FCFLAGS) -c -o $@ `test -f 'native_fortran/nf_varbuf_cl.f90' || echo '$(srcdir)/'`native_fortran/nf_varbuf_cl.f90
  913. nf_varbuf.o: $(top_srcdir)/examples/native_fortran/nf_varbuf.f90 nf_types.mod nf_varbuf_cl.mod fstarpu_mod.mod
  914. $(AM_V_FC)$(FC) $(native_fortran_nf_varbuf_FCFLAGS) $(FCFLAGS) -c -o $@ `test -f 'native_fortran/nf_varbuf.f90' || echo '$(srcdir)/'`native_fortran/nf_varbuf.f90
  915. nf_sched_ctx_cl.o: $(top_srcdir)/examples/native_fortran/nf_sched_ctx_cl.f90 nf_types.mod fstarpu_mod.mod
  916. $(AM_V_FC)$(FC) $(native_fortran_nf_sched_ctx_FCFLAGS) $(FCFLAGS) -c -o $@ `test -f 'native_fortran/nf_sched_ctx_cl.f90' || echo '$(srcdir)/'`native_fortran/nf_sched_ctx_cl.f90
  917. nf_sched_ctx.o: $(top_srcdir)/examples/native_fortran/nf_sched_ctx.f90 nf_types.mod nf_sched_ctx_cl.mod fstarpu_mod.mod
  918. $(AM_V_FC)$(FC) $(native_fortran_nf_sched_ctx_FCFLAGS) $(FCFLAGS) -c -o $@ `test -f 'native_fortran/nf_sched_ctx.f90' || echo '$(srcdir)/'`native_fortran/nf_sched_ctx.f90
  919. nf_partition_cl.o: $(top_srcdir)/examples/native_fortran/nf_partition_cl.f90 nf_types.mod fstarpu_mod.mod
  920. $(AM_V_FC)$(FC) $(native_fortran_nf_partition_FCFLAGS) $(FCFLAGS) -c -o $@ `test -f 'native_fortran/nf_partition_cl.f90' || echo '$(srcdir)/'`native_fortran/nf_partition_cl.f90
  921. nf_partition.o: $(top_srcdir)/examples/native_fortran/nf_partition.f90 nf_types.mod nf_partition_cl.mod fstarpu_mod.mod
  922. $(AM_V_FC)$(FC) $(native_fortran_nf_partition_FCFLAGS) $(FCFLAGS) -c -o $@ `test -f 'native_fortran/nf_partition.f90' || echo '$(srcdir)/'`native_fortran/nf_partition.f90
  923. endif