Skip to content

Commit

Permalink
#1664: Skip some too strict checks which I don't yet know how to cove…
Browse files Browse the repository at this point in the history
…r by tests (and not required)
  • Loading branch information
svalat committed Mar 20, 2023
1 parent ebb1f62 commit 609a8a5
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/psyclone/transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -2321,21 +2321,6 @@ def validate(self, sched, options=None):
raise TransformationError("Schedule already has an OpenACC data "
"region - cannot add an enter data.")

# do not has mixed async
if options == None:
options = {}
async_queue = options.get('async_queue', False)
if async_queue:
directive_cls = (ACCKernelsDirective, ACCParallelDirective)
for directive in sched.walk(directive_cls):
if directive.async_queue and directive.async_queue != async_queue:
raise TransformationError(f"Tried to apply async() while another one is used internally \
with different queue ({async_queue} != {directive.async_queue}) !")
directive = sched.ancestor(directive_cls)
if directive and directive.async_queue and directive.async_queue != async_queue:
raise TransformationError(f"Tried to apply async() while another one is used in ancestor \
with different queue ({async_queue} != {directive.async_queue}) !")


class ACCRoutineTrans(Transformation):
'''
Expand Down

0 comments on commit 609a8a5

Please sign in to comment.