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

Operation pool #49

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Operation pool #49

wants to merge 8 commits into from

Conversation

kaushikcfd
Copy link
Collaborator

No description provided.

we could make it an optional dependency, but IMO pytools is very light
pragmatically quite unlikely if that turns out to be a point of failure
@dataclass
class NormalizedISLObj:
ground_obj: BaseType
lift_map: Dict[str, str]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@inducer: Do you think it would lead to lesser dev errors if we make this a pyrsistent.PDict. I am leaning towards it.

Copy link
Owner

Choose a reason for hiding this comment

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

I'm not against that.

@dataclass
class NormalizedISLObj:
ground_obj: BaseType
lift_map: Dict[str, str]
Copy link
Owner

Choose a reason for hiding this comment

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

I'm not against that.

@@ -0,0 +1,830 @@
__copyright__ = "Copyright (C) 2021 Kaushik Kulkarni"
Copy link
Owner

Choose a reason for hiding this comment

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

Not loving the name. The main advance here is that we're "taking over" in terms of naming/labeling things from isl. Better caching (is that what you mean by pooling?) is just a side effect of that. So I'd prefer a name that reflects that. int_names? ext_naming? sep_naming? ...


@dataclass
class NormalizedISLObj:
ground_obj: BaseType
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
ground_obj: BaseType
base_obj: BaseType

ground_obj: BaseType
lift_map: Dict[str, str]

def lift(self) -> BaseType:
Copy link
Owner

Choose a reason for hiding this comment

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

Not loving these names. realize? Or maybe I'm misunderstanding what this does?

@dataclass
class NormalizedISLObj:
ground_obj: BaseType
lift_map: Dict[str, str]
Copy link
Owner

Choose a reason for hiding this comment

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

Could you document what keys and values are here? I'm particularly worried about the isl end being a str, because that can't be cheaply turned into what isl talks about. I was expecting a (dim_type, dim) tuple here.

@inducer
Copy link
Owner

inducer commented Apr 11, 2021

Unsubscribing... @-mention or request review once it's ready for a look or needs attention.

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.

None yet

2 participants