-
Notifications
You must be signed in to change notification settings - Fork 247
compiler: fix buffering with multiple conditions #2826
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,7 @@ | |
|
|
||
| from devito.exceptions import InvalidArgument | ||
| from devito.parameters import configuration | ||
| from devito.symbolics import search | ||
| from devito.tools import as_list, as_tuple, is_integer | ||
| from devito.types.array import Array, ArrayObject | ||
| from devito.types.basic import Scalar, Symbol | ||
|
|
@@ -75,8 +76,8 @@ def _arg_defaults(self, **kwargs): | |
| raise InvalidArgument("Cannot determine `npthreads`") from None | ||
|
|
||
| # If a symbolic object, it must be resolved | ||
| if isinstance(npthreads, NPThreads): | ||
| npthreads = kwargs.get(npthreads.name, npthreads.size) | ||
| for th in search(npthreads, NPThreads): | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why |
||
| npthreads = npthreads._subs(th, kwargs.get(th.name, th.size)) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can be an expression, e.g nthreads0 + nthreads1 +.... And need to replace all
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can be an expression, e.g nthreads0 + nthreads1 +.... And need to replace all
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can be an expression, e.g nthreads0 + nthreads1 +.... And need to replace all
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. mh, what would the reproducer be?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The MFE in the pro PR
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah ok perfect |
||
|
|
||
| return {self.name: max(base_nthreads - npthreads, 1)} | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.