Makefile.am 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009, 2010-2011 Université de Bordeaux 1
  4. # Copyright (C) 2010, 2011, 2012 Centre National de la Recherche Scientifique
  5. # Copyright (C) 2011 Télécom-SudParis
  6. # Copyright (C) 2012 INRIA
  7. #
  8. # StarPU is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU Lesser General Public License as published by
  10. # the Free Software Foundation; either version 2.1 of the License, or (at
  11. # your option) any later version.
  12. #
  13. # StarPU is distributed in the hope that it will be useful, but
  14. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  18. AM_CFLAGS = $(MAGMA_CFLAGS) $(HWLOC_CFLAGS) -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS)
  19. LIBS = $(top_builddir)/src/libstarpu-@STARPU_EFFECTIVE_VERSION@.la $(MAGMA_LIBS) $(HWLOC_LIBS) @LIBS@
  20. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/examples/ -I$(top_builddir)/include
  21. AM_LDFLAGS = $(STARPU_CUDA_LDFLAGS) $(STARPU_OPENCL_LDFLAGS)
  22. SUBDIRS = stencil
  23. BUILT_SOURCES =
  24. if STARPU_USE_OPENCL
  25. nobase_STARPU_OPENCL_DATA_DATA =
  26. endif
  27. EXTRA_DIST = \
  28. basic_examples/vector_scal_opencl_kernel.cl \
  29. basic_examples/multiformat_opencl_kernel.cl \
  30. basic_examples/multiformat_conversion_codelets_opencl_kernel.cl \
  31. common/blas_model.c \
  32. spmv/spmv_cuda.cu \
  33. spmv/spmv_opencl.cl \
  34. gordon/null_kernel_gordon.c \
  35. mult/xgemm.c \
  36. lu/xlu.c \
  37. lu/xlu_pivot.c \
  38. lu/xlu_implicit.c \
  39. lu/xlu_implicit_pivot.c \
  40. lu/xlu_kernels.c \
  41. lu/lu_example.c \
  42. incrementer/incrementer_kernels_opencl_kernel.cl \
  43. basic_examples/variable_kernels_opencl_kernel.cl \
  44. matvecmult/matvecmult_kernel.cl \
  45. basic_examples/block_opencl_kernel.cl \
  46. openmp/vector_scal.c \
  47. filters/fblock_opencl_kernel.cl \
  48. filters/multiformat/opencl.cl
  49. CLEANFILES = \
  50. gordon/null_kernel_gordon.spuelf
  51. CLEANFILES += *.gcno *.gcda *.linkinfo
  52. if STARPU_USE_CUDA
  53. NVCCFLAGS += --compiler-options -fno-strict-aliasing -I$(top_srcdir)/include/ -I$(top_builddir)/include/ -I$(top_srcdir)/examples/ $(HWLOC_CFLAGS) -arch sm_13
  54. .cu.o:
  55. $(NVCC) $< -c -o $@ $(NVCCFLAGS)
  56. endif
  57. if STARPU_USE_GORDON
  58. SPU_CC ?= spu-gcc
  59. SPU_LD ?= spu-ld
  60. SPULDFLAGS =
  61. SPULIBS = -lblas #-lc -lgloss -lc
  62. .c.spuo:
  63. $(MKDIR_P) `dirname $@`
  64. $(SPU_CC) -c -fpic $< -o $@
  65. .spuo.spuelf:
  66. $(MKDIR_P) `dirname $@`
  67. $(SPU_LD) $(SPULDFLAGS) $< -o $@ $(SPULIBS)
  68. BUILT_SOURCES += \
  69. gordon/null_kernel_gordon.spuelf
  70. endif
  71. if STARPU_HAVE_ICC
  72. .icc.o:
  73. $(ICC) -x c $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  74. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $< -c -o $@
  75. endif
  76. examplebindir = $(libdir)/starpu/examples/
  77. examplebin_PROGRAMS =
  78. noinst_HEADERS = \
  79. cg/cg.h \
  80. heat/lu_kernels_model.h \
  81. heat/dw_sparse_cg.h \
  82. heat/heat.h \
  83. heat/dw_factolu.h \
  84. lu/xlu.h \
  85. lu/xlu_kernels.h \
  86. lu/float.h \
  87. lu/double.h \
  88. lu/complex_float.h \
  89. lu/complex_double.h \
  90. lu/blas_complex.h \
  91. cholesky/cholesky.h \
  92. common/blas_model.h \
  93. common/blas.h \
  94. mult/simple.h \
  95. mult/double.h \
  96. gordon/null.h \
  97. fortran/bindings/StarPU_fortran.h \
  98. ppm_downscaler/ppm_downscaler.h \
  99. ppm_downscaler/yuv_downscaler.h \
  100. spmv/matrix_market/mmio.h \
  101. spmv/matrix_market/mm_to_bcsr.h \
  102. spmv/spmv.h \
  103. spmv/dw_block_spmv.h \
  104. basic_examples/multiformat_types.h \
  105. filters/multiformat/multiformat_types.h
  106. #####################################
  107. # What to install and what to check #
  108. #####################################
  109. STARPU_EXAMPLES =
  110. TESTS = $(STARPU_EXAMPLES)
  111. if STARPU_HAVE_WINDOWS
  112. check_PROGRAMS = $(STARPU_EXAMPLES)
  113. else
  114. check_PROGRAMS = $(LOADER) $(STARPU_EXAMPLES)
  115. endif
  116. if !STARPU_HAVE_WINDOWS
  117. ## test loader program
  118. LOADER = loader
  119. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  120. LOADER_BIN = $(abs_top_builddir)/examples/$(LOADER)
  121. loader_SOURCES = ../tests/loader.c
  122. TESTS_ENVIRONMENT = $(LOADER_BIN)
  123. endif
  124. examplebin_PROGRAMS += \
  125. basic_examples/hello_world \
  126. basic_examples/vector_scal \
  127. basic_examples/mult \
  128. basic_examples/block \
  129. basic_examples/variable \
  130. basic_examples/multiformat \
  131. filters/fvector \
  132. filters/fblock \
  133. filters/fmatrix \
  134. filters/multiformat/multiformat_filter \
  135. tag_example/tag_example \
  136. tag_example/tag_example3 \
  137. tag_example/tag_example2 \
  138. tag_example/tag_restartable \
  139. spmv/spmv \
  140. callback/callback \
  141. incrementer/incrementer \
  142. matvecmult/matvecmult \
  143. profiling/profiling \
  144. scheduler/dummy_sched \
  145. reductions/dot_product \
  146. reductions/minmax_reduction \
  147. mandelbrot/mandelbrot \
  148. ppm_downscaler/ppm_downscaler \
  149. ppm_downscaler/yuv_downscaler
  150. if STARPU_HAVE_F77_H
  151. examplebin_PROGRAMS += \
  152. basic_examples/vector_scal_fortran
  153. endif
  154. if !NO_BLAS_LIB
  155. examplebin_PROGRAMS += \
  156. axpy/axpy \
  157. mult/sgemm \
  158. mult/dgemm \
  159. cholesky/cholesky_tag \
  160. cholesky/cholesky_tile_tag \
  161. cholesky/cholesky_grain_tag \
  162. cholesky/cholesky_implicit \
  163. lu/lu_example_float \
  164. lu/lu_example_double \
  165. lu/lu_implicit_example_float \
  166. lu/lu_implicit_example_double \
  167. heat/heat \
  168. cg/cg
  169. endif
  170. if MKL_BLAS_LIB
  171. examplebin_PROGRAMS += \
  172. lu/lu_example_complex_float \
  173. lu/lu_example_complex_double \
  174. lu/lu_implicit_example_complex_float \
  175. lu/lu_implicit_example_complex_double
  176. endif
  177. if ATLAS_BLAS_LIB
  178. examplebin_PROGRAMS += \
  179. spmv/dw_block_spmv
  180. endif
  181. STARPU_EXAMPLES += \
  182. basic_examples/hello_world \
  183. basic_examples/vector_scal \
  184. basic_examples/mult \
  185. basic_examples/block \
  186. basic_examples/variable \
  187. basic_examples/multiformat \
  188. filters/fvector \
  189. filters/fblock \
  190. filters/fmatrix \
  191. tag_example/tag_example \
  192. tag_example/tag_example3 \
  193. tag_example/tag_example2 \
  194. tag_example/tag_restartable \
  195. spmv/spmv \
  196. callback/callback \
  197. incrementer/incrementer \
  198. matvecmult/matvecmult \
  199. profiling/profiling \
  200. scheduler/dummy_sched \
  201. reductions/dot_product \
  202. reductions/minmax_reduction
  203. if STARPU_HAVE_F77_H
  204. STARPU_EXAMPLES += \
  205. basic_examples/vector_scal_fortran
  206. endif
  207. if !NO_BLAS_LIB
  208. STARPU_EXAMPLES += \
  209. axpy/axpy \
  210. mult/sgemm \
  211. mult/dgemm \
  212. cholesky/cholesky_tag \
  213. cholesky/cholesky_tile_tag \
  214. cholesky/cholesky_grain_tag \
  215. cholesky/cholesky_implicit \
  216. lu/lu_example_float \
  217. lu/lu_example_double \
  218. lu/lu_implicit_example_float \
  219. lu/lu_implicit_example_double \
  220. heat/heat \
  221. cg/cg
  222. endif
  223. if MKL_BLAS_LIB
  224. STARPU_EXAMPLES += \
  225. lu/lu_example_complex_float \
  226. lu/lu_example_complex_double \
  227. lu/lu_implicit_example_complex_float \
  228. lu/lu_implicit_example_complex_double
  229. endif
  230. if ATLAS_BLAS_LIB
  231. STARPU_EXAMPLES += \
  232. spmv/dw_block_spmv
  233. endif
  234. ##################
  235. # Basic examples #
  236. ##################
  237. basic_examples_vector_scal_SOURCES = \
  238. basic_examples/vector_scal.c \
  239. basic_examples/vector_scal_cpu.c
  240. if STARPU_HAVE_ICC
  241. basic_examples_vector_scal_SOURCES += \
  242. basic_examples/vector_scal_cpu_icc.icc
  243. basic_examples/vector_scal_cpu_icc.o: CFLAGS += -Dscal_cpu_func=scal_cpu_func_icc -Dscal_sse_func=scal_sse_func_icc
  244. endif
  245. if STARPU_USE_CUDA
  246. basic_examples_vector_scal_SOURCES += \
  247. basic_examples/vector_scal_cuda.cu
  248. endif
  249. if STARPU_USE_OPENCL
  250. basic_examples_vector_scal_SOURCES += \
  251. basic_examples/vector_scal_opencl.c
  252. nobase_STARPU_OPENCL_DATA_DATA += \
  253. basic_examples/vector_scal_opencl_kernel.cl
  254. endif
  255. if STARPU_HAVE_F77_H
  256. basic_examples_vector_scal_fortran_SOURCES = \
  257. basic_examples/vector_scal_fortran.F \
  258. basic_examples/vector_scal_c.c \
  259. basic_examples/vector_scal_cpu.c
  260. if STARPU_USE_CUDA
  261. basic_examples_vector_scal_fortran_SOURCES += \
  262. basic_examples/vector_scal_cuda.cu
  263. basic_examples_vector_scal_fortran_LDADD = \
  264. $(STARPU_CUDA_FORTRAN_LDFLAGS)
  265. endif
  266. endif
  267. #######################
  268. # Multiformat example #
  269. #######################
  270. basic_examples_multiformat_SOURCES = \
  271. basic_examples/multiformat.c \
  272. basic_examples/multiformat_conversion_codelets.c
  273. if STARPU_USE_CUDA
  274. basic_examples_multiformat_SOURCES+= \
  275. basic_examples/multiformat_cuda.cu \
  276. basic_examples/multiformat_conversion_codelets_cuda.cu
  277. endif
  278. if STARPU_USE_OPENCL
  279. basic_examples_multiformat_SOURCES+= \
  280. basic_examples/multiformat_opencl.c \
  281. basic_examples/multiformat_conversion_codelets_opencl.c
  282. nobase_STARPU_OPENCL_DATA_DATA+= \
  283. basic_examples/multiformat_opencl_kernel.cl \
  284. basic_examples/multiformat_conversion_codelets_opencl_kernel.cl
  285. endif
  286. #################
  287. # block example #
  288. #################
  289. basic_examples_block_SOURCES = \
  290. basic_examples/block.c \
  291. basic_examples/block_cpu.c
  292. if STARPU_USE_CUDA
  293. basic_examples_block_SOURCES += \
  294. basic_examples/block_cuda.cu
  295. endif
  296. if STARPU_USE_OPENCL
  297. basic_examples_block_SOURCES += \
  298. basic_examples/block_opencl.c
  299. nobase_STARPU_OPENCL_DATA_DATA += \
  300. basic_examples/block_opencl_kernel.cl
  301. endif
  302. ####################
  303. # Variable example #
  304. ####################
  305. basic_examples_variable_SOURCES = \
  306. basic_examples/variable.c \
  307. basic_examples/variable_kernels_cpu.c
  308. if STARPU_USE_CUDA
  309. basic_examples_variable_SOURCES += \
  310. basic_examples/variable_kernels.cu
  311. endif
  312. if STARPU_USE_OPENCL
  313. basic_examples_variable_SOURCES += \
  314. basic_examples/variable_kernels_opencl.c
  315. nobase_STARPU_OPENCL_DATA_DATA += \
  316. basic_examples/variable_kernels_opencl_kernel.cl
  317. endif
  318. ###########
  319. # Filters #
  320. ###########
  321. filters_fblock_SOURCES = \
  322. filters/fblock.c \
  323. filters/fblock_cpu.c
  324. if STARPU_USE_CUDA
  325. filters_fblock_SOURCES += \
  326. filters/fblock_cuda.cu
  327. endif
  328. if STARPU_USE_OPENCL
  329. filters_fblock_SOURCES += \
  330. filters/fblock_opencl.c
  331. nobase_STARPU_OPENCL_DATA_DATA += \
  332. filters/fblock_opencl_kernel.cl
  333. endif
  334. #
  335. #
  336. #
  337. filters_multiformat_multiformat_filter_SOURCES= \
  338. filters/multiformat/multiformat_filter.c \
  339. filters/multiformat/multiformat_ops.c \
  340. filters/multiformat/conversion_codelets.c
  341. if STARPU_USE_CUDA
  342. filters_multiformat_multiformat_filter_SOURCES+= \
  343. filters/multiformat/cuda.cu
  344. endif
  345. if STARPU_USE_OPENCL
  346. filters_multiformat_multiformat_filter_SOURCES+=\
  347. filters/multiformat/opencl.c
  348. nobase_STARPU_OPENCL_DATA_DATA += \
  349. filters/multiformat/opencl.cl
  350. endif
  351. ################
  352. # AXPY example #
  353. ################
  354. if !NO_BLAS_LIB
  355. axpy_axpy_SOURCES = \
  356. axpy/axpy.c \
  357. common/blas.c
  358. axpy_axpy_LDADD = \
  359. $(STARPU_BLAS_LDFLAGS)
  360. endif
  361. ################
  362. # Mult example #
  363. ################
  364. if !NO_BLAS_LIB
  365. mult_sgemm_SOURCES = \
  366. mult/sgemm.c \
  367. common/blas.c
  368. mult_sgemm_LDADD = \
  369. $(STARPU_BLAS_LDFLAGS)
  370. mult_dgemm_SOURCES = \
  371. mult/dgemm.c \
  372. common/blas.c
  373. mult_dgemm_LDADD = \
  374. $(STARPU_BLAS_LDFLAGS)
  375. endif
  376. ####################
  377. # Cholesky example #
  378. ####################
  379. if !NO_BLAS_LIB
  380. cholesky_cholesky_tag_SOURCES = \
  381. cholesky/cholesky_tag.c \
  382. cholesky/cholesky_models.c \
  383. cholesky/cholesky_kernels.c \
  384. common/blas.c
  385. cholesky_cholesky_tag_LDADD = \
  386. $(STARPU_BLAS_LDFLAGS)
  387. cholesky_cholesky_tile_tag_SOURCES = \
  388. cholesky/cholesky_tile_tag.c \
  389. cholesky/cholesky_models.c \
  390. cholesky/cholesky_kernels.c \
  391. common/blas.c
  392. cholesky_cholesky_tile_tag_LDADD = \
  393. $(STARPU_BLAS_LDFLAGS)
  394. cholesky_cholesky_grain_tag_SOURCES = \
  395. cholesky/cholesky_grain_tag.c \
  396. cholesky/cholesky_models.c \
  397. cholesky/cholesky_kernels.c \
  398. common/blas.c
  399. cholesky_cholesky_grain_tag_LDADD = \
  400. $(STARPU_BLAS_LDFLAGS)
  401. cholesky_cholesky_implicit_SOURCES = \
  402. cholesky/cholesky_implicit.c \
  403. cholesky/cholesky_models.c \
  404. cholesky/cholesky_kernels.c \
  405. common/blas.c
  406. cholesky_cholesky_implicit_LDADD = \
  407. $(STARPU_BLAS_LDFLAGS)
  408. endif
  409. ##############
  410. # LU example #
  411. ##############
  412. if !NO_BLAS_LIB
  413. lu_lu_example_float_SOURCES = \
  414. lu/lu_example_float.c \
  415. lu/slu.c \
  416. lu/slu_pivot.c \
  417. lu/slu_kernels.c \
  418. common/blas.c
  419. lu_lu_example_float_LDADD = \
  420. $(STARPU_BLAS_LDFLAGS)
  421. lu_lu_example_double_SOURCES = \
  422. lu/lu_example_double.c \
  423. lu/dlu.c \
  424. lu/dlu_pivot.c \
  425. lu/dlu_kernels.c \
  426. common/blas.c
  427. lu_lu_example_double_LDADD = \
  428. $(STARPU_BLAS_LDFLAGS)
  429. lu_lu_implicit_example_float_SOURCES = \
  430. lu/lu_example_float.c \
  431. lu/slu_implicit.c \
  432. lu/slu_implicit_pivot.c \
  433. lu/slu_kernels.c \
  434. common/blas.c
  435. lu_lu_implicit_example_float_LDADD = \
  436. $(STARPU_BLAS_LDFLAGS)
  437. lu_lu_implicit_example_double_SOURCES = \
  438. lu/lu_example_double.c \
  439. lu/dlu_implicit.c \
  440. lu/dlu_implicit_pivot.c \
  441. lu/dlu_kernels.c \
  442. common/blas.c
  443. lu_lu_implicit_example_double_LDADD = \
  444. $(STARPU_BLAS_LDFLAGS)
  445. if MKL_BLAS_LIB
  446. lu_lu_example_complex_float_SOURCES = \
  447. lu/lu_example_complex_float.c \
  448. lu/clu.c \
  449. lu/clu_pivot.c \
  450. lu/clu_kernels.c \
  451. lu/blas_complex.c \
  452. common/blas.c
  453. lu_lu_example_complex_float_LDADD = \
  454. $(STARPU_BLAS_LDFLAGS)
  455. lu_lu_implicit_example_complex_float_SOURCES = \
  456. lu/lu_example_complex_float.c \
  457. lu/clu_implicit.c \
  458. lu/clu_implicit_pivot.c \
  459. lu/clu_kernels.c \
  460. lu/blas_complex.c \
  461. common/blas.c
  462. lu_lu_implicit_example_complex_float_LDADD = \
  463. $(STARPU_BLAS_LDFLAGS)
  464. lu_lu_example_complex_double_SOURCES = \
  465. lu/lu_example_complex_double.c \
  466. lu/zlu.c \
  467. lu/zlu_pivot.c \
  468. lu/zlu_kernels.c \
  469. lu/blas_complex.c \
  470. common/blas.c
  471. lu_lu_example_complex_double_LDADD = \
  472. $(STARPU_BLAS_LDFLAGS)
  473. lu_lu_implicit_example_complex_double_SOURCES = \
  474. lu/lu_example_complex_double.c \
  475. lu/zlu_implicit.c \
  476. lu/zlu_implicit_pivot.c \
  477. lu/zlu_kernels.c \
  478. lu/blas_complex.c \
  479. common/blas.c
  480. lu_lu_implicit_example_complex_double_LDADD = \
  481. $(STARPU_BLAS_LDFLAGS)
  482. endif
  483. endif
  484. ################
  485. # Heat example #
  486. ################
  487. if !NO_BLAS_LIB
  488. heat_heat_SOURCES = \
  489. heat/heat.c \
  490. heat/dw_factolu.c \
  491. heat/dw_factolu_tag.c \
  492. heat/dw_factolu_grain.c \
  493. heat/dw_sparse_cg.c \
  494. heat/heat_display.c \
  495. heat/lu_kernels_model.c \
  496. heat/dw_sparse_cg_kernels.c \
  497. heat/dw_factolu_kernels.c \
  498. common/blas.c
  499. heat_heat_LDADD = \
  500. $(STARPU_OPENGL_RENDER_LDFLAGS) \
  501. $(STARPU_BLAS_LDFLAGS)
  502. endif
  503. ##############
  504. # CG example #
  505. ##############
  506. if !NO_BLAS_LIB
  507. cg_cg_SOURCES = \
  508. cg/cg.c \
  509. cg/cg_kernels.c \
  510. common/blas.c
  511. if STARPU_USE_CUDA
  512. cg_cg_SOURCES += \
  513. cg/cg_dot_kernel.cu
  514. endif
  515. cg_cg_LDADD = \
  516. $(STARPU_BLAS_LDFLAGS)
  517. endif
  518. ################
  519. # SpMV example #
  520. ################
  521. spmv_spmv_SOURCES = \
  522. spmv/spmv.c \
  523. spmv/spmv_kernels.c
  524. if STARPU_USE_CUDA
  525. spmv_spmv_SOURCES += \
  526. spmv/spmv_cuda.cu
  527. endif
  528. if ATLAS_BLAS_LIB
  529. spmv_dw_block_spmv_SOURCES = \
  530. spmv/dw_block_spmv.c \
  531. spmv/dw_block_spmv_kernels.c \
  532. spmv/matrix_market/mm_to_bcsr.c \
  533. spmv/matrix_market/mmio.c
  534. spmv_dw_block_spmv_LDADD = \
  535. $(STARPU_BLAS_LDFLAGS)
  536. endif
  537. #######################
  538. # Incrementer example #
  539. #######################
  540. incrementer_incrementer_SOURCES = \
  541. incrementer/incrementer.c
  542. if STARPU_USE_CUDA
  543. incrementer_incrementer_SOURCES += \
  544. incrementer/incrementer_kernels.cu
  545. endif
  546. if STARPU_USE_OPENCL
  547. incrementer_incrementer_SOURCES += \
  548. incrementer/incrementer_kernels_opencl.c
  549. nobase_STARPU_OPENCL_DATA_DATA += \
  550. incrementer/incrementer_kernels_opencl_kernel.cl
  551. endif
  552. ######################
  553. # matVecMult example #
  554. ######################
  555. if STARPU_USE_OPENCL
  556. nobase_STARPU_OPENCL_DATA_DATA += \
  557. matvecmult/matvecmult_kernel.cl
  558. endif
  559. #######################
  560. # dot_product example #
  561. #######################
  562. reductions_dot_product_SOURCES = \
  563. reductions/dot_product.c
  564. if STARPU_USE_CUDA
  565. reductions_dot_product_SOURCES += \
  566. reductions/dot_product_kernels.cu
  567. endif
  568. ##################
  569. # Mandelbrot Set #
  570. ##################
  571. mandelbrot_mandelbrot_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
  572. if HAVE_X11
  573. mandelbrot_mandelbrot_CPPFLAGS += $(X_CFLAGS)
  574. mandelbrot_mandelbrot_LDADD = $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
  575. endif
  576. ################
  577. # Top Examples #
  578. ################
  579. examplebin_PROGRAMS += \
  580. top/hello_world_top
  581. top_hello_world_top_SOURCES = \
  582. top/hello_world_top.c