Makefile.am 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734
  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. 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. #####################################
  110. # What to install and what to check #
  111. #####################################
  112. STARPU_EXAMPLES =
  113. TESTS = $(STARPU_EXAMPLES)
  114. if STARPU_HAVE_WINDOWS
  115. check_PROGRAMS = $(STARPU_EXAMPLES)
  116. else
  117. check_PROGRAMS = $(LOADER) $(STARPU_EXAMPLES)
  118. endif
  119. if !STARPU_HAVE_WINDOWS
  120. ## test loader program
  121. LOADER = loader
  122. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  123. LOADER_BIN = $(abs_top_builddir)/examples/$(LOADER)
  124. loader_SOURCES = ../tests/loader.c
  125. TESTS_ENVIRONMENT = $(LOADER_BIN)
  126. endif
  127. examplebin_PROGRAMS += \
  128. basic_examples/hello_world \
  129. basic_examples/vector_scal \
  130. basic_examples/mult \
  131. basic_examples/block \
  132. basic_examples/variable \
  133. basic_examples/multiformat \
  134. cpp/incrementer_cpp \
  135. filters/custom_mf/custom_mf_filter \
  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. cpp/incrementer_cpp \
  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. ################
  360. # AXPY example #
  361. ################
  362. if !NO_BLAS_LIB
  363. axpy_axpy_SOURCES = \
  364. axpy/axpy.c \
  365. common/blas.c
  366. axpy_axpy_LDADD = \
  367. $(STARPU_BLAS_LDFLAGS)
  368. endif
  369. ################
  370. # Mult example #
  371. ################
  372. if !NO_BLAS_LIB
  373. mult_sgemm_SOURCES = \
  374. mult/sgemm.c \
  375. common/blas.c
  376. mult_sgemm_LDADD = \
  377. $(STARPU_BLAS_LDFLAGS)
  378. mult_dgemm_SOURCES = \
  379. mult/dgemm.c \
  380. common/blas.c
  381. mult_dgemm_LDADD = \
  382. $(STARPU_BLAS_LDFLAGS)
  383. endif
  384. ####################
  385. # Cholesky example #
  386. ####################
  387. if !NO_BLAS_LIB
  388. cholesky_cholesky_tag_SOURCES = \
  389. cholesky/cholesky_tag.c \
  390. cholesky/cholesky_models.c \
  391. cholesky/cholesky_kernels.c \
  392. common/blas.c
  393. cholesky_cholesky_tag_LDADD = \
  394. $(STARPU_BLAS_LDFLAGS)
  395. cholesky_cholesky_tile_tag_SOURCES = \
  396. cholesky/cholesky_tile_tag.c \
  397. cholesky/cholesky_models.c \
  398. cholesky/cholesky_kernels.c \
  399. common/blas.c
  400. cholesky_cholesky_tile_tag_LDADD = \
  401. $(STARPU_BLAS_LDFLAGS)
  402. cholesky_cholesky_grain_tag_SOURCES = \
  403. cholesky/cholesky_grain_tag.c \
  404. cholesky/cholesky_models.c \
  405. cholesky/cholesky_kernels.c \
  406. common/blas.c
  407. cholesky_cholesky_grain_tag_LDADD = \
  408. $(STARPU_BLAS_LDFLAGS)
  409. cholesky_cholesky_implicit_SOURCES = \
  410. cholesky/cholesky_implicit.c \
  411. cholesky/cholesky_models.c \
  412. cholesky/cholesky_kernels.c \
  413. common/blas.c
  414. cholesky_cholesky_implicit_LDADD = \
  415. $(STARPU_BLAS_LDFLAGS)
  416. endif
  417. ##############
  418. # LU example #
  419. ##############
  420. if !NO_BLAS_LIB
  421. lu_lu_example_float_SOURCES = \
  422. lu/lu_example_float.c \
  423. lu/slu.c \
  424. lu/slu_pivot.c \
  425. lu/slu_kernels.c \
  426. common/blas.c
  427. lu_lu_example_float_LDADD = \
  428. $(STARPU_BLAS_LDFLAGS)
  429. lu_lu_example_double_SOURCES = \
  430. lu/lu_example_double.c \
  431. lu/dlu.c \
  432. lu/dlu_pivot.c \
  433. lu/dlu_kernels.c \
  434. common/blas.c
  435. lu_lu_example_double_LDADD = \
  436. $(STARPU_BLAS_LDFLAGS)
  437. lu_lu_implicit_example_float_SOURCES = \
  438. lu/lu_example_float.c \
  439. lu/slu_implicit.c \
  440. lu/slu_implicit_pivot.c \
  441. lu/slu_kernels.c \
  442. common/blas.c
  443. lu_lu_implicit_example_float_LDADD = \
  444. $(STARPU_BLAS_LDFLAGS)
  445. lu_lu_implicit_example_double_SOURCES = \
  446. lu/lu_example_double.c \
  447. lu/dlu_implicit.c \
  448. lu/dlu_implicit_pivot.c \
  449. lu/dlu_kernels.c \
  450. common/blas.c
  451. lu_lu_implicit_example_double_LDADD = \
  452. $(STARPU_BLAS_LDFLAGS)
  453. if MKL_BLAS_LIB
  454. lu_lu_example_complex_float_SOURCES = \
  455. lu/lu_example_complex_float.c \
  456. lu/clu.c \
  457. lu/clu_pivot.c \
  458. lu/clu_kernels.c \
  459. lu/blas_complex.c \
  460. common/blas.c
  461. lu_lu_example_complex_float_LDADD = \
  462. $(STARPU_BLAS_LDFLAGS)
  463. lu_lu_implicit_example_complex_float_SOURCES = \
  464. lu/lu_example_complex_float.c \
  465. lu/clu_implicit.c \
  466. lu/clu_implicit_pivot.c \
  467. lu/clu_kernels.c \
  468. lu/blas_complex.c \
  469. common/blas.c
  470. lu_lu_implicit_example_complex_float_LDADD = \
  471. $(STARPU_BLAS_LDFLAGS)
  472. lu_lu_example_complex_double_SOURCES = \
  473. lu/lu_example_complex_double.c \
  474. lu/zlu.c \
  475. lu/zlu_pivot.c \
  476. lu/zlu_kernels.c \
  477. lu/blas_complex.c \
  478. common/blas.c
  479. lu_lu_example_complex_double_LDADD = \
  480. $(STARPU_BLAS_LDFLAGS)
  481. lu_lu_implicit_example_complex_double_SOURCES = \
  482. lu/lu_example_complex_double.c \
  483. lu/zlu_implicit.c \
  484. lu/zlu_implicit_pivot.c \
  485. lu/zlu_kernels.c \
  486. lu/blas_complex.c \
  487. common/blas.c
  488. lu_lu_implicit_example_complex_double_LDADD = \
  489. $(STARPU_BLAS_LDFLAGS)
  490. endif
  491. endif
  492. ################
  493. # Heat example #
  494. ################
  495. if !NO_BLAS_LIB
  496. heat_heat_SOURCES = \
  497. heat/heat.c \
  498. heat/dw_factolu.c \
  499. heat/dw_factolu_tag.c \
  500. heat/dw_factolu_grain.c \
  501. heat/dw_sparse_cg.c \
  502. heat/heat_display.c \
  503. heat/lu_kernels_model.c \
  504. heat/dw_sparse_cg_kernels.c \
  505. heat/dw_factolu_kernels.c \
  506. common/blas.c
  507. heat_heat_LDADD = \
  508. $(STARPU_OPENGL_RENDER_LDFLAGS) \
  509. $(STARPU_BLAS_LDFLAGS)
  510. endif
  511. ##############
  512. # CG example #
  513. ##############
  514. if !NO_BLAS_LIB
  515. cg_cg_SOURCES = \
  516. cg/cg.c \
  517. cg/cg_kernels.c \
  518. common/blas.c
  519. if STARPU_USE_CUDA
  520. cg_cg_SOURCES += \
  521. cg/cg_dot_kernel.cu
  522. endif
  523. cg_cg_LDADD = \
  524. $(STARPU_BLAS_LDFLAGS)
  525. endif
  526. ################
  527. # SpMV example #
  528. ################
  529. spmv_spmv_SOURCES = \
  530. spmv/spmv.c \
  531. spmv/spmv_kernels.c
  532. if STARPU_USE_CUDA
  533. spmv_spmv_SOURCES += \
  534. spmv/spmv_cuda.cu
  535. endif
  536. if ATLAS_BLAS_LIB
  537. spmv_dw_block_spmv_SOURCES = \
  538. spmv/dw_block_spmv.c \
  539. spmv/dw_block_spmv_kernels.c \
  540. spmv/matrix_market/mm_to_bcsr.c \
  541. spmv/matrix_market/mmio.c
  542. spmv_dw_block_spmv_LDADD = \
  543. $(STARPU_BLAS_LDFLAGS)
  544. endif
  545. ###########################
  546. # C++ Incrementer example #
  547. ###########################
  548. cpp_incrementer_cpp_SOURCES = \
  549. cpp/incrementer_cpp.cpp
  550. #if STARPU_USE_CUDA
  551. #cpp_incrementer_cpp_SOURCES += \
  552. # incrementer/incrementer_kernels.cu
  553. #endif
  554. #######################
  555. # Incrementer example #
  556. #######################
  557. incrementer_incrementer_SOURCES = \
  558. incrementer/incrementer.c
  559. if STARPU_USE_CUDA
  560. incrementer_incrementer_SOURCES += \
  561. incrementer/incrementer_kernels.cu
  562. endif
  563. if STARPU_USE_OPENCL
  564. incrementer_incrementer_SOURCES += \
  565. incrementer/incrementer_kernels_opencl.c
  566. nobase_STARPU_OPENCL_DATA_DATA += \
  567. incrementer/incrementer_kernels_opencl_kernel.cl
  568. endif
  569. ######################
  570. # matVecMult example #
  571. ######################
  572. if STARPU_USE_OPENCL
  573. nobase_STARPU_OPENCL_DATA_DATA += \
  574. matvecmult/matvecmult_kernel.cl
  575. endif
  576. #######################
  577. # dot_product example #
  578. #######################
  579. reductions_dot_product_SOURCES = \
  580. reductions/dot_product.c
  581. if STARPU_USE_CUDA
  582. reductions_dot_product_SOURCES += \
  583. reductions/dot_product_kernels.cu
  584. endif
  585. ##################
  586. # Mandelbrot Set #
  587. ##################
  588. mandelbrot_mandelbrot_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
  589. if HAVE_X11
  590. mandelbrot_mandelbrot_CPPFLAGS += $(X_CFLAGS)
  591. mandelbrot_mandelbrot_LDADD = $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
  592. endif
  593. ################
  594. # Top Examples #
  595. ################
  596. examplebin_PROGRAMS += \
  597. top/hello_world_top
  598. top_hello_world_top_SOURCES = \
  599. top/hello_world_top.c