Makefile.am 31 KB

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