Bobby R. Bruce has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/47020 )
Change subject: arch-gcn3,python: Fix incorrect syntax in ast_interpreter.py
......................................................................
arch-gcn3,python: Fix incorrect syntax in ast_interpreter.py
Includes upgrading prints to Python3.
Change-Id: I3349fa6220ad7577b4b4ab9231fb48a8ac4be6fb
---
M src/arch/amdgpu/gcn3/ast_interpreter.py
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/arch/amdgpu/gcn3/ast_interpreter.py
b/src/arch/amdgpu/gcn3/ast_interpreter.py
index 6bd035c..77e1170 100644
--- a/src/arch/amdgpu/gcn3/ast_interpreter.py
+++ b/src/arch/amdgpu/gcn3/ast_interpreter.py
@@ -577,7 +577,7 @@
params = (SpecialCtx[d.ctx],
self.decl_type(d.var),
d.fld, d.var)
else:
- params =
+ params = \
(TypeToAccessMethod[self.decl_type(d.var)],
self.decl_type(d.var), d.fld, d.var)
typ1 = self.decl_type(d.var)
@@ -2814,7 +2814,7 @@
empty_count += 1
if op_inst not in known_empty:
found_empty.append(op_inst)
- print 'Parse Empty'
+ print('Parse Empty')
pprint(found_empty)
import pdb; pdb.set_trace()
else:
@@ -2824,7 +2824,7 @@
exception_count += 1
if op_inst not in known_except:
found_exceptions.append(op_inst)
- print 'Parse Error'
+ print('Parse Error')
pprint(found_exceptions)
import pdb; pdb.set_trace()
else:
@@ -2832,16 +2832,16 @@
cg.cg_end('execute') # cg_method
instruction_index += 1
if known_empty:
- print 'Problems in instructions %s are no longer seen.' % (
- repr(known_empty))
+ print('Problems in instructions %s are no longer seen.' % (
+ repr(known_empty)))
if known_except:
- print 'Exceptions in instructions %s are no longer seen.' % (
- repr(known_except))
+ print('Exceptions in instructions %s are no longer seen.' % (
+ repr(known_except)))
i = instruction_index
e = empty_count
- print 'Found no pseudo code in %d of %d instructions' % (e, i)
+ print('Found no pseudo code in %d of %d instructions' % (e, i))
e = exception_count
- print 'Found exceptions in %d of %d instructions' % (e, i)
+ print('Found exceptions in %d of %d instructions' % (e, i))
for op_enc in self.inst_with_encodings:
if op_enc == 'EXP':
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/47020
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I3349fa6220ad7577b4b4ab9231fb48a8ac4be6fb
Gerrit-Change-Number: 47020
Gerrit-PatchSet: 1
Gerrit-Owner: Bobby R. Bruce <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s