| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codecov Report❌ Patch coverage is 91.57895% with 8 lines in your changes missing coverage. Please review.
@@ Coverage Diff @@
## main #2886 +/- ##
==========================================
+ Coverage 83.43% 83.47% +0.03%
==========================================
Files 248 248
Lines 51381 51471 +90
Branches 4431 4433 +2
==========================================
+ Hits 42871 42964 +93
+ Misses 7757 7756 -1
+ Partials 753 751 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry.
|
Sorry, something went wrong.
| # Search among the Indexeds (Most accesses typically stem from Indexeds) | ||
| plain_indexeds = retrieve_indexed(exprs, deep=True) | ||
|
|
||
| # Search among higher order objects, which still represent meaningful accesses |
There was a problem hiding this comment.
This look very specific and seems like that's something retrieve_index should catch
Sorry, something went wrong.
There was a problem hiding this comment.
the idea is that other objects can end up there, in the future, maybe...
as for retrieve_indexed catching it: disagree, it's not an implicit Indexed, it's rarther a logical representation of the base address of the TensorMove -- as an Indexed, for homogeneity
Sorry, something went wrong.
| value = sympify(value) | ||
| step = sympify(step) | ||
|
|
||
| if step == 0: |
There was a problem hiding this comment.
Would if step < 1 be safer? Prevents a negative number being supplied
Sorry, something went wrong.
There was a problem hiding this comment.
fair, yes, I will add that. Will also ensure it's an integer
Sorry, something went wrong.
| # Already a multiple of `mmts`, no need to pad | ||
| return nopadding | ||
| else: | ||
| from devito.symbolics import RoundUp # noqa |
There was a problem hiding this comment.
Maybe implies that extended_sympy should be moved somewhere else?
Sorry, something went wrong.
There was a problem hiding this comment.
yes, it's a long standing issue, documented somewhere
Sorry, something went wrong.
| u = Function(name='u', grid=grid) | ||
| a = dSymbol('a', dtype=np.int32) | ||
|
|
||
| expr = RoundUp(a, 16) |
There was a problem hiding this comment.
Can the round up factor also be symbolic?
Sorry, something went wrong.
There was a problem hiding this comment.
not sure, I cooked up something simple for my needs after days of frustration
Sorry, something went wrong.
There was a problem hiding this comment.
see comment above -- now ensuring it's an integer number
Sorry, something went wrong.
| a = dSymbol('a', dtype=np.int32) | ||
|
|
||
| expr = RoundUp(a, 16) | ||
| with switchconfig(platform='bdw', language='openmp'): |
There was a problem hiding this comment.
'bdw' is oddly specific
Sorry, something went wrong.
There was a problem hiding this comment.
stupid AI, will patch in the next PR
Sorry, something went wrong.
|
|
||
| if step < 1: | ||
| raise ValueError("Cannot round up with negative `step`") | ||
| if not is_integer(step): |
There was a problem hiding this comment.
I would check it's an integer before checking it's greater than zero, but whatever
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Test in PRO in the PR/branch with same name as this one