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()
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()
def clear(cls): log("Dumping contexts and symbol caches") contexts.dump() super(CacheManager, cls).clear()
def clear(cls): log("Dumping contexts and symbol caches") contexts.dump() super(CacheManager, cls).clear()
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)