Makefile.am 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699
  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_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/fvector \
  136. filters/fblock \
  137. filters/fmatrix \
  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. # AXPY example #
  339. ################
  340. if !NO_BLAS_LIB
  341. axpy_axpy_SOURCES = \
  342. axpy/axpy.c \
  343. common/blas.c
  344. axpy_axpy_LDADD = \
  345. $(STARPU_BLAS_LDFLAGS)
  346. endif
  347. ################
  348. # Mult example #
  349. ################
  350. if !NO_BLAS_LIB
  351. mult_sgemm_SOURCES = \
  352. mult/sgemm.c \
  353. common/blas.c
  354. mult_sgemm_LDADD = \
  355. $(STARPU_BLAS_LDFLAGS)
  356. mult_dgemm_SOURCES = \
  357. mult/dgemm.c \
  358. common/blas.c
  359. mult_dgemm_LDADD = \
  360. $(STARPU_BLAS_LDFLAGS)
  361. endif
  362. ####################
  363. # Cholesky example #
  364. ####################
  365. if !NO_BLAS_LIB
  366. cholesky_cholesky_tag_SOURCES = \
  367. cholesky/cholesky_tag.c \
  368. cholesky/cholesky_models.c \
  369. cholesky/cholesky_kernels.c \
  370. common/blas.c
  371. cholesky_cholesky_tag_LDADD = \
  372. $(STARPU_BLAS_LDFLAGS)
  373. cholesky_cholesky_tile_tag_SOURCES = \
  374. cholesky/cholesky_tile_tag.c \
  375. cholesky/cholesky_models.c \
  376. cholesky/cholesky_kernels.c \
  377. common/blas.c
  378. cholesky_cholesky_tile_tag_LDADD = \
  379. $(STARPU_BLAS_LDFLAGS)
  380. cholesky_cholesky_grain_tag_SOURCES = \
  381. cholesky/cholesky_grain_tag.c \
  382. cholesky/cholesky_models.c \
  383. cholesky/cholesky_kernels.c \
  384. common/blas.c
  385. cholesky_cholesky_grain_tag_LDADD = \
  386. $(STARPU_BLAS_LDFLAGS)
  387. cholesky_cholesky_implicit_SOURCES = \
  388. cholesky/cholesky_implicit.c \
  389. cholesky/cholesky_models.c \
  390. cholesky/cholesky_kernels.c \
  391. common/blas.c
  392. cholesky_cholesky_implicit_LDADD = \
  393. $(STARPU_BLAS_LDFLAGS)
  394. endif
  395. ##############
  396. # LU example #
  397. ##############
  398. if !NO_BLAS_LIB
  399. lu_lu_example_float_SOURCES = \
  400. lu/lu_example_float.c \
  401. lu/slu.c \
  402. lu/slu_pivot.c \
  403. lu/slu_kernels.c \
  404. common/blas.c
  405. lu_lu_example_float_LDADD = \
  406. $(STARPU_BLAS_LDFLAGS)
  407. lu_lu_example_double_SOURCES = \
  408. lu/lu_example_double.c \
  409. lu/dlu.c \
  410. lu/dlu_pivot.c \
  411. lu/dlu_kernels.c \
  412. common/blas.c
  413. lu_lu_example_double_LDADD = \
  414. $(STARPU_BLAS_LDFLAGS)
  415. lu_lu_implicit_example_float_SOURCES = \
  416. lu/lu_example_float.c \
  417. lu/slu_implicit.c \
  418. lu/slu_implicit_pivot.c \
  419. lu/slu_kernels.c \
  420. common/blas.c
  421. lu_lu_implicit_example_float_LDADD = \
  422. $(STARPU_BLAS_LDFLAGS)
  423. lu_lu_implicit_example_double_SOURCES = \
  424. lu/lu_example_double.c \
  425. lu/dlu_implicit.c \
  426. lu/dlu_implicit_pivot.c \
  427. lu/dlu_kernels.c \
  428. common/blas.c
  429. lu_lu_implicit_example_double_LDADD = \
  430. $(STARPU_BLAS_LDFLAGS)
  431. if MKL_BLAS_LIB
  432. lu_lu_example_complex_float_SOURCES = \
  433. lu/lu_example_complex_float.c \
  434. lu/clu.c \
  435. lu/clu_pivot.c \
  436. lu/clu_kernels.c \
  437. lu/blas_complex.c \
  438. common/blas.c
  439. lu_lu_example_complex_float_LDADD = \
  440. $(STARPU_BLAS_LDFLAGS)
  441. lu_lu_implicit_example_complex_float_SOURCES = \
  442. lu/lu_example_complex_float.c \
  443. lu/clu_implicit.c \
  444. lu/clu_implicit_pivot.c \
  445. lu/clu_kernels.c \
  446. lu/blas_complex.c \
  447. common/blas.c
  448. lu_lu_implicit_example_complex_float_LDADD = \
  449. $(STARPU_BLAS_LDFLAGS)
  450. lu_lu_example_complex_double_SOURCES = \
  451. lu/lu_example_complex_double.c \
  452. lu/zlu.c \
  453. lu/zlu_pivot.c \
  454. lu/zlu_kernels.c \
  455. lu/blas_complex.c \
  456. common/blas.c
  457. lu_lu_example_complex_double_LDADD = \
  458. $(STARPU_BLAS_LDFLAGS)
  459. lu_lu_implicit_example_complex_double_SOURCES = \
  460. lu/lu_example_complex_double.c \
  461. lu/zlu_implicit.c \
  462. lu/zlu_implicit_pivot.c \
  463. lu/zlu_kernels.c \
  464. lu/blas_complex.c \
  465. common/blas.c
  466. lu_lu_implicit_example_complex_double_LDADD = \
  467. $(STARPU_BLAS_LDFLAGS)
  468. endif
  469. endif
  470. ################
  471. # Heat example #
  472. ################
  473. if !NO_BLAS_LIB
  474. heat_heat_SOURCES = \
  475. heat/heat.c \
  476. heat/dw_factolu.c \
  477. heat/dw_factolu_tag.c \
  478. heat/dw_factolu_grain.c \
  479. heat/dw_sparse_cg.c \
  480. heat/heat_display.c \
  481. heat/lu_kernels_model.c \
  482. heat/dw_sparse_cg_kernels.c \
  483. heat/dw_factolu_kernels.c \
  484. common/blas.c
  485. heat_heat_LDADD = \
  486. $(STARPU_OPENGL_RENDER_LDFLAGS) \
  487. $(STARPU_BLAS_LDFLAGS)
  488. endif
  489. ##############
  490. # CG example #
  491. ##############
  492. if !NO_BLAS_LIB
  493. cg_cg_SOURCES = \
  494. cg/cg.c \
  495. cg/cg_kernels.c \
  496. common/blas.c
  497. if STARPU_USE_CUDA
  498. cg_cg_SOURCES += \
  499. cg/cg_dot_kernel.cu
  500. endif
  501. cg_cg_LDADD = \
  502. $(STARPU_BLAS_LDFLAGS)
  503. endif
  504. ################
  505. # SpMV example #
  506. ################
  507. spmv_spmv_SOURCES = \
  508. spmv/spmv.c \
  509. spmv/spmv_kernels.c
  510. if STARPU_USE_CUDA
  511. spmv_spmv_SOURCES += \
  512. spmv/spmv_cuda.cu
  513. endif
  514. if ATLAS_BLAS_LIB
  515. spmv_dw_block_spmv_SOURCES = \
  516. spmv/dw_block_spmv.c \
  517. spmv/dw_block_spmv_kernels.c \
  518. spmv/matrix_market/mm_to_bcsr.c \
  519. spmv/matrix_market/mmio.c
  520. spmv_dw_block_spmv_LDADD = \
  521. $(STARPU_BLAS_LDFLAGS)
  522. endif
  523. #######################
  524. # Incrementer example #
  525. #######################
  526. incrementer_incrementer_SOURCES = \
  527. incrementer/incrementer.c
  528. if STARPU_USE_CUDA
  529. incrementer_incrementer_SOURCES += \
  530. incrementer/incrementer_kernels.cu
  531. endif
  532. if STARPU_USE_OPENCL
  533. incrementer_incrementer_SOURCES += \
  534. incrementer/incrementer_kernels_opencl.c
  535. nobase_STARPU_OPENCL_DATA_DATA += \
  536. incrementer/incrementer_kernels_opencl_kernel.cl
  537. endif
  538. ######################
  539. # matVecMult example #
  540. ######################
  541. if STARPU_USE_OPENCL
  542. nobase_STARPU_OPENCL_DATA_DATA += \
  543. matvecmult/matvecmult_kernel.cl
  544. endif
  545. #######################
  546. # dot_product example #
  547. #######################
  548. reductions_dot_product_SOURCES = \
  549. reductions/dot_product.c
  550. if STARPU_USE_CUDA
  551. reductions_dot_product_SOURCES += \
  552. reductions/dot_product_kernels.cu
  553. endif
  554. ##################
  555. # Mandelbrot Set #
  556. ##################
  557. mandelbrot_mandelbrot_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
  558. if HAVE_X11
  559. mandelbrot_mandelbrot_CPPFLAGS += $(X_CFLAGS)
  560. mandelbrot_mandelbrot_LDADD = $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
  561. endif
  562. ################
  563. # Top Examples #
  564. ################
  565. examplebin_PROGRAMS += \
  566. top/hello_world_top
  567. top_hello_world_top_SOURCES = \
  568. top/hello_world_top.c