| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911 | # StarPU --- Runtime system for heterogeneous multicore architectures.## Copyright (C) 2009-2013  Université de Bordeaux 1# Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique# Copyright (C) 2011  Télécom-SudParis# Copyright (C) 2011-2012  INRIA## StarPU is free software; you can redistribute it and/or modify# it under the terms of the GNU Lesser General Public License as published by# the Free Software Foundation; either version 2.1 of the License, or (at# your option) any later version.## StarPU is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.## See the GNU Lesser General Public License in COPYING.LGPL for more details.AM_CFLAGS = $(MAGMA_CFLAGS) $(HWLOC_CFLAGS) -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(GLOBAL_AM_CFLAGS) -Wno-unusedAM_CXXFLAGS = $(MAGMA_CFLAGS) $(HWLOC_CFLAGS) -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS)LIBS = $(top_builddir)/src/@LIBSTARPU_LINK@ $(MAGMA_LIBS) $(HWLOC_LIBS) @LIBS@AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/examples/ -I$(top_builddir)/includeAM_LDFLAGS = $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS) $(STARPU_COI_LDFLAGS)SUBDIRS = stencilBUILT_SOURCES =if STARPU_USE_OPENCLnobase_STARPU_OPENCL_DATA_DATA =endifEXTRA_DIST = 					\	axpy/axpy_opencl_kernel.cl		\	basic_examples/vector_scal_opencl_kernel.cl \	basic_examples/multiformat_opencl_kernel.cl  \	basic_examples/multiformat_conversion_codelets_opencl_kernel.cl \	common/blas_model.c			\	spmd/vector_scal_spmd.c			\	spmv/spmv_cuda.cu			\	spmv/spmv_opencl.cl			\	mult/xgemm.c				\	lu/xlu.c				\	lu/xlu_pivot.c				\	lu/xlu_implicit.c			\	lu/xlu_implicit_pivot.c			\	lu/xlu_kernels.c			\	lu/lu_example.c				\	sched_ctx_utils/sched_ctx_utils.c			\	sched_ctx/sched_ctx.c					\	sched_ctx/parallel_code.c				\	incrementer/incrementer_kernels_opencl_kernel.cl 	\	basic_examples/variable_kernels_opencl_kernel.cl	\	matvecmult/matvecmult_kernel.cl				\	basic_examples/block_opencl_kernel.cl			\	filters/fblock_opencl_kernel.cl		\	filters/custom_mf/conversion_opencl.cl  \	filters/custom_mf/custom_opencl.cl \	interface/complex_kernels.cl \	reductions/dot_product_opencl_kernels.cl	\	scheduler/schedulers.shCLEANFILES = *.gcno *.gcda *.linkinfoif STARPU_USE_CUDANVCCFLAGS += --compiler-options -fno-strict-aliasing  -I$(top_srcdir)/include/ -I$(top_builddir)/include/ -I$(top_srcdir)/examples/  $(HWLOC_CFLAGS).cu.o:	$(NVCC) $< -c -o $@ $(NVCCFLAGS)endifif STARPU_HAVE_ICC.icc.o:	$(ICC) -x c $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \		$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $< -c -o $@endifexamplebindir = $(libdir)/starpu/examples/examplebin_PROGRAMS =noinst_HEADERS = 				\	axpy/axpy.h                             \	cg/cg.h					\	heat/lu_kernels_model.h			\	heat/dw_sparse_cg.h			\	heat/heat.h				\	heat/dw_factolu.h			\	lu/xlu.h				\	lu/xlu_kernels.h			\	lu/lu-float.h				\	lu/lu-double.h				\	lu/complex_float.h			\	lu/complex_double.h			\	lu/blas_complex.h			\	cholesky/cholesky.h			\	sched_ctx_utils/sched_ctx_utils.h	\	common/blas_model.h			\	common/blas.h				\	mult/simple.h				\	mult/double.h				\	fortran/bindings/StarPU_fortran.h	\	ppm_downscaler/ppm_downscaler.h		\	ppm_downscaler/yuv_downscaler.h		\	spmv/matrix_market/mmio.h		\	spmv/matrix_market/mm_to_bcsr.h		\	spmv/spmv.h				\	spmv/dw_block_spmv.h                    \	basic_examples/multiformat_types.h      \	filters/custom_mf/custom_interface.h    \	filters/custom_mf/custom_types.h	\	interface/complex_interface.h		\	interface/complex_codelet.h		\	pi/pi.h					\	pi/SobolQRNG/sobol.h			\	pi/SobolQRNG/sobol_gold.h		\	pi/SobolQRNG/sobol_gpu.h		\	pi/SobolQRNG/sobol_primitives.h         \	reductions/dot_product.h                \	basic_examples/vector_scal_cpu_template.h###################################### What to install and what to check ######################################STARPU_EXAMPLES	=TESTS		=	$(STARPU_EXAMPLES)TESTS		+=	scheduler/schedulers.shif STARPU_HAVE_WINDOWScheck_PROGRAMS	=	$(STARPU_EXAMPLES)elsecheck_PROGRAMS	=	$(LOADER) $(STARPU_EXAMPLES)endifif !STARPU_HAVE_WINDOWS## test loader programif !STARPU_CROSS_COMPILINGLOADER			=	loaderloader_CPPFLAGS =  $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/LOADER_BIN		=	$(abs_top_builddir)/examples/$(LOADER)loader_SOURCES		=	../tests/loader.celseLOADER			=LOADER_BIN		=	$(top_builddir)/tests/loader-cross.shendifif STARPU_HAVE_AM111TESTS_ENVIRONMENT	=	top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"LOG_COMPILER		=	$(LOADER_BIN)elseTESTS_ENVIRONMENT	=	top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)endifendifexamplebin_PROGRAMS +=				\	basic_examples/hello_world		\	basic_examples/vector_scal		\	basic_examples/mult			\	basic_examples/block			\	basic_examples/variable			\	basic_examples/multiformat              \	basic_examples/dynamic_handles		\	cpp/incrementer_cpp			\	filters/custom_mf/custom_mf_filter      \	filters/fvector				\	filters/fblock				\	filters/fmatrix				\	filters/shadow				\	filters/shadow2d			\	filters/shadow3d			\	tag_example/tag_example			\	tag_example/tag_example2		\	tag_example/tag_example3		\	tag_example/tag_example4		\	tag_example/tag_restartable		\	spmd/vector_scal_spmd			\	spmv/spmv				\	callback/callback			\	incrementer/incrementer			\	binary/binary				\	interface/complex			\	matvecmult/matvecmult			\	profiling/profiling			\	sched_ctx/sched_ctx			\	sched_ctx/parallel_code			\	reductions/dot_product			\	reductions/minmax_reduction		\	mandelbrot/mandelbrot			\	ppm_downscaler/ppm_downscaler		\	ppm_downscaler/yuv_downscalerif !STARPU_SIMGRIDexamplebin_PROGRAMS +=				\	scheduler/dummy_schedif STARPU_HAVE_F77_Hexamplebin_PROGRAMS +=				\	basic_examples/vector_scal_fortranendifendifif !NO_BLAS_LIBexamplebin_PROGRAMS +=				\	axpy/axpy				\	mult/sgemm 				\	mult/dgemm				\	cholesky/cholesky_tag			\	cholesky/cholesky_tile_tag		\	cholesky/cholesky_grain_tag		\	cholesky/cholesky_implicit		\	lu/lu_example_float			\	lu/lu_example_double			\	lu/lu_implicit_example_float		\	lu/lu_implicit_example_double		\	heat/heat				\	cg/cg					\	pipeline/pipelineendifif MKL_BLAS_LIBexamplebin_PROGRAMS +=				\	lu/lu_example_complex_float		\	lu/lu_example_complex_double		\	lu/lu_implicit_example_complex_float	\	lu/lu_implicit_example_complex_doubleendifif ATLAS_BLAS_LIBexamplebin_PROGRAMS +=				\	spmv/dw_block_spmvendifSTARPU_EXAMPLES +=				\	basic_examples/hello_world		\	basic_examples/vector_scal		\	basic_examples/mult			\	basic_examples/block			\	basic_examples/variable			\	basic_examples/multiformat              \	cpp/incrementer_cpp			\	filters/fvector				\	filters/fblock				\	filters/fmatrix				\	tag_example/tag_example			\	tag_example/tag_example2		\	tag_example/tag_example3		\	tag_example/tag_example4		\	tag_example/tag_restartable		\	spmd/vector_scal_spmd			\	spmv/spmv				\	callback/callback			\	incrementer/incrementer			\	binary/binary				\	interface/complex			\	matvecmult/matvecmult			\	profiling/profiling			\	scheduler/dummy_sched			\	sched_ctx/sched_ctx			\	sched_ctx/parallel_code			\	reductions/dot_product			\	reductions/minmax_reductionif STARPU_HAVE_F77_HSTARPU_EXAMPLES +=				\	basic_examples/vector_scal_fortranendifif !NO_BLAS_LIBSTARPU_EXAMPLES +=				\	axpy/axpy				\	mult/sgemm 				\	mult/dgemm				\	cholesky/cholesky_tag			\	cholesky/cholesky_tile_tag		\	cholesky/cholesky_grain_tag		\	cholesky/cholesky_implicit		\	lu/lu_example_float			\	lu/lu_example_double			\	lu/lu_implicit_example_float		\	lu/lu_implicit_example_double		\	heat/heat				\	cg/cg					\	pipeline/pipelineendifif MKL_BLAS_LIBSTARPU_EXAMPLES +=				\	lu/lu_example_complex_float		\	lu/lu_example_complex_double		\	lu/lu_implicit_example_complex_float	\	lu/lu_implicit_example_complex_doubleendifif ATLAS_BLAS_LIBSTARPU_EXAMPLES +=				\	spmv/dw_block_spmvendif################### Basic examples ###################basic_examples_vector_scal_SOURCES =		\	basic_examples/vector_scal.c		\	basic_examples/vector_scal_cpu.cif STARPU_HAVE_ICCif STARPU_CROSS_COMPILINGelsebasic_examples_vector_scal_SOURCES +=		\	basic_examples/vector_scal_cpu_icc.iccendifendifif STARPU_USE_CUDAbasic_examples_vector_scal_SOURCES +=		\	basic_examples/vector_scal_cuda.cuendifif STARPU_USE_OPENCLbasic_examples_vector_scal_SOURCES +=		\	basic_examples/vector_scal_opencl.cnobase_STARPU_OPENCL_DATA_DATA += \	basic_examples/vector_scal_opencl_kernel.clendifif STARPU_HAVE_F77_Hbasic_examples_vector_scal_fortran_SOURCES =	\	basic_examples/vector_scal_fortran.F	\	basic_examples/vector_scal_c.c		\	basic_examples/vector_scal_cpu.cif STARPU_USE_CUDAbasic_examples_vector_scal_fortran_SOURCES +=	\	basic_examples/vector_scal_cuda.cubasic_examples_vector_scal_fortran_LDADD =	\	$(STARPU_CUDA_FORTRAN_LDFLAGS)endifendif######################## Multiformat example ########################basic_examples_multiformat_SOURCES =                                    \	basic_examples/multiformat.c                                    \	basic_examples/multiformat_conversion_codelets.cif STARPU_USE_CUDAbasic_examples_multiformat_SOURCES +=                                    \	basic_examples/multiformat_cuda.cu                               \	basic_examples/multiformat_conversion_codelets_cuda.cuendifif STARPU_USE_OPENCLbasic_examples_multiformat_SOURCES +=                                    \	basic_examples/multiformat_opencl.c                              \	basic_examples/multiformat_conversion_codelets_opencl.cnobase_STARPU_OPENCL_DATA_DATA +=                                        \	basic_examples/multiformat_opencl_kernel.cl                      \	basic_examples/multiformat_conversion_codelets_opencl_kernel.clendif################## block example ##################basic_examples_block_SOURCES =			\	basic_examples/block.c			\	basic_examples/block_cpu.cif STARPU_USE_CUDAbasic_examples_block_SOURCES +=			\	basic_examples/block_cuda.cuendifif STARPU_USE_OPENCLbasic_examples_block_SOURCES +=			\	basic_examples/block_opencl.cnobase_STARPU_OPENCL_DATA_DATA += 		\	basic_examples/block_opencl_kernel.clendif##################### Variable example #####################basic_examples_variable_SOURCES =		\	basic_examples/variable.c		\	basic_examples/variable_kernels_cpu.cif STARPU_USE_CUDAbasic_examples_variable_SOURCES +=		\	basic_examples/variable_kernels.cuendifif STARPU_USE_OPENCLbasic_examples_variable_SOURCES +=		\	basic_examples/variable_kernels_opencl.cnobase_STARPU_OPENCL_DATA_DATA += 		\	basic_examples/variable_kernels_opencl_kernel.clendif############ Filters ############filters_fblock_SOURCES =			\	filters/fblock.c			\	filters/fblock_cpu.cif STARPU_USE_CUDAfilters_fblock_SOURCES +=			\	filters/fblock_cuda.cuendifif STARPU_USE_OPENCLfilters_fblock_SOURCES +=			\	filters/fblock_opencl.cnobase_STARPU_OPENCL_DATA_DATA += \	filters/fblock_opencl_kernel.clendif############################## Custom multiformat filter ##############################filters_custom_mf_custom_mf_filter_SOURCES=\	filters/custom_mf/custom_mf_filter.c \	filters/custom_mf/custom_interface.c   \	filters/custom_mf/custom_conversion_codelets.cif STARPU_USE_CUDAfilters_custom_mf_custom_mf_filter_SOURCES += \	filters/custom_mf/conversion.cu \	filters/custom_mf/cuda.cuendifif STARPU_USE_OPENCLfilters_custom_mf_custom_mf_filter_SOURCES += \	filters/custom_mf/conversion_opencl.c \	filters/custom_mf/custom_opencl.cnobase_STARPU_OPENCL_DATA_DATA += \	filters/custom_mf/conversion_opencl.cl \	filters/custom_mf/custom_opencl.clendif################# AXPY example #################if !NO_BLAS_LIBaxpy_axpy_SOURCES =				\	axpy/axpy.c				\	common/blas.cif STARPU_USE_OPENCLaxpy_axpy_SOURCES += \	axpy/axpy_opencl.cnobase_STARPU_OPENCL_DATA_DATA +=		\	axpy/axpy_opencl_kernel.clendifaxpy_axpy_LDADD =				\	$(STARPU_BLAS_LDFLAGS)endif################# Mult example #################if !NO_BLAS_LIBmult_sgemm_SOURCES = 				\	mult/sgemm.c				\	common/blas.cmult_sgemm_LDADD =				\	$(STARPU_BLAS_LDFLAGS)mult_dgemm_SOURCES = 				\	mult/dgemm.c				\	common/blas.cmult_dgemm_LDADD =				\	$(STARPU_BLAS_LDFLAGS)endif##################### Cholesky example #####################if !NO_BLAS_LIBcholesky_cholesky_tag_SOURCES =			\	cholesky/cholesky_tag.c			\	cholesky/cholesky_models.c		\	cholesky/cholesky_kernels.c		\	common/blas.ccholesky_cholesky_tag_LDADD =			\	$(STARPU_BLAS_LDFLAGS)cholesky_cholesky_tile_tag_SOURCES =		\	cholesky/cholesky_tile_tag.c		\	cholesky/cholesky_models.c		\	cholesky/cholesky_kernels.c		\	common/blas.ccholesky_cholesky_tile_tag_LDADD =		\	$(STARPU_BLAS_LDFLAGS)cholesky_cholesky_grain_tag_SOURCES =		\	cholesky/cholesky_grain_tag.c		\	cholesky/cholesky_models.c		\	cholesky/cholesky_kernels.c		\	common/blas.ccholesky_cholesky_grain_tag_LDADD =		\	$(STARPU_BLAS_LDFLAGS)cholesky_cholesky_implicit_SOURCES =		\	cholesky/cholesky_implicit.c		\	cholesky/cholesky_models.c		\	cholesky/cholesky_kernels.c		\	sched_ctx_utils/sched_ctx_utils.c	\	common/blas.ccholesky_cholesky_implicit_LDADD =		\	$(STARPU_BLAS_LDFLAGS)endif############### LU example ###############if !NO_BLAS_LIBlu_lu_example_float_SOURCES =			\	lu/lu_example_float.c			\	lu/slu.c				\	lu/slu_pivot.c				\	lu/slu_kernels.c			\	common/blas.clu_lu_example_float_LDADD =			\	$(STARPU_BLAS_LDFLAGS)lu_lu_example_double_SOURCES =			\	lu/lu_example_double.c			\	lu/dlu.c				\	lu/dlu_pivot.c				\	lu/dlu_kernels.c			\	common/blas.clu_lu_example_double_LDADD =			\	$(STARPU_BLAS_LDFLAGS)lu_lu_implicit_example_float_SOURCES =		\	lu/lu_example_float.c			\	lu/slu_implicit.c			\	lu/slu_implicit_pivot.c			\	lu/slu_kernels.c			\	common/blas.clu_lu_implicit_example_float_LDADD =		\	$(STARPU_BLAS_LDFLAGS)lu_lu_implicit_example_double_SOURCES =		\	lu/lu_example_double.c			\	lu/dlu_implicit.c			\	lu/dlu_implicit_pivot.c			\	lu/dlu_kernels.c			\	common/blas.clu_lu_implicit_example_double_LDADD =		\	$(STARPU_BLAS_LDFLAGS)if MKL_BLAS_LIBlu_lu_example_complex_float_SOURCES =		\	lu/lu_example_complex_float.c		\	lu/clu.c				\	lu/clu_pivot.c				\	lu/clu_kernels.c			\	lu/blas_complex.c			\	common/blas.clu_lu_example_complex_float_LDADD =		\	$(STARPU_BLAS_LDFLAGS)lu_lu_implicit_example_complex_float_SOURCES =	\	lu/lu_example_complex_float.c		\	lu/clu_implicit.c			\	lu/clu_implicit_pivot.c			\	lu/clu_kernels.c			\	lu/blas_complex.c			\	common/blas.clu_lu_implicit_example_complex_float_LDADD =	\	$(STARPU_BLAS_LDFLAGS)lu_lu_example_complex_double_SOURCES =		\	lu/lu_example_complex_double.c		\	lu/zlu.c				\	lu/zlu_pivot.c				\	lu/zlu_kernels.c			\	lu/blas_complex.c			\	common/blas.clu_lu_example_complex_double_LDADD =		\	$(STARPU_BLAS_LDFLAGS)lu_lu_implicit_example_complex_double_SOURCES =	\	lu/lu_example_complex_double.c		\	lu/zlu_implicit.c			\	lu/zlu_implicit_pivot.c			\	lu/zlu_kernels.c			\	lu/blas_complex.c			\	common/blas.clu_lu_implicit_example_complex_double_LDADD =	\	$(STARPU_BLAS_LDFLAGS)endifendif################# Heat example #################if !NO_BLAS_LIBheat_heat_SOURCES =				\	heat/heat.c				\	heat/dw_factolu.c			\	heat/dw_factolu_tag.c			\	heat/dw_factolu_grain.c			\	heat/dw_sparse_cg.c			\	heat/heat_display.c			\	heat/lu_kernels_model.c			\	heat/dw_sparse_cg_kernels.c		\	heat/dw_factolu_kernels.c		\	common/blas.cheat_heat_LDADD =				\	$(STARPU_OPENGL_RENDER_LDFLAGS)		\	$(STARPU_BLAS_LDFLAGS)endif############### CG example ###############if !NO_BLAS_LIBcg_cg_SOURCES =					\	cg/cg.c					\	cg/cg_kernels.c				\	common/blas.cif STARPU_USE_CUDAcg_cg_SOURCES +=				\	cg/cg_dot_kernel.cucg/cg_dot_kernel.o: cg/cg_dot_kernel.cu	$(NVCC) $< -c -o $@ $(NVCCFLAGS) -arch sm_13endifcg_cg_LDADD =					\	$(STARPU_BLAS_LDFLAGS)endif################# SPMD example #################spmd_vector_scal_spmd_SOURCES =			\	spmd/vector_scal_spmd.c################# SpMV example #################spmv_spmv_SOURCES = 				\	spmv/spmv.c				\	spmv/spmv_kernels.cif STARPU_USE_CUDAspmv_spmv_SOURCES +=				\	spmv/spmv_cuda.cuendifif ATLAS_BLAS_LIBspmv_dw_block_spmv_SOURCES =			\	spmv/dw_block_spmv.c			\	spmv/dw_block_spmv_kernels.c		\	spmv/matrix_market/mm_to_bcsr.c		\	spmv/matrix_market/mmio.cspmv_dw_block_spmv_LDADD =			\	$(STARPU_BLAS_LDFLAGS)endif############################ C++ Incrementer example ############################cpp_incrementer_cpp_SOURCES	=	\	cpp/incrementer_cpp.cppif STARPU_USE_CUDAcpp_incrementer_cpp_SOURCES +=	\	incrementer/incrementer_kernels.cuendifif STARPU_USE_OPENCLcpp_incrementer_cpp_SOURCES += \	incrementer/incrementer_kernels_opencl.cendif######################## Incrementer example ########################incrementer_incrementer_SOURCES =	\	incrementer/incrementer.cif STARPU_USE_CUDAincrementer_incrementer_SOURCES +=	\	incrementer/incrementer_kernels.cuendifif STARPU_USE_OPENCLincrementer_incrementer_SOURCES +=	\	incrementer/incrementer_kernels_opencl.cnobase_STARPU_OPENCL_DATA_DATA += \	incrementer/incrementer_kernels_opencl_kernel.clendif################### Binary example ###################binary_binary_SOURCES =	\	binary/binary.cif STARPU_USE_OPENCLbinary_binary_SOURCES +=	\	incrementer/incrementer_kernels_opencl.cendif###################### interface example ######################interface_complex_SOURCES	=	\	interface/complex.c		\	interface/complex_interface.cif STARPU_USE_CUDAinterface_complex_SOURCES	+=	\	interface/complex_kernels.cuinterface/complex_kernels.o: interface/complex_kernels.cu	$(NVCC) $< -c -o $@ $(NVCCFLAGS) -arch sm_13endifif STARPU_USE_OPENCLinterface_complex_SOURCES +=\	interface/complex_kernels_opencl.cnobase_STARPU_OPENCL_DATA_DATA += \	interface/complex_kernels.clendif####################### matVecMult example #######################if STARPU_USE_OPENCLnobase_STARPU_OPENCL_DATA_DATA += \	matvecmult/matvecmult_kernel.clendif######################## dot_product example ########################reductions_dot_product_SOURCES =		\	reductions/dot_product.cif STARPU_USE_CUDAreductions_dot_product_SOURCES +=		\	reductions/dot_product_kernels.cureductions/dot_product_kernels.o: reductions/dot_product_kernels.cu	$(NVCC) $< -c -o $@ $(NVCCFLAGS) -arch sm_13endifif STARPU_USE_OPENCLnobase_STARPU_OPENCL_DATA_DATA += \	reductions/dot_product_opencl_kernels.clendif################### Mandelbrot Set ###################mandelbrot_mandelbrot_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)if HAVE_X11mandelbrot_mandelbrot_CPPFLAGS += $(X_CFLAGS)mandelbrot_mandelbrot_LDADD = $(X_PRE_LIBS) $(X_LIBS) $(X_EXTRA_LIBS) -lX11endif################# Top Examples #################examplebin_PROGRAMS +=				\	top/hello_world_toptop_hello_world_top_SOURCES =			\	top/hello_world_top.c####### Pi #######check_PROGRAMS +=				\	pi/pi					\	pi/pi_reduxexamplebin_PROGRAMS +=				\	pi/pi					\	pi/pi_reduxpi_pi_SOURCES =					\	pi/pi.c					\	pi/SobolQRNG/sobol_gold.c		\	pi/SobolQRNG/sobol_primitives.cif STARPU_USE_CUDApi_pi_SOURCES +=				\	pi/pi_kernel.cu				\	pi/SobolQRNG/sobol_gpu.cuendifpi_pi_redux_SOURCES =				\	pi/pi_redux.cif STARPU_USE_CUDApi_pi_redux_SOURCES +=				\	pi/pi_redux_kernel.cupi_pi_redux_LDADD =				\	$(STARPU_CURAND_LDFLAGS)endif############################ OpenGL interoperability ############################if HAVE_OPENGLexamplebin_PROGRAMS +=				\	gl_interop/gl_interop			\	gl_interop/gl_interop_idlegl_interop_gl_interop_SOURCES =			\	gl_interop/gl_interop.cgl_interop_gl_interop_LDADD =			\	$(STARPU_OPENGL_RENDER_LDFLAGS)gl_interop_gl_interop_idle_SOURCES =		\	gl_interop/gl_interop_idle.cgl_interop_gl_interop_idle_LDADD =		\	$(STARPU_OPENGL_RENDER_LDFLAGS)endif##################### pipeline example #####################if !NO_BLAS_LIBpipeline_pipeline_SOURCES	=	\	pipeline/pipeline.c		\	common/blas.cpipeline_pipeline_LDADD =		\	$(STARPU_BLAS_LDFLAGS)endif################### openmp example ###################if !STARPU_HAVE_WINDOWSexamplebin_PROGRAMS +=		\	openmp/vector_scal_ompopenmp_vector_scal_omp_CFLAGS = \	$(AM_CFLAGS) -fopenmpsched_ctx_parallel_code_CFLAGS = \	$(AM_CFLAGS) -fopenmpendifshowcheck:	-cat $(TEST_LOGS) /dev/null	for i in $(SUBDIRS) ; do \		make -C $$i showcheck ; \	done
 |