| 1 |
# Copyright (c) 2014 FFLAS-FFPACK |
| 2 |
# written by JGD <[email protected]> |
| 3 |
# |
| 4 |
# ========LICENCE======== |
| 5 |
# This file is part of the library FFLAS-FFPACK. |
| 6 |
# |
| 7 |
# FFLAS-FFPACK is free software: you can redistribute it and/or modify |
| 8 |
# it under the terms of the GNU Lesser General Public |
| 9 |
# License as published by the Free Software Foundation; either |
| 10 |
# version 2.1 of the License, or (at your option) any later version. |
| 11 |
# |
| 12 |
# This library is distributed in the hope that it will be useful, |
| 13 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 |
# Lesser General Public License for more details. |
| 16 |
# |
| 17 |
# You should have received a copy of the GNU Lesser General Public |
| 18 |
# License along with this library; if not, write to the Free Software |
| 19 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 |
# ========LICENCE======== |
| 21 |
#/ |
| 22 |
|
| 23 |
SUBDIRS = |
| 24 |
benchmarks: $(BENCHMARKS) |
| 25 |
|
| 26 |
AM_CXXFLAGS = $(FFLASFFPACK_CXXFLAGS) $(GIVARO_CFLAGS) $(BLAS_CFLAGS) $(PARFLAGS) $(PRECOMPILE_FLAGS) |
| 27 |
AM_CPPFLAGS = -I$(top_srcdir) |
| 28 |
LDADD = $(GIVARO_LIBS) $(BLAS_LIBS) $(PARLIBS) |
| 29 |
if FFLASFFPACK_PRECOMPILED |
| 30 |
LDADD += $(top_builddir)/fflas-ffpack/interfaces/libs/libfflas.la |
| 31 |
LDADD += $(top_builddir)/fflas-ffpack/interfaces/libs/libffpack.la |
| 32 |
endif |
| 33 |
|
| 34 |
PERFPUBLISHERFILE=benchmarks-report.xml |
| 35 |
|
| 36 |
FFLA_BENCH = benchmark-fgemm benchmark-fgemm-rns benchmark-wino benchmark-ftrsm benchmark-fgesv benchmark-ftrsv benchmark-ftrtri benchmark-inverse benchmark-fsytrf benchmark-fsyrk benchmark-lqup benchmark-fsyr2k benchmark-pluq benchmark-charpoly benchmark-charpoly-mp benchmark-fgemm-mp benchmark-fgemv-mp benchmark-ftrsm-mp benchmark-lqup-mp benchmark-checkers benchmark-fadd-lvl2 benchmark-fdot benchmark-fgemv benchmark-quasisep benchmark-storage-transpose |
| 37 |
|
| 38 |
BLAS_BENCH = benchmark-sgemm$(EXEEXT) benchmark-dgemm benchmark-dtrsm |
| 39 |
LAPA_BENCH = benchmark-dtrtri benchmark-dgetri benchmark-dgetrf benchmark-dsytrf |
| 40 |
|
| 41 |
|
| 42 |
if FFLASFFPACK_HAVE_LAPACK |
| 43 |
USE_LAPACK_BENCH = $(LAPA_BENCH) |
| 44 |
benchmark_dtrtri_SOURCES = benchmark-dtrtri.C |
| 45 |
benchmark_dgetri_SOURCES = benchmark-dgetri.C |
| 46 |
benchmark_dgetrf_SOURCES = benchmark-dgetrf.C |
| 47 |
benchmark_dsytrf_SOURCES = benchmark-dsytrf.C |
| 48 |
endif |
| 49 |
|
| 50 |
BENCHMARKS = \ |
| 51 |
$(FFLA_BENCH) \ |
| 52 |
$(BLAS_BENCH) \ |
| 53 |
$(USE_LAPACK_BENCH) \ |
| 54 |
$(USE_OMP_BENCH) |
| 55 |
|
| 56 |
CLEANFILES = $(BENCHMARKS) $(PERFPUBLISHERFILE) |
| 57 |
|
| 58 |
EXTRA_PROGRAMS = $(BENCHMARKS) |
| 59 |
|
| 60 |
benchmark_sgemm_SOURCES = benchmark-dgemm.C |
| 61 |
benchmark_dgemm_SOURCES = benchmark-dgemm.C |
| 62 |
benchmark_dtrsm_SOURCES = benchmark-dtrsm.C |
| 63 |
|
| 64 |
benchmark_fgemm_SOURCES = benchmark-fgemm.C |
| 65 |
benchmark_fgemm_mp_SOURCES = benchmark-fgemm-mp.C |
| 66 |
benchmark_fgemm_rns_SOURCES = benchmark-fgemm-rns.C |
| 67 |
benchmark_fgemv_mp_SOURCES = benchmark-fgemv-mp.C |
| 68 |
benchmark_wino_SOURCES = benchmark-wino.C |
| 69 |
benchmark_ftrsm_SOURCES = benchmark-ftrsm.C |
| 70 |
benchmark_fgesv_SOURCES = benchmark-fgesv.C |
| 71 |
benchmark_ftrsm_mp_SOURCES = benchmark-ftrsm-mp.C |
| 72 |
benchmark_ftrsv_SOURCES = benchmark-ftrsv.C |
| 73 |
benchmark_ftrtri_SOURCES = benchmark-ftrtri.C |
| 74 |
benchmark_inverse_SOURCES = benchmark-inverse.C |
| 75 |
benchmark_fsytrf_SOURCES = benchmark-fsytrf.C |
| 76 |
benchmark_fsyr2k_SOURCES = benchmark-fsyr2k.C |
| 77 |
benchmark_fsyrk_SOURCES = benchmark-fsyrk.C |
| 78 |
benchmark_quasisep_SOURCES = benchmark-quasisep.C |
| 79 |
benchmark_charpoly_SOURCES = benchmark-charpoly.C |
| 80 |
benchmark_charpoly_mp_SOURCES = benchmark-charpoly-mp.C |
| 81 |
benchmark_lqup_SOURCES = benchmark-lqup.C |
| 82 |
benchmark_lqup_mp_SOURCES = benchmark-lqup-mp.C |
| 83 |
benchmark_pluq_SOURCES = benchmark-pluq.C |
| 84 |
benchmark_checkers_SOURCES = benchmark-checkers.C |
| 85 |
benchmark_fadd_lvl2_SOURCES = benchmark-fadd-lvl2.C |
| 86 |
benchmark_fdot_SOURCES = benchmark-fdot.C |
| 87 |
benchmark_fgemv_SOURCES = benchmark-fgemv.C |
| 88 |
benchmark_storage_transpose_SOURCES = benchmark-storage-transpose.C |
| 89 |
|
| 90 |
benchmark_sgemm_CXXFLAGS = $(AM_CXXFLAGS) -D__SGEMM__ |
| 91 |
|
| 92 |
# Perfpublisher script interaction - AB 2014/11/17 |
| 93 |
perfpublisher: |
| 94 |
+./perfpublisher.sh "$(PERFPUBLISHERFILE)" "$(BENCHMARKS)" "$(CXX)" |
| 95 |
mv $(PERFPUBLISHERFILE) .. |
| 96 |
make clean |
| 97 |
mv ../$(PERFPUBLISHERFILE) . |
| 98 |
|
| 99 |
# for compilation of new benchmarks |
| 100 |
FFLASFFPACK_BIN=@bindir@ |
| 101 |
|
| 102 |
define other_compilation |
| 103 |
$(CXX) $(CXXFLAGS) $(AM_CXXFLAGS) ${INCLUDES} $(AM_CPPFLAGS) $*.C -o $@ $(LDFLAGS) $(LDADD) $(LOADLIBES) $(LIBS) |
| 104 |
endef |
| 105 |
|
| 106 |
%:%.C |
| 107 |
$(other_compilation) |
| 108 |
|
| 109 |
%:%.cpp |
| 110 |
$(other_compilation) |