Makefile.am 20 KB

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