Makefile.am 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836
  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) 2011-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. AUTOMAKE_OPTIONS = subdir-objects
  24. SUBDIRS = stencil
  25. BUILT_SOURCES =
  26. if STARPU_USE_OPENCL
  27. nobase_STARPU_OPENCL_DATA_DATA =
  28. endif
  29. EXTRA_DIST = \
  30. axpy/axpy_opencl_kernel.cl \
  31. basic_examples/vector_scal_opencl_kernel.cl \
  32. basic_examples/multiformat_opencl_kernel.cl \
  33. basic_examples/multiformat_conversion_codelets_opencl_kernel.cl \
  34. common/blas_model.c \
  35. spmd/vector_scal_spmd.c \
  36. spmv/spmv_cuda.cu \
  37. spmv/spmv_opencl.cl \
  38. gordon/null_kernel_gordon.c \
  39. mult/xgemm.c \
  40. lu/xlu.c \
  41. lu/xlu_pivot.c \
  42. lu/xlu_implicit.c \
  43. lu/xlu_implicit_pivot.c \
  44. lu/xlu_kernels.c \
  45. lu/lu_example.c \
  46. sched_ctx_utils/sched_ctx_utils.c \
  47. incrementer/incrementer_kernels_opencl_kernel.cl \
  48. basic_examples/variable_kernels_opencl_kernel.cl \
  49. matvecmult/matvecmult_kernel.cl \
  50. basic_examples/block_opencl_kernel.cl \
  51. openmp/vector_scal.c \
  52. filters/fblock_opencl_kernel.cl \
  53. filters/custom_mf/conversion_opencl.cl \
  54. filters/custom_mf/custom_opencl.cl \
  55. interface/complex_kernels.cl \
  56. reductions/dot_product_opencl_kernels.cl
  57. CLEANFILES = \
  58. gordon/null_kernel_gordon.spuelf
  59. CLEANFILES += *.gcno *.gcda *.linkinfo
  60. if STARPU_USE_CUDA
  61. NVCCFLAGS += --compiler-options -fno-strict-aliasing -I$(top_srcdir)/include/ -I$(top_builddir)/include/ -I$(top_srcdir)/examples/ $(HWLOC_CFLAGS) -arch sm_13
  62. .cu.o:
  63. $(NVCC) $< -c -o $@ $(NVCCFLAGS)
  64. endif
  65. if STARPU_USE_GORDON
  66. SPU_CC ?= spu-gcc
  67. SPU_LD ?= spu-ld
  68. SPULDFLAGS =
  69. SPULIBS = -lblas #-lc -lgloss -lc
  70. .c.spuo:
  71. $(MKDIR_P) `dirname $@`
  72. $(SPU_CC) -c -fpic $< -o $@
  73. .spuo.spuelf:
  74. $(MKDIR_P) `dirname $@`
  75. $(SPU_LD) $(SPULDFLAGS) $< -o $@ $(SPULIBS)
  76. BUILT_SOURCES += \
  77. gordon/null_kernel_gordon.spuelf
  78. endif
  79. if STARPU_HAVE_ICC
  80. .icc.o:
  81. $(ICC) -x c $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  82. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $< -c -o $@
  83. endif
  84. examplebindir = $(libdir)/starpu/examples/
  85. examplebin_PROGRAMS =
  86. noinst_HEADERS = \
  87. axpy/axpy.h \
  88. cg/cg.h \
  89. heat/lu_kernels_model.h \
  90. heat/dw_sparse_cg.h \
  91. heat/heat.h \
  92. heat/dw_factolu.h \
  93. lu/xlu.h \
  94. lu/xlu_kernels.h \
  95. lu/float.h \
  96. lu/double.h \
  97. lu/complex_float.h \
  98. lu/complex_double.h \
  99. lu/blas_complex.h \
  100. cholesky/cholesky.h \
  101. sched_ctx_utils/sched_ctx_utils.h \
  102. common/blas_model.h \
  103. common/blas.h \
  104. mult/simple.h \
  105. mult/double.h \
  106. gordon/null.h \
  107. fortran/bindings/StarPU_fortran.h \
  108. ppm_downscaler/ppm_downscaler.h \
  109. ppm_downscaler/yuv_downscaler.h \
  110. spmv/matrix_market/mmio.h \
  111. spmv/matrix_market/mm_to_bcsr.h \
  112. spmv/spmv.h \
  113. spmv/dw_block_spmv.h \
  114. basic_examples/multiformat_types.h \
  115. filters/custom_mf/custom_interface.h \
  116. filters/custom_mf/custom_types.h \
  117. interface/complex_interface.h \
  118. pi/pi.h \
  119. pi/SobolQRNG/sobol.h \
  120. pi/SobolQRNG/sobol_gold.h \
  121. pi/SobolQRNG/sobol_gpu.h \
  122. pi/SobolQRNG/sobol_primitives.h \
  123. reductions/dot_product.h
  124. #####################################
  125. # What to install and what to check #
  126. #####################################
  127. STARPU_EXAMPLES =
  128. TESTS = $(STARPU_EXAMPLES)
  129. if STARPU_HAVE_WINDOWS
  130. check_PROGRAMS = $(STARPU_EXAMPLES)
  131. else
  132. check_PROGRAMS = $(LOADER) $(STARPU_EXAMPLES)
  133. endif
  134. if !STARPU_HAVE_WINDOWS
  135. ## test loader program
  136. LOADER = loader
  137. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  138. LOADER_BIN = $(abs_top_builddir)/examples/$(LOADER)
  139. loader_SOURCES = ../tests/loader.c
  140. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  141. endif
  142. examplebin_PROGRAMS += \
  143. basic_examples/hello_world \
  144. basic_examples/vector_scal \
  145. basic_examples/mult \
  146. basic_examples/block \
  147. basic_examples/variable \
  148. basic_examples/multiformat \
  149. cpp/incrementer_cpp \
  150. filters/custom_mf/custom_mf_filter \
  151. filters/fvector \
  152. filters/fblock \
  153. filters/fmatrix \
  154. tag_example/tag_example \
  155. tag_example/tag_example2 \
  156. tag_example/tag_example3 \
  157. tag_example/tag_example4 \
  158. tag_example/tag_restartable \
  159. spmd/vector_scal_spmd \
  160. spmv/spmv \
  161. callback/callback \
  162. incrementer/incrementer \
  163. interface/complex \
  164. matvecmult/matvecmult \
  165. profiling/profiling \
  166. scheduler/dummy_sched \
  167. reductions/dot_product \
  168. reductions/minmax_reduction \
  169. mandelbrot/mandelbrot \
  170. ppm_downscaler/ppm_downscaler \
  171. ppm_downscaler/yuv_downscaler
  172. if STARPU_HAVE_F77_H
  173. examplebin_PROGRAMS += \
  174. basic_examples/vector_scal_fortran
  175. endif
  176. if !NO_BLAS_LIB
  177. examplebin_PROGRAMS += \
  178. axpy/axpy \
  179. mult/sgemm \
  180. mult/dgemm \
  181. cholesky/cholesky_tag \
  182. cholesky/cholesky_tile_tag \
  183. cholesky/cholesky_grain_tag \
  184. cholesky/cholesky_implicit \
  185. lu/lu_example_float \
  186. lu/lu_example_double \
  187. lu/lu_implicit_example_float \
  188. lu/lu_implicit_example_double \
  189. heat/heat \
  190. cg/cg
  191. endif
  192. if MKL_BLAS_LIB
  193. examplebin_PROGRAMS += \
  194. lu/lu_example_complex_float \
  195. lu/lu_example_complex_double \
  196. lu/lu_implicit_example_complex_float \
  197. lu/lu_implicit_example_complex_double
  198. endif
  199. if ATLAS_BLAS_LIB
  200. examplebin_PROGRAMS += \
  201. spmv/dw_block_spmv
  202. endif
  203. STARPU_EXAMPLES += \
  204. basic_examples/hello_world \
  205. basic_examples/vector_scal \
  206. basic_examples/mult \
  207. basic_examples/block \
  208. basic_examples/variable \
  209. basic_examples/multiformat \
  210. cpp/incrementer_cpp \
  211. filters/fvector \
  212. filters/fblock \
  213. filters/fmatrix \
  214. tag_example/tag_example \
  215. tag_example/tag_example2 \
  216. tag_example/tag_example3 \
  217. tag_example/tag_example4 \
  218. tag_example/tag_restartable \
  219. spmd/vector_scal_spmd \
  220. spmv/spmv \
  221. callback/callback \
  222. incrementer/incrementer \
  223. interface/complex \
  224. matvecmult/matvecmult \
  225. profiling/profiling \
  226. scheduler/dummy_sched \
  227. reductions/dot_product \
  228. reductions/minmax_reduction
  229. if STARPU_HAVE_F77_H
  230. STARPU_EXAMPLES += \
  231. basic_examples/vector_scal_fortran
  232. endif
  233. if !NO_BLAS_LIB
  234. STARPU_EXAMPLES += \
  235. axpy/axpy \
  236. mult/sgemm \
  237. mult/dgemm \
  238. cholesky/cholesky_tag \
  239. cholesky/cholesky_tile_tag \
  240. cholesky/cholesky_grain_tag \
  241. cholesky/cholesky_implicit \
  242. lu/lu_example_float \
  243. lu/lu_example_double \
  244. lu/lu_implicit_example_float \
  245. lu/lu_implicit_example_double \
  246. heat/heat \
  247. cg/cg
  248. endif
  249. if MKL_BLAS_LIB
  250. STARPU_EXAMPLES += \
  251. lu/lu_example_complex_float \
  252. lu/lu_example_complex_double \
  253. lu/lu_implicit_example_complex_float \
  254. lu/lu_implicit_example_complex_double
  255. endif
  256. if ATLAS_BLAS_LIB
  257. STARPU_EXAMPLES += \
  258. spmv/dw_block_spmv
  259. endif
  260. ##################
  261. # Basic examples #
  262. ##################
  263. basic_examples_vector_scal_SOURCES = \
  264. basic_examples/vector_scal.c \
  265. basic_examples/vector_scal_cpu.c
  266. if STARPU_HAVE_ICC
  267. basic_examples_vector_scal_SOURCES += \
  268. basic_examples/vector_scal_cpu_icc.icc
  269. basic_examples/vector_scal_cpu_icc.o: CFLAGS += -Dscal_cpu_func=scal_cpu_func_icc -Dscal_sse_func=scal_sse_func_icc
  270. endif
  271. if STARPU_USE_CUDA
  272. basic_examples_vector_scal_SOURCES += \
  273. basic_examples/vector_scal_cuda.cu
  274. endif
  275. if STARPU_USE_OPENCL
  276. basic_examples_vector_scal_SOURCES += \
  277. basic_examples/vector_scal_opencl.c
  278. nobase_STARPU_OPENCL_DATA_DATA += \
  279. basic_examples/vector_scal_opencl_kernel.cl
  280. endif
  281. if STARPU_HAVE_F77_H
  282. basic_examples_vector_scal_fortran_SOURCES = \
  283. basic_examples/vector_scal_fortran.F \
  284. basic_examples/vector_scal_c.c \
  285. basic_examples/vector_scal_cpu.c
  286. if STARPU_USE_CUDA
  287. basic_examples_vector_scal_fortran_SOURCES += \
  288. basic_examples/vector_scal_cuda.cu
  289. basic_examples_vector_scal_fortran_LDADD = \
  290. $(STARPU_CUDA_FORTRAN_LDFLAGS)
  291. endif
  292. endif
  293. #######################
  294. # Multiformat example #
  295. #######################
  296. basic_examples_multiformat_SOURCES = \
  297. basic_examples/multiformat.c \
  298. basic_examples/multiformat_conversion_codelets.c
  299. if STARPU_USE_CUDA
  300. basic_examples_multiformat_SOURCES += \
  301. basic_examples/multiformat_cuda.cu \
  302. basic_examples/multiformat_conversion_codelets_cuda.cu
  303. endif
  304. if STARPU_USE_OPENCL
  305. basic_examples_multiformat_SOURCES += \
  306. basic_examples/multiformat_opencl.c \
  307. basic_examples/multiformat_conversion_codelets_opencl.c
  308. nobase_STARPU_OPENCL_DATA_DATA += \
  309. basic_examples/multiformat_opencl_kernel.cl \
  310. basic_examples/multiformat_conversion_codelets_opencl_kernel.cl
  311. endif
  312. #################
  313. # block example #
  314. #################
  315. basic_examples_block_SOURCES = \
  316. basic_examples/block.c \
  317. basic_examples/block_cpu.c
  318. if STARPU_USE_CUDA
  319. basic_examples_block_SOURCES += \
  320. basic_examples/block_cuda.cu
  321. endif
  322. if STARPU_USE_OPENCL
  323. basic_examples_block_SOURCES += \
  324. basic_examples/block_opencl.c
  325. nobase_STARPU_OPENCL_DATA_DATA += \
  326. basic_examples/block_opencl_kernel.cl
  327. endif
  328. ####################
  329. # Variable example #
  330. ####################
  331. basic_examples_variable_SOURCES = \
  332. basic_examples/variable.c \
  333. basic_examples/variable_kernels_cpu.c
  334. if STARPU_USE_CUDA
  335. basic_examples_variable_SOURCES += \
  336. basic_examples/variable_kernels.cu
  337. endif
  338. if STARPU_USE_OPENCL
  339. basic_examples_variable_SOURCES += \
  340. basic_examples/variable_kernels_opencl.c
  341. nobase_STARPU_OPENCL_DATA_DATA += \
  342. basic_examples/variable_kernels_opencl_kernel.cl
  343. endif
  344. ###########
  345. # Filters #
  346. ###########
  347. filters_fblock_SOURCES = \
  348. filters/fblock.c \
  349. filters/fblock_cpu.c
  350. if STARPU_USE_CUDA
  351. filters_fblock_SOURCES += \
  352. filters/fblock_cuda.cu
  353. endif
  354. if STARPU_USE_OPENCL
  355. filters_fblock_SOURCES += \
  356. filters/fblock_opencl.c
  357. nobase_STARPU_OPENCL_DATA_DATA += \
  358. filters/fblock_opencl_kernel.cl
  359. endif
  360. #############################
  361. # Custom multiformat filter #
  362. #############################
  363. filters_custom_mf_custom_mf_filter_SOURCES=\
  364. filters/custom_mf/custom_mf_filter.c \
  365. filters/custom_mf/custom_interface.c \
  366. filters/custom_mf/custom_conversion_codelets.c
  367. if STARPU_USE_CUDA
  368. filters_custom_mf_custom_mf_filter_SOURCES += \
  369. filters/custom_mf/conversion.cu \
  370. filters/custom_mf/cuda.cu
  371. endif
  372. if STARPU_USE_OPENCL
  373. filters_custom_mf_custom_mf_filter_SOURCES += \
  374. filters/custom_mf/conversion_opencl.c \
  375. filters/custom_mf/custom_opencl.c
  376. nobase_STARPU_OPENCL_DATA_DATA += \
  377. filters/custom_mf/conversion_opencl.cl \
  378. filters/custom_mf/custom_opencl.cl
  379. endif
  380. ################
  381. # AXPY example #
  382. ################
  383. if !NO_BLAS_LIB
  384. axpy_axpy_SOURCES = \
  385. axpy/axpy.c \
  386. common/blas.c
  387. if STARPU_USE_OPENCL
  388. axpy_axpy_SOURCES += \
  389. axpy/axpy_opencl.c
  390. nobase_STARPU_OPENCL_DATA_DATA += \
  391. axpy/axpy_opencl_kernel.cl
  392. endif
  393. axpy_axpy_LDADD = \
  394. $(STARPU_BLAS_LDFLAGS)
  395. endif
  396. ################
  397. # Mult example #
  398. ################
  399. if !NO_BLAS_LIB
  400. mult_sgemm_SOURCES = \
  401. mult/sgemm.c \
  402. common/blas.c
  403. mult_sgemm_LDADD = \
  404. $(STARPU_BLAS_LDFLAGS)
  405. mult_dgemm_SOURCES = \
  406. mult/dgemm.c \
  407. common/blas.c
  408. mult_dgemm_LDADD = \
  409. $(STARPU_BLAS_LDFLAGS)
  410. endif
  411. ####################
  412. # Cholesky example #
  413. ####################
  414. if !NO_BLAS_LIB
  415. cholesky_cholesky_tag_SOURCES = \
  416. cholesky/cholesky_tag.c \
  417. cholesky/cholesky_models.c \
  418. cholesky/cholesky_kernels.c \
  419. common/blas.c
  420. cholesky_cholesky_tag_LDADD = \
  421. $(STARPU_BLAS_LDFLAGS)
  422. cholesky_cholesky_tile_tag_SOURCES = \
  423. cholesky/cholesky_tile_tag.c \
  424. cholesky/cholesky_models.c \
  425. cholesky/cholesky_kernels.c \
  426. common/blas.c
  427. cholesky_cholesky_tile_tag_LDADD = \
  428. $(STARPU_BLAS_LDFLAGS)
  429. cholesky_cholesky_grain_tag_SOURCES = \
  430. cholesky/cholesky_grain_tag.c \
  431. cholesky/cholesky_models.c \
  432. cholesky/cholesky_kernels.c \
  433. common/blas.c
  434. cholesky_cholesky_grain_tag_LDADD = \
  435. $(STARPU_BLAS_LDFLAGS)
  436. cholesky_cholesky_implicit_SOURCES = \
  437. cholesky/cholesky_implicit.c \
  438. cholesky/cholesky_models.c \
  439. cholesky/cholesky_kernels.c \
  440. sched_ctx_utils/sched_ctx_utils.c \
  441. common/blas.c
  442. cholesky_cholesky_implicit_LDADD = \
  443. $(STARPU_BLAS_LDFLAGS)
  444. endif
  445. ##############
  446. # LU example #
  447. ##############
  448. if !NO_BLAS_LIB
  449. lu_lu_example_float_SOURCES = \
  450. lu/lu_example_float.c \
  451. lu/slu.c \
  452. lu/slu_pivot.c \
  453. lu/slu_kernels.c \
  454. common/blas.c
  455. lu_lu_example_float_LDADD = \
  456. $(STARPU_BLAS_LDFLAGS)
  457. lu_lu_example_double_SOURCES = \
  458. lu/lu_example_double.c \
  459. lu/dlu.c \
  460. lu/dlu_pivot.c \
  461. lu/dlu_kernels.c \
  462. common/blas.c
  463. lu_lu_example_double_LDADD = \
  464. $(STARPU_BLAS_LDFLAGS)
  465. lu_lu_implicit_example_float_SOURCES = \
  466. lu/lu_example_float.c \
  467. lu/slu_implicit.c \
  468. lu/slu_implicit_pivot.c \
  469. lu/slu_kernels.c \
  470. common/blas.c
  471. lu_lu_implicit_example_float_LDADD = \
  472. $(STARPU_BLAS_LDFLAGS)
  473. lu_lu_implicit_example_double_SOURCES = \
  474. lu/lu_example_double.c \
  475. lu/dlu_implicit.c \
  476. lu/dlu_implicit_pivot.c \
  477. lu/dlu_kernels.c \
  478. common/blas.c
  479. lu_lu_implicit_example_double_LDADD = \
  480. $(STARPU_BLAS_LDFLAGS)
  481. if MKL_BLAS_LIB
  482. lu_lu_example_complex_float_SOURCES = \
  483. lu/lu_example_complex_float.c \
  484. lu/clu.c \
  485. lu/clu_pivot.c \
  486. lu/clu_kernels.c \
  487. lu/blas_complex.c \
  488. common/blas.c
  489. lu_lu_example_complex_float_LDADD = \
  490. $(STARPU_BLAS_LDFLAGS)
  491. lu_lu_implicit_example_complex_float_SOURCES = \
  492. lu/lu_example_complex_float.c \
  493. lu/clu_implicit.c \
  494. lu/clu_implicit_pivot.c \
  495. lu/clu_kernels.c \
  496. lu/blas_complex.c \
  497. common/blas.c
  498. lu_lu_implicit_example_complex_float_LDADD = \
  499. $(STARPU_BLAS_LDFLAGS)
  500. lu_lu_example_complex_double_SOURCES = \
  501. lu/lu_example_complex_double.c \
  502. lu/zlu.c \
  503. lu/zlu_pivot.c \
  504. lu/zlu_kernels.c \
  505. lu/blas_complex.c \
  506. common/blas.c
  507. lu_lu_example_complex_double_LDADD = \
  508. $(STARPU_BLAS_LDFLAGS)
  509. lu_lu_implicit_example_complex_double_SOURCES = \
  510. lu/lu_example_complex_double.c \
  511. lu/zlu_implicit.c \
  512. lu/zlu_implicit_pivot.c \
  513. lu/zlu_kernels.c \
  514. lu/blas_complex.c \
  515. common/blas.c
  516. lu_lu_implicit_example_complex_double_LDADD = \
  517. $(STARPU_BLAS_LDFLAGS)
  518. endif
  519. endif
  520. ################
  521. # Heat example #
  522. ################
  523. if !NO_BLAS_LIB
  524. heat_heat_SOURCES = \
  525. heat/heat.c \
  526. heat/dw_factolu.c \
  527. heat/dw_factolu_tag.c \
  528. heat/dw_factolu_grain.c \
  529. heat/dw_sparse_cg.c \
  530. heat/heat_display.c \
  531. heat/lu_kernels_model.c \
  532. heat/dw_sparse_cg_kernels.c \
  533. heat/dw_factolu_kernels.c \
  534. common/blas.c
  535. heat_heat_LDADD = \
  536. $(STARPU_OPENGL_RENDER_LDFLAGS) \
  537. $(STARPU_BLAS_LDFLAGS)
  538. endif
  539. ##############
  540. # CG example #
  541. ##############
  542. if !NO_BLAS_LIB
  543. cg_cg_SOURCES = \
  544. cg/cg.c \
  545. cg/cg_kernels.c \
  546. common/blas.c
  547. if STARPU_USE_CUDA
  548. cg_cg_SOURCES += \
  549. cg/cg_dot_kernel.cu
  550. endif
  551. cg_cg_LDADD = \
  552. $(STARPU_BLAS_LDFLAGS)
  553. endif
  554. ################
  555. # SPMD example #
  556. ################
  557. spmd_vector_scal_spmd_SOURCES = \
  558. spmd/vector_scal_spmd.c
  559. ################
  560. # SpMV example #
  561. ################
  562. spmv_spmv_SOURCES = \
  563. spmv/spmv.c \
  564. spmv/spmv_kernels.c
  565. if STARPU_USE_CUDA
  566. spmv_spmv_SOURCES += \
  567. spmv/spmv_cuda.cu
  568. endif
  569. if ATLAS_BLAS_LIB
  570. spmv_dw_block_spmv_SOURCES = \
  571. spmv/dw_block_spmv.c \
  572. spmv/dw_block_spmv_kernels.c \
  573. spmv/matrix_market/mm_to_bcsr.c \
  574. spmv/matrix_market/mmio.c
  575. spmv_dw_block_spmv_LDADD = \
  576. $(STARPU_BLAS_LDFLAGS)
  577. endif
  578. ###########################
  579. # C++ Incrementer example #
  580. ###########################
  581. cpp_incrementer_cpp_SOURCES = \
  582. cpp/incrementer_cpp.cpp
  583. if STARPU_USE_CUDA
  584. cpp_incrementer_cpp_SOURCES += \
  585. incrementer/incrementer_kernels.cu
  586. endif
  587. if STARPU_USE_OPENCL
  588. cpp_incrementer_cpp_SOURCES += \
  589. incrementer/incrementer_kernels_opencl.c
  590. endif
  591. #######################
  592. # Incrementer example #
  593. #######################
  594. incrementer_incrementer_SOURCES = \
  595. incrementer/incrementer.c
  596. if STARPU_USE_CUDA
  597. incrementer_incrementer_SOURCES += \
  598. incrementer/incrementer_kernels.cu
  599. endif
  600. if STARPU_USE_OPENCL
  601. incrementer_incrementer_SOURCES += \
  602. incrementer/incrementer_kernels_opencl.c
  603. nobase_STARPU_OPENCL_DATA_DATA += \
  604. incrementer/incrementer_kernels_opencl_kernel.cl
  605. endif
  606. #####################
  607. # interface example #
  608. #####################
  609. interface_complex_SOURCES = \
  610. interface/complex.c \
  611. interface/complex_interface.c
  612. if STARPU_USE_CUDA
  613. interface_complex_SOURCES += \
  614. interface/complex_kernels.cu
  615. endif
  616. if STARPU_USE_OPENCL
  617. interface_complex_SOURCES +=\
  618. interface/complex_kernels_opencl.c
  619. nobase_STARPU_OPENCL_DATA_DATA += \
  620. interface/complex_kernels.cl
  621. endif
  622. ######################
  623. # matVecMult example #
  624. ######################
  625. if STARPU_USE_OPENCL
  626. nobase_STARPU_OPENCL_DATA_DATA += \
  627. matvecmult/matvecmult_kernel.cl
  628. endif
  629. #######################
  630. # dot_product example #
  631. #######################
  632. reductions_dot_product_SOURCES = \
  633. reductions/dot_product.c
  634. if STARPU_USE_CUDA
  635. reductions_dot_product_SOURCES += \
  636. reductions/dot_product_kernels.cu
  637. endif
  638. if STARPU_USE_OPENCL
  639. nobase_STARPU_OPENCL_DATA_DATA += \
  640. reductions/dot_product_opencl_kernels.cl
  641. endif
  642. ##################
  643. # Mandelbrot Set #
  644. ##################
  645. mandelbrot_mandelbrot_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
  646. if HAVE_X11
  647. mandelbrot_mandelbrot_CPPFLAGS += $(X_CFLAGS)
  648. mandelbrot_mandelbrot_LDADD = $(X_PRE_LIBS) $(X_LIBS) $(X_EXTRA_LIBS) -lX11
  649. endif
  650. ################
  651. # Top Examples #
  652. ################
  653. examplebin_PROGRAMS += \
  654. top/hello_world_top
  655. top_hello_world_top_SOURCES = \
  656. top/hello_world_top.c
  657. ######
  658. # Pi #
  659. ######
  660. check_PROGRAMS += \
  661. pi/pi \
  662. pi/pi_redux
  663. examplebin_PROGRAMS += \
  664. pi/pi \
  665. pi/pi_redux
  666. pi_pi_SOURCES = \
  667. pi/pi.c \
  668. pi/SobolQRNG/sobol_gold.c \
  669. pi/SobolQRNG/sobol_primitives.c
  670. if STARPU_USE_CUDA
  671. pi_pi_SOURCES += \
  672. pi/pi_kernel.cu \
  673. pi/SobolQRNG/sobol_gpu.cu
  674. endif
  675. pi_pi_redux_SOURCES = \
  676. pi/pi_redux.c
  677. if STARPU_USE_CUDA
  678. pi_pi_redux_SOURCES += \
  679. pi/pi_redux_kernel.cu
  680. pi_pi_redux_LDADD = \
  681. $(STARPU_CURAND_LDFLAGS)
  682. endif
  683. showcheck:
  684. -cat $(TEST_LOGS) /dev/null
  685. for i in $(SUBDIRS) ; do \
  686. make -C $$i showcheck ; \
  687. done