| process.py (3aa2d9e3a17455108487be9a174c0f069d9014ad) | process.py (5e71baeff2f3138f93cd4f5927dfd596eb8325cc) |
|---|---|
| 1#!/usr/bin/env python 2#!/bin/env python 3# 4# Computers speed up of Streams benchmark results generated by make streams and plots 5# 6# matplotlib can switch between different backends hence this needs to be run 7# twice to first generate a file and then display a window 8# 9import os 10# 11def process(fileoutput = 1): 12 import re 13 ff = open('scaling.log') 14 data = ff.read() 15 ff.close() 16 | 1#!/usr/bin/env python 2#!/bin/env python 3# 4# Computers speed up of Streams benchmark results generated by make streams and plots 5# 6# matplotlib can switch between different backends hence this needs to be run 7# twice to first generate a file and then display a window 8# 9import os 10# 11def process(fileoutput = 1): 12 import re 13 ff = open('scaling.log') 14 data = ff.read() 15 ff.close() 16 |
| 17 s = data.split('\n') 18 ss = [] 19 for i in s: 20 if not i.startswith('MPI rank'): 21 ss.append(i) 22 data = '\n'.join(ss) |
|
| 17 hosts = {} 18 triads = {} 19 speedups = {} 20 match = data.split('Number of MPI processes ') 21 for i in match: 22 if i: 23 fields = i.split('\n') 24 size = int(fields[0].split()[0]) --- 88 unchanged lines hidden --- | 23 hosts = {} 24 triads = {} 25 speedups = {} 26 match = data.split('Number of MPI processes ') 27 for i in match: 28 if i: 29 fields = i.split('\n') 30 size = int(fields[0].split()[0]) --- 88 unchanged lines hidden --- |