Makefile.am 16 KB

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