Makefile.am 16 KB

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