Makefile.am 16 KB

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