Makefile.am 19 KB

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