Makefile.am 21 KB

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