Skip to content

Commit

Permalink
Merge pull request #32 from redhat-performance/fix_field_index
Browse files Browse the repository at this point in the history
Fix field index
  • Loading branch information
dvalinrh authored Sep 26, 2023
2 parents 7b5aae9 + c76b4d3 commit 5454697
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion streams/streams_extra/run_stream
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ for sockets_add in 1 `seq 2 1 ${numa_nodes}`
do
worker=`echo ${numb_threads}*${sockets_add} | bc`
export OMP_NUM_THREADS=$worker
for iteration in $(seq 1 2 ${iterations})
for iteration in $(seq 1 1 ${iterations})
do
for stream_size in $streams_exec
do
Expand Down
4 changes: 2 additions & 2 deletions streams/streams_run
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ process_results()
field_index=1
while IFS= read -r line
do
current_socket=`echo $line | cut -d':' -f4`
current_socket=`echo $line | cut -d':' -f3`
if [ $number_sockets -eq 0 ]; then
number_sockets=$current_socket
else
Expand Down Expand Up @@ -174,7 +174,7 @@ retrieve_line()
items=0
calc_line=""

info=`grep "${search_for}" ${file}* | tr -s " " | sed "s/ /:/g" | cut -d: -f 3`
info=`grep "${search_for}" ${file}* | tr -s " " | sed "s/ /:/g" | cut -d: -f 4`

for i in $info; do
if [ $items -eq 0 ]; then
Expand Down

0 comments on commit 5454697

Please sign in to comment.