Makefile.am 17 KB

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