Makefile.am 16 KB

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