Makefile.am 19 KB

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