Makefile.am 15 KB

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