From 6287d7a2677a3ca5de4b35886f0d70576ff87a6b Mon Sep 17 00:00:00 2001 From: Jan Laukemann Date: Thu, 23 Aug 2018 23:17:46 +0200 Subject: [PATCH] FIX #11 by changing the iaca_instrumentation call. For further information see pending issue https://github.com/RRZE-HPC/kerncraft/issues/99 --- osaca/osaca.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/osaca/osaca.py b/osaca/osaca.py index cefd3f8..663bbce 100755 --- a/osaca/osaca.py +++ b/osaca/osaca.py @@ -871,8 +871,12 @@ def main(): + '\'pip install --user kerncraft\' for installation.\nFor more information see ' + 'https://github.com/RRZE-HPC/kerncraft', file=sys.stderr) sys.exit(1) - iaca.iaca_instrumentation(input_file=filepath, output_file=filepath, - block_selection='manual', pointer_increment=1) + # Change due to newer kerncraft version (hopefully temporary) + #iaca.iaca_instrumentation(input_file=filepath, output_file=filepath, + # block_selection='manual', pointer_increment=1) + with open(filepath, 'r') as f_in, open(filepath[:-2] + '-iaca.s', 'w') as f_out: + iaca.iaca_instrumentation(input_file=f_in, output_file=f_out, + block_selection='manual', pointer_increment=1) else: osaca.inspect_binary()