Makefile.am 19 KB

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