Skip to content

Potential caching bug #531

Closed
Closed

Description

@FabioLuporini

Two tests in the regression test suite:

  • test_assemble.py -> test_assemble_with_tensor
  • test_assembly_cache.py -> test_assemble_rhs_with_without_constant
    fail, for the same reason, on my machine (master everywhere), which is that assemble(v*dx) (.dat.data) is 0 instead of soemthing else

I can reproduce the bug only if I run the whole test suite (including /extrusion and /multigrid) -- with/without coffee doesn't make any difference -- If I run the individual tests with py.test -k, or even py.test regression/.. they work smoothly. So I suspect it's something to do with caching.

Activity

  1. wence- commented on Jun 3, 2015

    @wence-
    Contributor

    Similar to #386 and/or #319?

  2. FabioLuporini commented on Jun 4, 2015

    @FabioLuporini
    ContributorAuthor

    Yes, apparently disabling the assembly cache this disappears

  3. wence- commented on Jul 16, 2015

    @wence-
    Contributor

    Turns out if both of those are fixed this /still/ occurs. Reduced test reproduction:

    py.test tests/multigrid/test_restriction.py tests/regression/test_assemble.py -k 'not parallel' -v --ipdb
    

    I don't really know what's going on still.

  4. added a commit that references this issue on Jul 16, 2015
    e43419d
  5. wence- commented on Jul 16, 2015

    @wence-
    Contributor

    I wonder if the thing going on here is that the execution trace is "full", and when the copy par_loop that is part of the assembly caching copy-on-write setup for Dats is enqueued it is immediately executed and somehow things are out of whack and the wrong value is read.

    In any case, I /really/ don't understand the dat versioning implementation, so my preferred option is to either kill the assembly cache + dat versioning, or lazy evaluation.

  6. FabioLuporini commented on Jul 16, 2015

    @FabioLuporini
    ContributorAuthor

    I'm against killing lazy for reasons I already mentioned. We could keep it disabled by default, though.
    Or we could kill the assembly cache + dat versioning.

  7. wence- commented on Jul 27, 2015

    @wence-
    Contributor

    I don't think I managed to fix this one.

  8. kynan commented on Jul 31, 2015

    @kynan
    Contributor

    These are the very same tests also failing in a container (see #561).

  9. added 2 commits that reference this issue on Feb 16, 2016
    e67df93
    1aa59ea
  10. added a commit that references this issue on Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions