Skip to content

Commit

Permalink
not parallel on default dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed May 17, 2018
1 parent fe26803 commit 932c067
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion devito/core/autotuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def more_heuristic_attempts(blocksizes):

options = {
'at_squeezer': 4,
'at_blocksize': sorted({8, 16, 24, 32, 40, 64, 128}),
'at_blocksize': sorted({1, 8, 16, 24, 32, 40, 64, 128}),
'at_stack_limit': resource.getrlimit(resource.RLIMIT_STACK)[0] / 4
}
"""Autotuning options."""
4 changes: 3 additions & 1 deletion devito/dle/backends/advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ def _simdize(self, nodes, state):

mapper = {}
for tree in retrieve_iteration_tree(nodes):
vector_iterations = [i for i in tree if i.is_Vectorizable]
vector_iterations = []
if not any(i.is_ParallelAtomic for i in tree):
vector_iterations = [i for i in tree if i.is_Vectorizable]
for i in vector_iterations:
handle = FindSymbols('symbolics').visit(i)
try:
Expand Down
4 changes: 2 additions & 2 deletions devito/ir/iet/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,11 @@ def is_Sequential(self):

@property
def is_Parallel(self):
return PARALLEL in self.properties
return PARALLEL in self.properties and not self.dim.is_Default

@property
def is_ParallelAtomic(self):
return PARALLEL_IF_ATOMIC in self.properties
return PARALLEL_IF_ATOMIC in self.properties and not self.dim.is_Default

@property
def is_ParallelRelaxed(self):
Expand Down

0 comments on commit 932c067

Please sign in to comment.