Пример #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()
Пример #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()
Пример #3
0
 def clear(cls):
     log("Dumping contexts and symbol caches")
     contexts.dump()
     super(CacheManager, cls).clear()
Пример #4
0
 def clear(cls):
     log("Dumping contexts and symbol caches")
     contexts.dump()
     super(CacheManager, cls).clear()
Пример #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)