forked from DependableSystemsLab/GPU-Injector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis.py
More file actions
25 lines (23 loc) · 718 Bytes
/
analysis.py
File metadata and controls
25 lines (23 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import os
import sys
from sets import Set
def processCrash(filename):
log = open(filename,"r")
logs = log.readlines()
new_logs = []
for log in logs:
if "['info" not in log and "activated" not in log and "incorrectly" not in log and "starts" not in log and "New value" not in log:
pass
else:
new_logs.append(log)
flag = 0
buf = []
for log in new_logs:
buf.append(log)
if "incorrectly" in log:
print "#######"
print buf
if "starts" in log:
buf = []
processCrash("matrixMul_matrixMulCUDA.log")
#processCrash("libor_Pathcalc_Portfolio_KernelGPU.log.part2")