Makefile.am 20 KB

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