Skip to content

Commit 3039f49

Browse files
committed
git-svn-id: https://svn.mcs.anl.gov/repos/performance/orio@418 e7ad4b5f-b827-0410-872f-f7f4bc3d1efb
1 parent 27f1f06 commit 3039f49

File tree

7 files changed

+86
-1016
lines changed

7 files changed

+86
-1016
lines changed

URL

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
Orio's main webpage:
3+
http://trac.mcs.anl.gov/projects/performance/wiki/Orio
4+
5+
Some hidden links:
6+
http://trac.mcs.anl.gov/projects/performance/wiki/AnnPerformance (Old results for tuning Pluto)
7+
8+

src/module/tilic/ann_parser.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def __getTilingParams(self, assigns):
2424
first_depth = 1 # the first loop depth to be tiled
2525
last_depth = -1 # the last loop depth to be tiled
2626
max_boundary_tiling_level = -1 # the maximum tiling level used to tile boundary tiles
27+
affine_lbound_exps = True # assuming the loop bound expressions to be affine functions
2728

2829
# iterate over all assignments
2930
for var, val in assigns:
@@ -52,12 +53,18 @@ def __getTilingParams(self, assigns):
5253
sys.exit(1)
5354
max_boundary_tiling_level = val
5455

56+
elif var == 'affine_lbound_exps':
57+
if not isinstance(val, bool):
58+
print 'error:Tilic: the value of affine loop-bound expressions must be a boolean: "%s"' % val
59+
sys.exit(1)
60+
affine_lbound_exps = val
61+
5562
else:
5663
print 'error:Tilic: unknown tiling parameter: "%s"' % var
5764
sys.exit(1)
5865

5966
# return the tiling parameters
60-
return (num_tiling_levels, first_depth, last_depth, max_boundary_tiling_level)
67+
return (num_tiling_levels, first_depth, last_depth, max_boundary_tiling_level, affine_lbound_exps)
6168

6269
#------------------------------------------------------------
6370

src/module/tilic/ast_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ASTUtil:
1111
'''A class definition that provides utility methods for AST traversal and manipulation'''
1212

1313
def __init__(self):
14-
'''To instantiate an AST utility'''
14+
'''To instantiate the AST utility'''
1515
pass
1616

1717
#---------------------------------------------------------------

src/module/tilic/pprinter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class PrettyPrinter:
1111
'''The pretty printer of the AST structure'''
1212

1313
def __init__(self):
14-
'''To instantiate a pretty printer'''
14+
'''To instantiate the pretty printer'''
1515
pass
1616

1717
#----------------------------------------------

src/module/tilic/semant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class SemanticChecker:
1111
'''The semantic checker class that provides methods for checking and enforcing the AST semantics'''
1212

1313
def __init__(self):
14-
'''To instantiate a semantic checker'''
14+
'''To instantiate the semantic checker'''
1515

1616
self.ast_util = ast_util.ASTUtil()
1717

src/module/tilic/tilic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Tilic(module.module.Module):
1212

1313
def __init__(self, perf_params, module_body_code, annot_body_code, cmd_line_opts,
1414
line_no, indent_size, language='C'):
15-
'''To instantiate an Tilic tiling module'''
15+
'''To instantiate the Tilic tiling module'''
1616

1717
module.module.Module.__init__(self, perf_params, module_body_code, annot_body_code,
1818
cmd_line_opts, line_no, indent_size, language)

0 commit comments

Comments
 (0)