Makefile.am 29 KB

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