fix reading of the input counters line without end-of-line symboll
Change-Id: Idfa9c18d08af8308837124391885f35213c8a7e2
Este cometimento está contido em:
+2
-1
@@ -1,3 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# Copyright (c) 2018 Advanced Micro Devices, Inc. All rights reserved.
|
||||
#
|
||||
@@ -20,7 +22,6 @@
|
||||
# THE SOFTWARE.
|
||||
################################################################################
|
||||
|
||||
#!/bin/sh
|
||||
time_stamp=`date +%y%m%d_%H%M%S`
|
||||
BIN_DIR=`dirname $0`
|
||||
BIN_DIR=`cd $BIN_DIR; pwd`
|
||||
|
||||
+3
-2
@@ -1,3 +1,5 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
################################################################################
|
||||
# Copyright (c) 2018 Advanced Micro Devices, Inc. All rights reserved.
|
||||
#
|
||||
@@ -20,7 +22,6 @@
|
||||
# THE SOFTWARE.
|
||||
################################################################################
|
||||
|
||||
#!/usr/bin/python
|
||||
import os, sys, re
|
||||
|
||||
# Parsing results in the format:
|
||||
@@ -114,7 +115,7 @@ if (len(sys.argv) < 3): fatal("Usage: " + sys.argv[0] + " <output CSV file> <inp
|
||||
|
||||
outfile = sys.argv[1]
|
||||
infiles = sys.argv[2:]
|
||||
for f in infiles :
|
||||
for f in infiles:
|
||||
parse_res(f)
|
||||
ret = print_tbl(outfile)
|
||||
sys.exit(ret)
|
||||
|
||||
+3
-2
@@ -1,3 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
################################################################################
|
||||
# Copyright (c) 2018 Advanced Micro Devices, Inc. All rights reserved.
|
||||
#
|
||||
@@ -20,7 +22,6 @@
|
||||
# THE SOFTWARE.
|
||||
################################################################################
|
||||
|
||||
#!/bin/bash
|
||||
timestamp=`date +%y%m%d_%H%M%S`
|
||||
|
||||
if [ $# = 0 ] ; then
|
||||
@@ -41,7 +42,7 @@ gpu_index=""
|
||||
parse() {
|
||||
scan="$1"
|
||||
index=0
|
||||
while read -r line ; do
|
||||
while read -r line || [[ -n "$line" ]] ; do
|
||||
line=`echo $line | sed "s/\s*#.*$//"`
|
||||
if [ -z "$line" ] ; then
|
||||
continue
|
||||
|
||||
+2
-1
@@ -1,3 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# Copyright (c) 2018 Advanced Micro Devices, Inc. All rights reserved.
|
||||
#
|
||||
@@ -19,7 +21,6 @@
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
# THE SOFTWARE.
|
||||
################################################################################
|
||||
#!/bin/sh
|
||||
|
||||
test_bin_dflt=./test/ctrl
|
||||
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador