|
@@ -0,0 +1,76 @@
|
|
|
+#!/bin/sh -x
|
|
|
+# StarPU --- Runtime system for heterogeneous multicore architectures.
|
|
|
+#
|
|
|
+# Copyright (C) 2018 Federal University of Rio Grande do Sul (UFRGS)
|
|
|
+# Copyright (C) 2017 CNRS
|
|
|
+# Copyright (C) 2017,2018-2020 Université de Bordeaux
|
|
|
+# Copyright (C) 2017 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.
|
|
|
+#
|
|
|
+# Test parsing of FxT traces
|
|
|
+
|
|
|
+set -e
|
|
|
+
|
|
|
+# XXX: Also see tests/overlap/overlap.sh
|
|
|
+
|
|
|
+PREFIX=$(dirname $0)
|
|
|
+
|
|
|
+if [ -n "$STARPU_MIC_SINK_PROGRAM_PATH" ] ; then
|
|
|
+ STARPU_MIC_SINK_PROGRAM_NAME=$STARPU_MIC_SINK_PROGRAM_PATH/sgemm
|
|
|
+ # in case libtool got into play
|
|
|
+ [ -x "$STARPU_MIC_SINK_PROGRAM_PATH/.libs/sgemm" ] && STARPU_MIC_SINK_PROGRAM_NAME=$STARPU_MIC_SINK_PROGRAM_PATH/.libs/sgemm
|
|
|
+fi
|
|
|
+
|
|
|
+STARPU_FXT_PREFIX=$PREFIX/ $PREFIX/sgemm
|
|
|
+[ ! -x $PREFIX/../../tools/starpu_perfmodel_display ] || $STARPU_LAUNCH $PREFIX/../../tools/starpu_perfmodel_display -s starpu_sgemm_gemm
|
|
|
+[ ! -x $PREFIX/../../tools/starpu_perfmodel_display ] || $STARPU_LAUNCH $PREFIX/../../tools/starpu_perfmodel_display -x -s starpu_sgemm_gemm
|
|
|
+[ ! -x $PREFIX/../../tools/starpu_perfmodel_recdump ] || $STARPU_LAUNCH $PREFIX/../../tools/starpu_perfmodel_recdump -o perfs.rec
|
|
|
+[ -f perfs.rec ]
|
|
|
+if [ -x $PREFIX/../../tools/starpu_fxt_tool ];
|
|
|
+then
|
|
|
+ $STARPU_LAUNCH $PREFIX/../../tools/starpu_perfmodel_plot -s starpu_sgemm_gemm -i $PREFIX/prof_file_${USER}_0
|
|
|
+ [ -f starpu_starpu_sgemm_gemm.gp -a -f starpu_starpu_sgemm_gemm.data -a -f starpu_starpu_sgemm_gemm.data ]
|
|
|
+
|
|
|
+ # Generate paje, dag, data, etc.
|
|
|
+ $STARPU_LAUNCH $PREFIX/../../tools/starpu_fxt_tool -memory-states -label-deps -i $PREFIX/prof_file_${USER}_0
|
|
|
+
|
|
|
+ $PREFIX/../../tools/starpu_paje_sort paje.trace
|
|
|
+ ! type pj_dump || pj_dump -e 0 < paje.trace
|
|
|
+
|
|
|
+ $PREFIX/../../tools/starpu_codelet_profile distrib.data starpu_sgemm_gemm
|
|
|
+ [ -f distrib.data.gp -a \( -f distrib.data.0 -o -f distrib.data.1 -o -f distrib.data.2 -o -f distrib.data.3 -o -f distrib.data.4 \) ]
|
|
|
+
|
|
|
+ $STARPU_LAUNCH $PREFIX/../../tools/starpu_fxt_data_trace $PREFIX/prof_file_${USER}_0 starpu_sgemm_gemm
|
|
|
+ [ -f data_trace.gp ]
|
|
|
+
|
|
|
+ $STARPU_LAUNCH $PREFIX/../../tools/starpu_fxt_stats -i $PREFIX/prof_file_${USER}_0
|
|
|
+ $STARPU_LAUNCH $PREFIX/../../tools/starpu_tasks_rec_complete tasks.rec tasks2.rec
|
|
|
+ python $PREFIX/../../tools/starpu_trace_state_stats.py trace.rec
|
|
|
+ $PREFIX/../../tools/starpu_workers_activity activity.data
|
|
|
+ [ -f activity.eps ]
|
|
|
+
|
|
|
+ # needs some R packages
|
|
|
+ $PREFIX/../../tools/starpu_paje_draw_histogram paje.trace || true
|
|
|
+ $PREFIX/../../tools/starpu_paje_state_stats paje.trace || true
|
|
|
+ $PREFIX/../../tools/starpu_paje_summary paje.trace || true
|
|
|
+ $PREFIX/../../tools/starpu_codelet_histo_profile distrib.data || true
|
|
|
+ [ -f distrib.data.starpu_sgemm_gemm.0.a3d3725e.1024.pdf ] || true
|
|
|
+
|
|
|
+ if [ -x $PREFIX/../../tools/starpu_replay ]; then
|
|
|
+ $STARPU_LAUNCH $PREFIX/../../tools/starpu_replay tasks.rec
|
|
|
+ fi
|
|
|
+
|
|
|
+ [ ! -x $PREFIX/../../tools/starpu_perfmodel_recdump ] || $STARPU_LAUNCH $PREFIX/../../tools/starpu_perfmodel_recdump tasks.rec -o perfs2.rec
|
|
|
+ [ -f perfs2.rec ]
|
|
|
+fi
|
|
|
+
|