Makefile.am 17 KB

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