Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 22 additions & 10 deletions coremark/coremark_run
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ install_test_tools()

execute_coremark()
{
iter=$1
numthreads=$2
touch *.c
touch */*.c
#
Expand All @@ -137,7 +139,7 @@ execute_coremark()

#If we're using PCP, snap a chalk line at the start of the iteration
if [[ $to_use_pcp -eq 1 ]]; then
start_pcp_subset
start_pcp_subset
fi

make -s XCFLAGS="${make_flags}"
Expand All @@ -149,11 +151,21 @@ execute_coremark()
# and log the iteration's result

if [[ $to_use_pcp -eq 1 ]]; then
echo "Send result to PCP archive"
test_iters=`grep "Iterations/" run1.log | cut -d':' -f2 | sed "s/ //g"`
echo ${test_iters}
result2pcp iterations_sec ${test_iters}
stop_pcp_subset
test_iters=`grep "Iterations/" run1.log | cut -d':' -f2 | sed "s/ //g"`
results2pcp_add_value "iteration:${iter}"
results2pcp_add_value "runlog:1"
results2pcp_add_value "numthreads:${numthreads}"
results2pcp_add_value "IterationsPerSec:${test_iters}"
results2pcp_add_value_commit
reset_pcp_om
test_iters=`grep "Iterations/" run2.log | cut -d':' -f2 | sed "s/ //g"`
results2pcp_add_value "iteration:${iter}"
results2pcp_add_value "runlog:2"
results2pcp_add_value "numthreads:${numthreads}"
results2pcp_add_value "IterationsPerSec:${test_iters}"
results2pcp_add_value_commit
reset_pcp_om
stop_pcp_subset
fi

#
Expand Down Expand Up @@ -411,10 +423,10 @@ $curdir/test_tools/package_tool --no_packages $to_no_pkg_install --wrapper_confi

# Get PCP setup if we're using it
if [[ $to_use_pcp -eq 1 ]]; then
source $TOOLS_BIN/pcp/pcp_commands.inc
setup_pcp
pcp_cfg=$TOOLS_BIN/pcp/default.cfg
pcpdir=/tmp/pcp_`date "+%Y.%m.%d-%H.%M.%S"`
source $TOOLS_BIN/pcp/pcp_commands.inc
setup_pcp
pcp_cfg=$TOOLS_BIN/pcp/default.cfg
pcpdir=/tmp/pcp_`date "+%Y.%m.%d-%H.%M.%S"`
fi

run_coremark
Expand Down
8 changes: 8 additions & 0 deletions coremark/openmetrics_coremark_reset.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
iteration 0
running 0
numthreads 0
runtime NaN
throughput NaN
latency NaN
runlog NaN
IterationsPerSec NaN
Loading