Makefile.am 19 KB

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