Makefile.am 18 KB

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