-
Notifications
You must be signed in to change notification settings - Fork 242
compiler: Enhance IR to support more advanced parlang (CUDA/HIP/SYCL) features #2748
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
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2748 +/- ##
==========================================
- Coverage 83.05% 82.55% -0.51%
==========================================
Files 248 248
Lines 50294 50379 +85
Branches 4426 4431 +5
==========================================
- Hits 41773 41589 -184
- Misses 7763 8019 +256
- Partials 758 771 +13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| initvalue = tuple(i.subs(subs_user) for i in k) | ||
| w = weights[k] = w0._rebuild(name=name, dtype=dtype, initvalue=initvalue) | ||
|
|
||
| rebuilt = expr._subs(w0.indexed, w.indexed) |
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.
why not just expr._rebuild(weights=w)?
| def __hash__(self): | ||
| return hash((super().__hash__(), self.sub_iterators, | ||
| self.directions)) | ||
| return hash((super().__hash__(), self.sub_iterators, self.directions)) |
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.
Would having a hashable items attribute like we use in some other classes clean this up a little?
|
|
||
| """ | ||
| Abstract base class for all terminal objects, that is, those objects | ||
| collected by `retrieve_terminals` in addition to all other SymPy atoms |
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.
This is a somewhat tautologous definition. What conceptually is a "terminal" here?
Supersedes #2717