Open
Conversation
yguclu
requested changes
Feb 4, 2026
Member
yguclu
left a comment
There was a problem hiding this comment.
Good catch for finding this bug!
I have a couple of comments. Also, please update the file CHANGELOG.md.
Comment on lines
+87
to
+120
| 2026-02-03 09:53:14 (added by Julian O. - ThinkPad T14 in performance mode - after a suspicion that we don't use the newly added SF algorithm by default anymore) | ||
| ---------- | ||
|
|
||
| | Test case | old assembly | new assembly | old discretization | new discretization | | ||
| | --- | --- | --- | --- | --- | | ||
| | 2.1 | 25.953 | 27.642 | 17.806 | 9.641 | | ||
| | 2.2 | 2.818 | 3.324 | 6.66 | 3.463 | | ||
| | 2.3 | 48.497 | 49.256 | 22.308 | 9.821 | | ||
| | 3.1.1 | 0.428 | 0.476 | 2.183 | 1.238 | | ||
| | 3.1.2 | 0.983 | 1.336 | 2.323 | 1.2 | | ||
| | 3.1.3 | 0.848 | 0.786 | 4.028 | 2.252 | | ||
| | 3.2 | 1.676 | 1.369 | 1.513 | 1.662 | | ||
| | 3.3 | 0.949 | 0.586 | 1.327 | 1.288 | | ||
| | 3.4 | 0.694 | 0.923 | 1.144 | 1.161 | | ||
| | 3.5 | 0.612 | 0.558 | 1.564 | 1.511 | | ||
| | 3.6 | 1.865 | 0.624 | 2.379 | 1.76 | | ||
|
|
||
| 2026-02-03 10:37:52 (added by Julian O. - ThinkPad T14 in performance mode - after fixing the above issue) | ||
| ---------- | ||
|
|
||
| | Test case | old assembly | new assembly | old discretization | new discretization | | ||
| | --- | --- | --- | --- | --- | | ||
| | 2.1 | 30.908 | 2.164 | 21.086 | 21.173 | | ||
| | 2.2 | 3.193 | 0.581 | 6.229 | 4.364 | | ||
| | 2.3 | 43.744 | 3.914 | 21.244 | 23.042 | | ||
| | 3.1.1 | 0.242 | 0.043 | 1.713 | 1.798 | | ||
| | 3.1.2 | 0.561 | 0.045 | 1.701 | 1.522 | | ||
| | 3.1.3 | 0.897 | 0.161 | 4.085 | 3.296 | | ||
| | 3.2 | 1.043 | 0.046 | 1.364 | 1.691 | | ||
| | 3.3 | 0.57 | 0.082 | 1.045 | 2.024 | | ||
| | 3.4 | 1.656 | 0.073 | 1.775 | 2.204 | | ||
| | 3.5 | 0.563 | 0.074 | 1.788 | 2.274 | | ||
| | 3.6 | 0.768 | 0.211 | 3.307 | 1.865 | | ||
|
|
Member
There was a problem hiding this comment.
I am not sure that we should report all of these numbers. In particular, the timings seem to oscillate quite a bit. Maybe one should run these benchmarks a few times and report the average value?
Comment on lines
+662
to
+663
| if isinstance(kernel_expr, tuple): | ||
| is_interior_expr = isinstance(kernel_expr[0], DomainExpression) |
Member
There was a problem hiding this comment.
In practice, is kernel_expr anything else than a tuple? Could it be a list?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
The sum factorization (SF) algorithm is currently implemented for 3D bilinear forms defined on the interior of a domain (when not using
openmp).Psydac decides whether to use the SF algorithm by checking the dimension of the domain, whether
openmpis used to parallelize the code, and by checking whetherkernel_expris an instance ofsympde.expr.evaluation.DomainExpression.The latter does not work in practice, as apparently in most cases (always?)
kernel_expris atuple.Fix
I changed this code snippet in
api/discretization.pyfromto