Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

More loop variants. #33

Merged
merged 10 commits into from
Oct 1, 2024
Merged

More loop variants. #33

merged 10 commits into from
Oct 1, 2024

Conversation

DrTodd13
Copy link
Contributor

@DrTodd13 DrTodd13 commented Sep 5, 2024

Add teams loop and bare loop directives. Add tests for those but the teams loop one is skipped for now due to need for backend support. Fix some bugs related to having separate directives instead of combined.

@ggeorgakoudis
Copy link
Contributor

Check github testing, it's failing in python in running on CPU (which should not fail):

    tags_for_enclosing = [cmp_var.name, omp_lb_var.name, omp_start_var.name, omp_iv_var.name, types_mod_var.name, int64_var.name, itercount_var.name, omp_ub_var.name, const1_var.name, const1_latch_var.name, get_itercount_var.name] + [x.name for x in iterspace_vars]
UnboundLocalError: Failed in nopython mode pipeline (step: Handle with contexts)
local variable 'iterspace_vars' referenced before assignment

@ggeorgakoudis
Copy link
Contributor

@DrTodd13 Checks pass! There's some conflicts to resolve. LGTM.

@ggeorgakoudis ggeorgakoudis self-requested a review October 1, 2024 16:22
…loop and collapse processing to the enclosing openmp region.

2) Fix bug that checks for distribute being tightly nested within teams.
3) Add bare loop directive.
4) Don't add QUAL.OMP.THREAD_LIMIT on non-team parallel directives.
5) Add test for separate target, teams, and loop.
…able for tags_for_enclosing when there is no collapse clause.
2) Add functions to process schedule_clause and dist_schedule_clause from the grammar.
3) Change loop directive to look at enclosing region and generate distribute parallel for if in a teams region and parallel for otherwise.
4) Add kind of failure to all CPU-target-backend skipped cases.
5) Add test for loop directive on CPU side.
… that if inside distribute then just parallel loop is used.
@DrTodd13 DrTodd13 force-pushed the more_loop_variants branch from bc35088 to 51b7919 Compare October 1, 2024 17:19
@ggeorgakoudis ggeorgakoudis merged commit e86d157 into develop Oct 1, 2024
5 checks passed
@ggeorgakoudis ggeorgakoudis deleted the more_loop_variants branch October 1, 2024 21:34
DrTodd13 added a commit that referenced this pull request Oct 9, 2024
* Add loop directive variants
* Add tests
* Adding way to skip test only for device=1
* Remove old comments
* Process schedule_clause and dist_schedule_clause from the grammar
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants