Makefile.am 19 KB

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