Makefile.am 31 KB

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