Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maps With Zero Parameters #1649

Merged
merged 7 commits into from
Sep 15, 2024
Merged

Conversation

philip-paul-mueller
Copy link
Collaborator

Before a map without any parameter was considered not invalid, it would pass validation, but most likly compilation would fail (except it is a serial map).
This PR adds:

  • Disallows such maps.
  • Fixes a small bug in the constructor of the Map object.
  • It updates TrivialMapElimination such that it correctly handles the case if it has dynamic map ranges.
  • It removes the TrivialMapRangeElimination transformation as it is redundant and contained a bug.

It is now able to cleanly handle the case of dynamic map ranges.
In that case the map is no longer removed, but one map parameter is added back, whcih is needed for syntactical reasons.

Furthermore, the transformation will now ignore GPU maps, this is because they may be needed for purly syntactical reasons.
The transformation is in fact useless as it does a subset of what `TrivialMapEleimination` does.
Furthermore, that thing had an error, as it was never cheking if an elimination of all trivial map ranges would lead to an empty map that must be removed.
@philip-paul-mueller philip-paul-mueller marked this pull request as draft September 10, 2024 07:57
@philip-paul-mueller philip-paul-mueller marked this pull request as ready for review September 10, 2024 09:46
Copy link
Contributor

@alexnick83 alexnick83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@phschaad phschaad added this pull request to the merge queue Sep 11, 2024
@tbennun tbennun removed this pull request from the merge queue due to a manual request Sep 11, 2024
@tbennun
Copy link
Collaborator

tbennun commented Sep 11, 2024

Tiny change before merging

philip-paul-mueller and others added 2 commits September 12, 2024 11:22
Co-authored-by: Tal Ben-Nun <tbennun@users.noreply.github.com>
@tbennun tbennun added this pull request to the merge queue Sep 15, 2024
Merged via the queue into spcl:master with commit d31dd7b Sep 15, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants