(towards #2971) move ACC loop trans and OMP parallel loop trans#3066
(towards #2971) move ACC loop trans and OMP parallel loop trans#3066
Conversation
|
Sorry to crash the party but I've just found a bug in def validate(self, node_list, options=None):
'''
Perform OpenMP-specific validation checks.
:param node_list: list of Nodes to put within parallel region.
:type node_list: list of :py:class:`psyclone.psyir.nodes.Node`
:param options: a dictionary with options for transformations.
:type options: Optional[Dict[str, Any]]
:param bool options["node-type-check"]: this flag controls if the \
type of the nodes enclosed in the region should be tested \
to avoid using unsupported nodes inside a region.
:raises TransformationError: if the target Nodes are already within \
some OMP parallel region.
'''
if node_list[0].ancestor(OMPDirective):
raise TransformationError("Error in OMPParallel transformation:" +
" cannot create an OpenMP PARALLEL " +
"region within another OpenMP region.")and thus we fall over if the supplied node_list = self.get_node_list(node_list)
if node_list[0].ancestor....We'd also need to add a new test that calling |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3066 +/- ##
=======================================
Coverage 99.96% 99.96%
=======================================
Files 389 391 +2
Lines 54620 54629 +9
=======================================
+ Hits 54601 54610 +9
Misses 19 19 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@sergisiso @LonelyCat124 @arporter this is ready for review, thank you! |
arporter
left a comment
There was a problem hiding this comment.
Nice job @victoria-atkinson - thanks :-)
Just some minor tidying up to do.
I'll fire off the integration tests in the meantime.
|
@arporter Thanks for reviewing Andy :) I think it's ready for review again |
arporter
left a comment
There was a problem hiding this comment.
Thanks Victoria, very nearly there now.
I see the ITs were green - whoop :-)
|
Hi @victoria-atkinson, if you could fix the linting error and bring this up to master, I'll take another look. Thanks :-) |
arporter
left a comment
There was a problem hiding this comment.
Thanks Victoria, that all looks good now.
Will proceed to merge.
|
This is just waiting on #3422 now. |
|
On discussion with @LonelyCat124, this is going to jump #3422 now as that still has a bit to do. |
|
The linkspector failure is the known issue of the LFRic Met Office page and is being dealt with elsewhere. |
No description provided.