You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
function usage {
|
|
|
|
echo "$0 [perf output file, chain_function_perf.log or single_function_perf.log or opt_function_perf.log]"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ $# != 1 ] ; then
|
|
|
|
usage
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
|
|
|
|
output=$1
|
|
|
|
|
|
|
|
|
|
|
|
declare project_path="$(
|
|
|
|
cd "$(dirname "$0")/../.."
|
|
|
|
pwd
|
|
|
|
)"
|
|
|
|
echo $project_path
|
|
|
|
path=`pwd`
|
|
|
|
#export SLEDGE_DISABLE_PREEMPTION=true
|
|
|
|
export SLEDGE_CPU_SPEED=2400
|
|
|
|
export SLEDGE_SCHEDULER=LLF
|
|
|
|
export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
|
|
|
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
|
|
|
#export SLEDGE_NWORKERS=1
|
|
|
|
#export SLEDGE_SCHEDULER=EDF
|
|
|
|
export SLEDGE_SANDBOX_PERF_LOG=$path/$output
|
|
|
|
echo $SLEDGE_SANDBOX_PERF_LOG
|
|
|
|
cd $project_path/runtime/bin
|
|
|
|
|
|
|
|
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/graph.json
|
|
|
|
LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_multiple_image_processing_graph.json
|
|
|
|
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_dag_image.json
|
|
|
|
|
|
|
|
|