Makefile.am 29 KB

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