-
Notifications
You must be signed in to change notification settings - Fork 68
[WIP] Add 2d and 3d indirect indexing support #593
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
base: main
Are you sure you want to change the base?
Conversation
28424b9 to
515ad61
Compare
252f6e0 to
37daf60
Compare
9bce34e to
85591df
Compare
| return self.block_sizes[rdim_idx] | ||
|
|
||
| def _next_reduction_loop_index(self) -> int: | ||
| return sum(int(info.reduction) for info in self.block_sizes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fold into caller
| ) -> BlockSizeInfo: | ||
| rdim = self._allocate_new_reduction(size) | ||
| rdim.var = self.block_sizes[block_idx].var | ||
| return rdim |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe fold into callers
helion/_compiler/ast_extension.py
Outdated
| and prev_rank != new_rank | ||
| ): | ||
| self._type_info = type_info | ||
| return self._type_info |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
review whether we actually need this
e8ee215 to
eb7cbac
Compare
eb7cbac to
ef8e398
Compare
Fixes #546.