Makefile.am 30 KB

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