Makefile.am 17 KB

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