Esempio n. 1
0
def setup_module(module):
    """Get rid of any YASK modules generated and JIT-compiled in previous runs.
    This is not strictly necessary for the tests, but it helps in keeping the
    lib directory clean, which may be helpful for offline analysis.
    """
    from devito.yask.wrappers import contexts  # noqa
    contexts.dump()
Esempio n. 2
0
def setup_module(module):
    """Get rid of any YASK modules generated and JIT-compiled in previous runs.
    This is not strictly necessary for the tests, but it helps in keeping the
    lib directory clean, which may be helpful for offline analysis.
    """
    from devito.yask.wrappers import contexts  # noqa
    contexts.dump()
Esempio n. 3
0
 def clear(cls):
     log("Dumping contexts and symbol caches")
     contexts.dump()
     super(CacheManager, cls).clear()
Esempio n. 4
0
 def clear(cls):
     log("Dumping contexts and symbol caches")
     contexts.dump()
     super(CacheManager, cls).clear()
Esempio n. 5
0
 def clear(cls, dump_contexts=True, force=True):
     log("Dumping contexts and symbol caches")
     if dump_contexts:
         contexts.dump()
     super(CacheManager, cls).clear(force=force)