Makefile.am 18 KB

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