|
@@ -1,7 +1,7 @@
|
|
|
# StarPU --- Runtime system for heterogeneous multicore architectures.
|
|
# StarPU --- Runtime system for heterogeneous multicore architectures.
|
|
|
#
|
|
#
|
|
|
-# Copyright (C) 2009, 2010 Université de Bordeaux 1
|
|
|
|
|
-# Copyright (C) 2010 Centre National de la Recherche Scientifique
|
|
|
|
|
|
|
+# Copyright (C) 2009, 2010-2011 Université de Bordeaux 1
|
|
|
|
|
+# Copyright (C) 2010, 2011 Centre National de la Recherche Scientifique
|
|
|
#
|
|
#
|
|
|
# StarPU is free software; you can redistribute it and/or modify
|
|
# 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
|
|
# it under the terms of the GNU Lesser General Public License as published by
|
|
@@ -14,24 +14,23 @@
|
|
|
#
|
|
#
|
|
|
# See the GNU Lesser General Public License in COPYING.LGPL for more details.
|
|
# See the GNU Lesser General Public License in COPYING.LGPL for more details.
|
|
|
|
|
|
|
|
-AUTOMAKE_OPTIONS = subdir-objects
|
|
|
|
|
-
|
|
|
|
|
-AM_CFLAGS = $(HWLOC_CFLAGS) -Wall
|
|
|
|
|
-LIBS = $(top_builddir)/src/libstarpu.la $(HWLOC_LIBS) @LIBS@
|
|
|
|
|
|
|
+AM_CFLAGS = $(MAGMA_CFLAGS) $(HWLOC_CFLAGS) -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS)
|
|
|
|
|
+LIBS = $(top_builddir)/src/libstarpu.la $(MAGMA_LIBS) $(HWLOC_LIBS) @LIBS@
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/examples/ -I$(top_builddir)/include
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/examples/ -I$(top_builddir)/include
|
|
|
|
|
+AM_LDFLAGS = $(STARPU_CUDA_LDFLAGS) $(STARPU_OPENCL_LDFLAGS)
|
|
|
|
|
|
|
|
-TESTS = $(check_PROGRAMS)
|
|
|
|
|
|
|
+SUBDIRS = stencil
|
|
|
|
|
|
|
|
-SUBDIRS = stencil stencil_ctx
|
|
|
|
|
|
|
+if STARPU_USE_SOCL
|
|
|
|
|
+SUBDIRS += socl
|
|
|
|
|
+endif
|
|
|
|
|
|
|
|
if STARPU_HAVE_FFTW
|
|
if STARPU_HAVE_FFTW
|
|
|
-if STARPU_HAVE_FFTWL
|
|
|
|
|
|
|
+if STARPU_HAVE_FFTWF
|
|
|
SUBDIRS += starpufft
|
|
SUBDIRS += starpufft
|
|
|
endif
|
|
endif
|
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
-check_PROGRAMS =
|
|
|
|
|
-
|
|
|
|
|
BUILT_SOURCES =
|
|
BUILT_SOURCES =
|
|
|
|
|
|
|
|
if STARPU_USE_OPENCL
|
|
if STARPU_USE_OPENCL
|
|
@@ -40,7 +39,9 @@ endif
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
EXTRA_DIST = \
|
|
|
basic_examples/vector_scal_opencl_kernel.cl \
|
|
basic_examples/vector_scal_opencl_kernel.cl \
|
|
|
|
|
+ common/blas_model.c \
|
|
|
spmv/spmv_cuda.cu \
|
|
spmv/spmv_cuda.cu \
|
|
|
|
|
+ spmv/spmv_opencl.cl \
|
|
|
gordon/null_kernel_gordon.c \
|
|
gordon/null_kernel_gordon.c \
|
|
|
mult/xgemm.c \
|
|
mult/xgemm.c \
|
|
|
lu/xlu.c \
|
|
lu/xlu.c \
|
|
@@ -54,6 +55,7 @@ EXTRA_DIST = \
|
|
|
basic_examples/variable_kernels_opencl_kernel.cl \
|
|
basic_examples/variable_kernels_opencl_kernel.cl \
|
|
|
matvecmult/matvecmult_kernel.cl \
|
|
matvecmult/matvecmult_kernel.cl \
|
|
|
basic_examples/block_opencl_kernel.cl \
|
|
basic_examples/block_opencl_kernel.cl \
|
|
|
|
|
+ openmp/vector_scal.c \
|
|
|
filters/fblock_opencl_kernel.cl
|
|
filters/fblock_opencl_kernel.cl
|
|
|
|
|
|
|
|
CLEANFILES = \
|
|
CLEANFILES = \
|
|
@@ -64,7 +66,7 @@ CLEANFILES += *.gcno *.gcda *.linkinfo
|
|
|
|
|
|
|
|
if STARPU_USE_CUDA
|
|
if STARPU_USE_CUDA
|
|
|
|
|
|
|
|
-NVCCFLAGS += --compiler-options -fno-strict-aliasing $(HWLOC_CFLAGS) -I$(top_srcdir)/include/ -I$(top_builddir)/include/ -I$(top_srcdir)/examples/ -arch sm_13
|
|
|
|
|
|
|
+NVCCFLAGS += --compiler-options -fno-strict-aliasing -I$(top_srcdir)/include/ -I$(top_builddir)/include/ -I$(top_srcdir)/examples/ $(HWLOC_CFLAGS) -arch sm_13
|
|
|
|
|
|
|
|
.cu.o:
|
|
.cu.o:
|
|
|
$(NVCC) $< -c -o $@ $(NVCCFLAGS)
|
|
$(NVCC) $< -c -o $@ $(NVCCFLAGS)
|
|
@@ -106,11 +108,6 @@ noinst_HEADERS = \
|
|
|
lu/xlu_kernels.h \
|
|
lu/xlu_kernels.h \
|
|
|
lu/float.h \
|
|
lu/float.h \
|
|
|
lu/double.h \
|
|
lu/double.h \
|
|
|
- pi/pi.h \
|
|
|
|
|
- pi/SobolQRNG/sobol.h \
|
|
|
|
|
- pi/SobolQRNG/sobol_gold.h \
|
|
|
|
|
- pi/SobolQRNG/sobol_gpu.h \
|
|
|
|
|
- pi/SobolQRNG/sobol_primitives.h \
|
|
|
|
|
cholesky/cholesky.h \
|
|
cholesky/cholesky.h \
|
|
|
common/blas_model.h \
|
|
common/blas_model.h \
|
|
|
common/blas.h \
|
|
common/blas.h \
|
|
@@ -122,22 +119,134 @@ noinst_HEADERS = \
|
|
|
ppm_downscaler/yuv_downscaler.h \
|
|
ppm_downscaler/yuv_downscaler.h \
|
|
|
spmv/matrix_market/mmio.h \
|
|
spmv/matrix_market/mmio.h \
|
|
|
spmv/matrix_market/mm_to_bcsr.h \
|
|
spmv/matrix_market/mm_to_bcsr.h \
|
|
|
- spmv/dw_spmv.h \
|
|
|
|
|
|
|
+ spmv/spmv.h \
|
|
|
spmv/dw_block_spmv.h
|
|
spmv/dw_block_spmv.h
|
|
|
|
|
|
|
|
|
|
+#####################################
|
|
|
|
|
+# What to install and what to check #
|
|
|
|
|
+#####################################
|
|
|
|
|
|
|
|
-##################
|
|
|
|
|
-# Basic examples #
|
|
|
|
|
-##################
|
|
|
|
|
|
|
+STARPU_EXAMPLES =
|
|
|
|
|
+TESTS = $(STARPU_EXAMPLES)
|
|
|
|
|
+
|
|
|
|
|
+if STARPU_HAVE_WINDOWS
|
|
|
|
|
+check_PROGRAMS = $(STARPU_EXAMPLES)
|
|
|
|
|
+else
|
|
|
|
|
+check_PROGRAMS = $(LOADER) $(STARPU_EXAMPLES)
|
|
|
|
|
+endif
|
|
|
|
|
+
|
|
|
|
|
+if !STARPU_HAVE_WINDOWS
|
|
|
|
|
+## test loader program
|
|
|
|
|
+LOADER = loader
|
|
|
|
|
+LOADER_BIN = $(abs_top_builddir)/examples/$(LOADER)
|
|
|
|
|
+loader_SOURCES = ../tests/loader.c
|
|
|
|
|
+TESTS_ENVIRONMENT = $(LOADER_BIN)
|
|
|
|
|
+endif
|
|
|
|
|
|
|
|
examplebin_PROGRAMS += \
|
|
examplebin_PROGRAMS += \
|
|
|
- basic_examples/hello_world
|
|
|
|
|
|
|
+ basic_examples/hello_world \
|
|
|
|
|
+ basic_examples/vector_scal \
|
|
|
|
|
+ basic_examples/mult \
|
|
|
|
|
+ basic_examples/block \
|
|
|
|
|
+ basic_examples/variable \
|
|
|
|
|
+ filters/fvector \
|
|
|
|
|
+ filters/fblock \
|
|
|
|
|
+ filters/fmatrix \
|
|
|
|
|
+ tag_example/tag_example \
|
|
|
|
|
+ tag_example/tag_example3 \
|
|
|
|
|
+ tag_example/tag_example2 \
|
|
|
|
|
+ tag_example/tag_restartable \
|
|
|
|
|
+ spmv/spmv \
|
|
|
|
|
+ callback/callback \
|
|
|
|
|
+ incrementer/incrementer \
|
|
|
|
|
+ matvecmult/matvecmult \
|
|
|
|
|
+ profiling/profiling \
|
|
|
|
|
+ scheduler/dummy_sched \
|
|
|
|
|
+ reductions/dot_product \
|
|
|
|
|
+ reductions/minmax_reduction \
|
|
|
|
|
+ mandelbrot/mandelbrot \
|
|
|
|
|
+ ppm_downscaler/ppm_downscaler \
|
|
|
|
|
+ ppm_downscaler/yuv_downscaler
|
|
|
|
|
|
|
|
-basic_examples_hello_world_SOURCES = \
|
|
|
|
|
- basic_examples/hello_world.c
|
|
|
|
|
|
|
+if STARPU_HAVE_F77_H
|
|
|
|
|
+examplebin_PROGRAMS += \
|
|
|
|
|
+ basic_examples/vector_scal_fortran
|
|
|
|
|
+endif
|
|
|
|
|
+
|
|
|
|
|
+if !NO_BLAS_LIB
|
|
|
|
|
+examplebin_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
|
|
|
|
|
+endif
|
|
|
|
|
|
|
|
|
|
+if ATLAS_BLAS_LIB
|
|
|
examplebin_PROGRAMS += \
|
|
examplebin_PROGRAMS += \
|
|
|
- basic_examples/vector_scal
|
|
|
|
|
|
|
+ spmv/dw_block_spmv
|
|
|
|
|
+endif
|
|
|
|
|
+
|
|
|
|
|
+STARPU_EXAMPLES += \
|
|
|
|
|
+ basic_examples/hello_world \
|
|
|
|
|
+ basic_examples/vector_scal \
|
|
|
|
|
+ basic_examples/mult \
|
|
|
|
|
+ basic_examples/block \
|
|
|
|
|
+ basic_examples/variable \
|
|
|
|
|
+ filters/fvector \
|
|
|
|
|
+ filters/fblock \
|
|
|
|
|
+ filters/fmatrix \
|
|
|
|
|
+ tag_example/tag_example \
|
|
|
|
|
+ tag_example/tag_example3 \
|
|
|
|
|
+ tag_example/tag_example2 \
|
|
|
|
|
+ tag_example/tag_restartable \
|
|
|
|
|
+ spmv/spmv \
|
|
|
|
|
+ callback/callback \
|
|
|
|
|
+ incrementer/incrementer \
|
|
|
|
|
+ matvecmult/matvecmult \
|
|
|
|
|
+ profiling/profiling \
|
|
|
|
|
+ scheduler/dummy_sched \
|
|
|
|
|
+ reductions/dot_product \
|
|
|
|
|
+ reductions/minmax_reduction
|
|
|
|
|
+
|
|
|
|
|
+if STARPU_HAVE_F77_H
|
|
|
|
|
+STARPU_EXAMPLES += \
|
|
|
|
|
+ basic_examples/vector_scal_fortran
|
|
|
|
|
+endif
|
|
|
|
|
+
|
|
|
|
|
+if !NO_BLAS_LIB
|
|
|
|
|
+STARPU_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
|
|
|
|
|
+endif
|
|
|
|
|
+
|
|
|
|
|
+if ATLAS_BLAS_LIB
|
|
|
|
|
+STARPU_EXAMPLES += \
|
|
|
|
|
+ spmv/dw_block_spmv
|
|
|
|
|
+endif
|
|
|
|
|
+
|
|
|
|
|
+##################
|
|
|
|
|
+# Basic examples #
|
|
|
|
|
+##################
|
|
|
|
|
|
|
|
basic_examples_vector_scal_SOURCES = \
|
|
basic_examples_vector_scal_SOURCES = \
|
|
|
basic_examples/vector_scal.c \
|
|
basic_examples/vector_scal.c \
|
|
@@ -156,9 +265,6 @@ nobase_STARPU_OPENCL_DATA_DATA += \
|
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
if STARPU_HAVE_F77_H
|
|
if STARPU_HAVE_F77_H
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- basic_examples/vector_scal_fortran
|
|
|
|
|
-
|
|
|
|
|
basic_examples_vector_scal_fortran_SOURCES = \
|
|
basic_examples_vector_scal_fortran_SOURCES = \
|
|
|
basic_examples/vector_scal_fortran.F \
|
|
basic_examples/vector_scal_fortran.F \
|
|
|
basic_examples/vector_scal_c.c \
|
|
basic_examples/vector_scal_c.c \
|
|
@@ -167,25 +273,15 @@ basic_examples_vector_scal_fortran_SOURCES = \
|
|
|
if STARPU_USE_CUDA
|
|
if STARPU_USE_CUDA
|
|
|
basic_examples_vector_scal_fortran_SOURCES += \
|
|
basic_examples_vector_scal_fortran_SOURCES += \
|
|
|
basic_examples/vector_scal_cuda.cu
|
|
basic_examples/vector_scal_cuda.cu
|
|
|
|
|
+basic_examples_vector_scal_fortran_LDADD = \
|
|
|
|
|
+ $(STARPU_CUDA_FORTRAN_LDFLAGS)
|
|
|
endif
|
|
endif
|
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- basic_examples/mult
|
|
|
|
|
-
|
|
|
|
|
-basic_examples_mult_SOURCES = \
|
|
|
|
|
- basic_examples/mult.c
|
|
|
|
|
-
|
|
|
|
|
#################
|
|
#################
|
|
|
# block example #
|
|
# block example #
|
|
|
#################
|
|
#################
|
|
|
|
|
|
|
|
-check_PROGRAMS += \
|
|
|
|
|
- basic_examples/block
|
|
|
|
|
-
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- basic_examples/block
|
|
|
|
|
-
|
|
|
|
|
basic_examples_block_SOURCES = \
|
|
basic_examples_block_SOURCES = \
|
|
|
basic_examples/block.c \
|
|
basic_examples/block.c \
|
|
|
basic_examples/block_cpu.c
|
|
basic_examples/block_cpu.c
|
|
@@ -206,12 +302,6 @@ endif
|
|
|
# Variable example #
|
|
# Variable example #
|
|
|
####################
|
|
####################
|
|
|
|
|
|
|
|
-check_PROGRAMS += \
|
|
|
|
|
- basic_examples/variable
|
|
|
|
|
-
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- basic_examples/variable
|
|
|
|
|
-
|
|
|
|
|
basic_examples_variable_SOURCES = \
|
|
basic_examples_variable_SOURCES = \
|
|
|
basic_examples/variable.c \
|
|
basic_examples/variable.c \
|
|
|
basic_examples/variable_kernels_cpu.c
|
|
basic_examples/variable_kernels_cpu.c
|
|
@@ -232,14 +322,6 @@ endif
|
|
|
# Filters #
|
|
# Filters #
|
|
|
###########
|
|
###########
|
|
|
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- filters/fvector \
|
|
|
|
|
- filters/fblock \
|
|
|
|
|
- filters/fmatrix
|
|
|
|
|
-
|
|
|
|
|
-filters_fvector_SOURCES = \
|
|
|
|
|
- filters/fvector.c
|
|
|
|
|
-
|
|
|
|
|
filters_fblock_SOURCES = \
|
|
filters_fblock_SOURCES = \
|
|
|
filters/fblock.c \
|
|
filters/fblock.c \
|
|
|
filters/fblock_cpu.c
|
|
filters/fblock_cpu.c
|
|
@@ -255,69 +337,17 @@ nobase_STARPU_OPENCL_DATA_DATA += \
|
|
|
filters/fblock_opencl_kernel.cl
|
|
filters/fblock_opencl_kernel.cl
|
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
-filters_fmatrix_SOURCES = \
|
|
|
|
|
- filters/fmatrix.c
|
|
|
|
|
-
|
|
|
|
|
-###################
|
|
|
|
|
-# PPM downscaling #
|
|
|
|
|
-###################
|
|
|
|
|
-
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- ppm_downscaler/ppm_downscaler
|
|
|
|
|
-
|
|
|
|
|
-ppm_downscaler_ppm_downscaler_SOURCES = \
|
|
|
|
|
- ppm_downscaler/ppm_downscaler.c
|
|
|
|
|
-
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- ppm_downscaler/yuv_downscaler
|
|
|
|
|
-
|
|
|
|
|
-ppm_downscaler_yuv_downscaler_SOURCES = \
|
|
|
|
|
- ppm_downscaler/yuv_downscaler.c
|
|
|
|
|
-
|
|
|
|
|
-######
|
|
|
|
|
-# Pi #
|
|
|
|
|
-######
|
|
|
|
|
-
|
|
|
|
|
-check_PROGRAMS += \
|
|
|
|
|
- pi/pi_redux
|
|
|
|
|
-
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- pi/pi \
|
|
|
|
|
- pi/pi_redux
|
|
|
|
|
-
|
|
|
|
|
-pi_pi_SOURCES = \
|
|
|
|
|
- pi/pi.c \
|
|
|
|
|
- pi/SobolQRNG/sobol_gold.c \
|
|
|
|
|
- pi/SobolQRNG/sobol_primitives.c
|
|
|
|
|
-
|
|
|
|
|
-if STARPU_USE_CUDA
|
|
|
|
|
-pi_pi_SOURCES += \
|
|
|
|
|
- pi/pi_kernel.cu \
|
|
|
|
|
- pi/SobolQRNG/sobol_gpu.cu
|
|
|
|
|
-endif
|
|
|
|
|
-
|
|
|
|
|
-pi_pi_redux_SOURCES = \
|
|
|
|
|
- pi/pi_redux.c
|
|
|
|
|
-
|
|
|
|
|
-if STARPU_USE_CUDA
|
|
|
|
|
-pi_pi_redux_SOURCES += \
|
|
|
|
|
- pi/pi_redux_kernel.cu
|
|
|
|
|
-endif
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
################
|
|
################
|
|
|
# AXPY example #
|
|
# AXPY example #
|
|
|
################
|
|
################
|
|
|
|
|
|
|
|
if !NO_BLAS_LIB
|
|
if !NO_BLAS_LIB
|
|
|
-
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- axpy/axpy
|
|
|
|
|
-
|
|
|
|
|
axpy_axpy_SOURCES = \
|
|
axpy_axpy_SOURCES = \
|
|
|
axpy/axpy.c \
|
|
axpy/axpy.c \
|
|
|
common/blas.c
|
|
common/blas.c
|
|
|
|
|
|
|
|
|
|
+axpy_axpy_LDADD = \
|
|
|
|
|
+ $(STARPU_BLAS_LDFLAGS)
|
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
################
|
|
################
|
|
@@ -326,18 +356,20 @@ endif
|
|
|
|
|
|
|
|
if !NO_BLAS_LIB
|
|
if !NO_BLAS_LIB
|
|
|
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- mult/sgemm \
|
|
|
|
|
- mult/dgemm
|
|
|
|
|
-
|
|
|
|
|
mult_sgemm_SOURCES = \
|
|
mult_sgemm_SOURCES = \
|
|
|
mult/sgemm.c \
|
|
mult/sgemm.c \
|
|
|
common/blas.c
|
|
common/blas.c
|
|
|
|
|
|
|
|
|
|
+mult_sgemm_LDADD = \
|
|
|
|
|
+ $(STARPU_BLAS_LDFLAGS)
|
|
|
|
|
+
|
|
|
mult_dgemm_SOURCES = \
|
|
mult_dgemm_SOURCES = \
|
|
|
mult/dgemm.c \
|
|
mult/dgemm.c \
|
|
|
common/blas.c
|
|
common/blas.c
|
|
|
|
|
|
|
|
|
|
+mult_dgemm_LDADD = \
|
|
|
|
|
+ $(STARPU_BLAS_LDFLAGS)
|
|
|
|
|
+
|
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
####################
|
|
####################
|
|
@@ -346,36 +378,42 @@ endif
|
|
|
|
|
|
|
|
if !NO_BLAS_LIB
|
|
if !NO_BLAS_LIB
|
|
|
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- cholesky/cholesky_tag \
|
|
|
|
|
- cholesky/cholesky_tile_tag \
|
|
|
|
|
- cholesky/cholesky_grain_tag \
|
|
|
|
|
- cholesky/cholesky_implicit
|
|
|
|
|
-
|
|
|
|
|
cholesky_cholesky_tag_SOURCES = \
|
|
cholesky_cholesky_tag_SOURCES = \
|
|
|
cholesky/cholesky_tag.c \
|
|
cholesky/cholesky_tag.c \
|
|
|
cholesky/cholesky_models.c \
|
|
cholesky/cholesky_models.c \
|
|
|
cholesky/cholesky_kernels.c \
|
|
cholesky/cholesky_kernels.c \
|
|
|
common/blas.c
|
|
common/blas.c
|
|
|
|
|
|
|
|
|
|
+cholesky_cholesky_tag_LDADD = \
|
|
|
|
|
+ $(STARPU_BLAS_LDFLAGS)
|
|
|
|
|
+
|
|
|
cholesky_cholesky_tile_tag_SOURCES = \
|
|
cholesky_cholesky_tile_tag_SOURCES = \
|
|
|
cholesky/cholesky_tile_tag.c \
|
|
cholesky/cholesky_tile_tag.c \
|
|
|
cholesky/cholesky_models.c \
|
|
cholesky/cholesky_models.c \
|
|
|
cholesky/cholesky_kernels.c \
|
|
cholesky/cholesky_kernels.c \
|
|
|
common/blas.c
|
|
common/blas.c
|
|
|
|
|
|
|
|
|
|
+cholesky_cholesky_tile_tag_LDADD = \
|
|
|
|
|
+ $(STARPU_BLAS_LDFLAGS)
|
|
|
|
|
+
|
|
|
cholesky_cholesky_grain_tag_SOURCES = \
|
|
cholesky_cholesky_grain_tag_SOURCES = \
|
|
|
cholesky/cholesky_grain_tag.c \
|
|
cholesky/cholesky_grain_tag.c \
|
|
|
cholesky/cholesky_models.c \
|
|
cholesky/cholesky_models.c \
|
|
|
cholesky/cholesky_kernels.c \
|
|
cholesky/cholesky_kernels.c \
|
|
|
common/blas.c
|
|
common/blas.c
|
|
|
|
|
|
|
|
|
|
+cholesky_cholesky_grain_tag_LDADD = \
|
|
|
|
|
+ $(STARPU_BLAS_LDFLAGS)
|
|
|
|
|
+
|
|
|
cholesky_cholesky_implicit_SOURCES = \
|
|
cholesky_cholesky_implicit_SOURCES = \
|
|
|
cholesky/cholesky_implicit.c \
|
|
cholesky/cholesky_implicit.c \
|
|
|
cholesky/cholesky_models.c \
|
|
cholesky/cholesky_models.c \
|
|
|
cholesky/cholesky_kernels.c \
|
|
cholesky/cholesky_kernels.c \
|
|
|
common/blas.c
|
|
common/blas.c
|
|
|
|
|
|
|
|
|
|
+cholesky_cholesky_implicit_LDADD = \
|
|
|
|
|
+ $(STARPU_BLAS_LDFLAGS)
|
|
|
|
|
+
|
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
##############
|
|
##############
|
|
@@ -384,14 +422,6 @@ endif
|
|
|
|
|
|
|
|
if !NO_BLAS_LIB
|
|
if !NO_BLAS_LIB
|
|
|
|
|
|
|
|
-check_PROGRAMS += \
|
|
|
|
|
- lu/lu_example_float \
|
|
|
|
|
- lu/lu_implicit_example_float
|
|
|
|
|
-
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- lu/lu_example_float \
|
|
|
|
|
- lu/lu_example_double
|
|
|
|
|
-
|
|
|
|
|
lu_lu_example_float_SOURCES = \
|
|
lu_lu_example_float_SOURCES = \
|
|
|
lu/lu_example_float.c \
|
|
lu/lu_example_float.c \
|
|
|
lu/slu.c \
|
|
lu/slu.c \
|
|
@@ -399,6 +429,9 @@ lu_lu_example_float_SOURCES = \
|
|
|
lu/slu_kernels.c \
|
|
lu/slu_kernels.c \
|
|
|
common/blas.c
|
|
common/blas.c
|
|
|
|
|
|
|
|
|
|
+lu_lu_example_float_LDADD = \
|
|
|
|
|
+ $(STARPU_BLAS_LDFLAGS)
|
|
|
|
|
+
|
|
|
lu_lu_example_double_SOURCES = \
|
|
lu_lu_example_double_SOURCES = \
|
|
|
lu/lu_example_double.c \
|
|
lu/lu_example_double.c \
|
|
|
lu/dlu.c \
|
|
lu/dlu.c \
|
|
@@ -406,9 +439,8 @@ lu_lu_example_double_SOURCES = \
|
|
|
lu/dlu_kernels.c \
|
|
lu/dlu_kernels.c \
|
|
|
common/blas.c
|
|
common/blas.c
|
|
|
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- lu/lu_implicit_example_float \
|
|
|
|
|
- lu/lu_implicit_example_double
|
|
|
|
|
|
|
+lu_lu_example_double_LDADD = \
|
|
|
|
|
+ $(STARPU_BLAS_LDFLAGS)
|
|
|
|
|
|
|
|
lu_lu_implicit_example_float_SOURCES = \
|
|
lu_lu_implicit_example_float_SOURCES = \
|
|
|
lu/lu_example_float.c \
|
|
lu/lu_example_float.c \
|
|
@@ -417,6 +449,9 @@ lu_lu_implicit_example_float_SOURCES = \
|
|
|
lu/slu_kernels.c \
|
|
lu/slu_kernels.c \
|
|
|
common/blas.c
|
|
common/blas.c
|
|
|
|
|
|
|
|
|
|
+lu_lu_implicit_example_float_LDADD = \
|
|
|
|
|
+ $(STARPU_BLAS_LDFLAGS)
|
|
|
|
|
+
|
|
|
lu_lu_implicit_example_double_SOURCES = \
|
|
lu_lu_implicit_example_double_SOURCES = \
|
|
|
lu/lu_example_double.c \
|
|
lu/lu_example_double.c \
|
|
|
lu/dlu_implicit.c \
|
|
lu/dlu_implicit.c \
|
|
@@ -424,6 +459,8 @@ lu_lu_implicit_example_double_SOURCES = \
|
|
|
lu/dlu_kernels.c \
|
|
lu/dlu_kernels.c \
|
|
|
common/blas.c
|
|
common/blas.c
|
|
|
|
|
|
|
|
|
|
+lu_lu_implicit_example_double_LDADD = \
|
|
|
|
|
+ $(STARPU_BLAS_LDFLAGS)
|
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
###########################
|
|
###########################
|
|
@@ -448,8 +485,6 @@ endif
|
|
|
|
|
|
|
|
if !NO_BLAS_LIB
|
|
if !NO_BLAS_LIB
|
|
|
|
|
|
|
|
-examplebin_PROGRAMS += heat/heat
|
|
|
|
|
-
|
|
|
|
|
heat_heat_SOURCES = \
|
|
heat_heat_SOURCES = \
|
|
|
heat/heat.c \
|
|
heat/heat.c \
|
|
|
heat/dw_factolu.c \
|
|
heat/dw_factolu.c \
|
|
@@ -462,6 +497,10 @@ heat_heat_SOURCES = \
|
|
|
heat/dw_factolu_kernels.c \
|
|
heat/dw_factolu_kernels.c \
|
|
|
common/blas.c
|
|
common/blas.c
|
|
|
|
|
|
|
|
|
|
+heat_heat_LDADD = \
|
|
|
|
|
+ $(STARPU_OPENGL_RENDER_LDFLAGS) \
|
|
|
|
|
+ $(STARPU_BLAS_LDFLAGS)
|
|
|
|
|
+
|
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
##############
|
|
##############
|
|
@@ -470,8 +509,6 @@ endif
|
|
|
|
|
|
|
|
if !NO_BLAS_LIB
|
|
if !NO_BLAS_LIB
|
|
|
|
|
|
|
|
-examplebin_PROGRAMS += cg/cg
|
|
|
|
|
-
|
|
|
|
|
cg_cg_SOURCES = \
|
|
cg_cg_SOURCES = \
|
|
|
cg/cg.c \
|
|
cg/cg.c \
|
|
|
cg/cg_kernels.c \
|
|
cg/cg_kernels.c \
|
|
@@ -482,62 +519,33 @@ cg_cg_SOURCES += \
|
|
|
cg/cg_dot_kernel.cu
|
|
cg/cg_dot_kernel.cu
|
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
-endif
|
|
|
|
|
-
|
|
|
|
|
|
|
+cg_cg_LDADD = \
|
|
|
|
|
+ $(STARPU_BLAS_LDFLAGS)
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-################
|
|
|
|
|
-# Tag examples #
|
|
|
|
|
-################
|
|
|
|
|
-
|
|
|
|
|
-check_PROGRAMS += \
|
|
|
|
|
- tag_example/tag_example \
|
|
|
|
|
- tag_example/tag_example3 \
|
|
|
|
|
- tag_example/tag_example2 \
|
|
|
|
|
- tag_example/tag_restartable
|
|
|
|
|
-
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- tag_example/tag_example \
|
|
|
|
|
- tag_example/tag_example3 \
|
|
|
|
|
- tag_example/tag_example2 \
|
|
|
|
|
- tag_example/tag_restartable
|
|
|
|
|
-
|
|
|
|
|
-tag_example_tag_example_SOURCES = \
|
|
|
|
|
- tag_example/tag_example.c
|
|
|
|
|
-
|
|
|
|
|
-tag_example_tag_example2_SOURCES = \
|
|
|
|
|
- tag_example/tag_example2.c
|
|
|
|
|
-
|
|
|
|
|
-tag_example_tag_example3_SOURCES = \
|
|
|
|
|
- tag_example/tag_example3.c
|
|
|
|
|
-
|
|
|
|
|
-tag_example_tag_restartable_SOURCES = \
|
|
|
|
|
- tag_example/tag_restartable.c
|
|
|
|
|
|
|
+endif
|
|
|
|
|
|
|
|
################
|
|
################
|
|
|
# SpMV example #
|
|
# SpMV example #
|
|
|
################
|
|
################
|
|
|
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- spmv/dw_spmv
|
|
|
|
|
-
|
|
|
|
|
-spmv_dw_spmv_SOURCES = \
|
|
|
|
|
- spmv/dw_spmv.c
|
|
|
|
|
|
|
+spmv_spmv_SOURCES = \
|
|
|
|
|
+ spmv/spmv.c \
|
|
|
|
|
+ spmv/spmv_kernels.c
|
|
|
|
|
|
|
|
if STARPU_USE_CUDA
|
|
if STARPU_USE_CUDA
|
|
|
-spmv_dw_spmv_SOURCES += \
|
|
|
|
|
|
|
+spmv_spmv_SOURCES += \
|
|
|
spmv/spmv_cuda.cu
|
|
spmv/spmv_cuda.cu
|
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
if ATLAS_BLAS_LIB
|
|
if ATLAS_BLAS_LIB
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- spmv/dw_block_spmv
|
|
|
|
|
-
|
|
|
|
|
spmv_dw_block_spmv_SOURCES = \
|
|
spmv_dw_block_spmv_SOURCES = \
|
|
|
spmv/dw_block_spmv.c \
|
|
spmv/dw_block_spmv.c \
|
|
|
spmv/dw_block_spmv_kernels.c \
|
|
spmv/dw_block_spmv_kernels.c \
|
|
|
spmv/matrix_market/mm_to_bcsr.c \
|
|
spmv/matrix_market/mm_to_bcsr.c \
|
|
|
spmv/matrix_market/mmio.c
|
|
spmv/matrix_market/mmio.c
|
|
|
|
|
+
|
|
|
|
|
+spmv_dw_block_spmv_LDADD = \
|
|
|
|
|
+ $(STARPU_BLAS_LDFLAGS)
|
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
#######################
|
|
#######################
|
|
@@ -545,12 +553,6 @@ endif
|
|
|
#######################
|
|
#######################
|
|
|
|
|
|
|
|
|
|
|
|
|
-check_PROGRAMS += \
|
|
|
|
|
- incrementer/incrementer
|
|
|
|
|
-
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- incrementer/incrementer
|
|
|
|
|
-
|
|
|
|
|
incrementer_incrementer_SOURCES = \
|
|
incrementer_incrementer_SOURCES = \
|
|
|
incrementer/incrementer.c
|
|
incrementer/incrementer.c
|
|
|
if STARPU_USE_CUDA
|
|
if STARPU_USE_CUDA
|
|
@@ -568,78 +570,38 @@ endif
|
|
|
# matVecMult example #
|
|
# matVecMult example #
|
|
|
######################
|
|
######################
|
|
|
|
|
|
|
|
-check_PROGRAMS += \
|
|
|
|
|
- matvecmult/matvecmult
|
|
|
|
|
-
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- matvecmult/matvecmult
|
|
|
|
|
-
|
|
|
|
|
-matvecmult_matvecmult_SOURCES = \
|
|
|
|
|
- matvecmult/matvecmult.c
|
|
|
|
|
-
|
|
|
|
|
if STARPU_USE_OPENCL
|
|
if STARPU_USE_OPENCL
|
|
|
nobase_STARPU_OPENCL_DATA_DATA += \
|
|
nobase_STARPU_OPENCL_DATA_DATA += \
|
|
|
matvecmult/matvecmult_kernel.cl
|
|
matvecmult/matvecmult_kernel.cl
|
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
-#####################
|
|
|
|
|
-# profiling example #
|
|
|
|
|
-#####################
|
|
|
|
|
-
|
|
|
|
|
-check_PROGRAMS += \
|
|
|
|
|
- profiling/profiling
|
|
|
|
|
-
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- profiling/profiling
|
|
|
|
|
-
|
|
|
|
|
-profiling_profiling_SOURCES = \
|
|
|
|
|
- profiling/profiling.c
|
|
|
|
|
-
|
|
|
|
|
-#####################
|
|
|
|
|
-# scheduler example #
|
|
|
|
|
-#####################
|
|
|
|
|
-
|
|
|
|
|
-check_PROGRAMS += \
|
|
|
|
|
- scheduler/dummy_sched
|
|
|
|
|
-
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- scheduler/dummy_sched
|
|
|
|
|
-
|
|
|
|
|
-scheduler_dummy_sched_SOURCES = \
|
|
|
|
|
- scheduler/dummy_sched.c
|
|
|
|
|
-
|
|
|
|
|
#######################
|
|
#######################
|
|
|
# dot_product example #
|
|
# dot_product example #
|
|
|
#######################
|
|
#######################
|
|
|
|
|
|
|
|
-check_PROGRAMS += \
|
|
|
|
|
- reductions/dot_product
|
|
|
|
|
-
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- reductions/dot_product
|
|
|
|
|
-
|
|
|
|
|
reductions_dot_product_SOURCES = \
|
|
reductions_dot_product_SOURCES = \
|
|
|
reductions/dot_product.c
|
|
reductions/dot_product.c
|
|
|
-
|
|
|
|
|
-#####################
|
|
|
|
|
-# Min/Max reduction #
|
|
|
|
|
-#####################
|
|
|
|
|
-
|
|
|
|
|
-check_PROGRAMS += \
|
|
|
|
|
- reductions/minmax_reduction
|
|
|
|
|
-
|
|
|
|
|
-examplebin_PROGRAMS += \
|
|
|
|
|
- reductions/minmax_reduction
|
|
|
|
|
-
|
|
|
|
|
-reductions_minmax_reduction_SOURCES = \
|
|
|
|
|
- reductions/minmax_reduction.c
|
|
|
|
|
|
|
+if STARPU_USE_CUDA
|
|
|
|
|
+reductions_dot_product_SOURCES += \
|
|
|
|
|
+ reductions/dot_product_kernels.cu
|
|
|
|
|
+endif
|
|
|
|
|
|
|
|
##################
|
|
##################
|
|
|
# Mandelbrot Set #
|
|
# Mandelbrot Set #
|
|
|
##################
|
|
##################
|
|
|
|
|
|
|
|
|
|
+mandelbrot_mandelbrot_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
|
|
|
|
|
+if HAVE_X11
|
|
|
|
|
+mandelbrot_mandelbrot_CPPFLAGS += $(X_CFLAGS)
|
|
|
|
|
+mandelbrot_mandelbrot_LDADD = $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
|
|
|
|
|
+endif
|
|
|
|
|
+
|
|
|
|
|
+################
|
|
|
|
|
+# Top Examples #
|
|
|
|
|
+################
|
|
|
|
|
+
|
|
|
examplebin_PROGRAMS += \
|
|
examplebin_PROGRAMS += \
|
|
|
- mandelbrot/mandelbrot
|
|
|
|
|
|
|
+ top/hello_world_top
|
|
|
|
|
|
|
|
-mandelbrot_mandelbrot_SOURCES = \
|
|
|
|
|
- mandelbrot/mandelbrot.c
|
|
|
|
|
|
|
+top_hello_world_top_SOURCES = \
|
|
|
|
|
+ top/hello_world_top.c
|