Commit 3172d8e6 authored by Jan Scheffczyk's avatar Jan Scheffczyk

update avg script

parent 1b3d2cf2
......@@ -6,3 +6,5 @@ src/objs
cmake-*
.idea
.idea*
.idea/
\ No newline at end of file
......@@ -28,7 +28,7 @@ if(NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src/ext/glog")
endif()
IF(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -O3")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -O0")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-conversion-null")
ELSEIF(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
......
#!/bin/bash
first=1
avg="log/avg"
touch $avg
"">avg
num=0
declare -A matrix
for file in $(ls benchC*) ;do
if [ first -eq 1 ];then
head -n +4 $file >> $avg
fi
while read -r line; do
echo ""
done <<< $(tail -n +5 "$file")
(( num++ ))
done
#get relevant lines
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment