From 74b1d300ad7fbdda43541bd19ae909f38909d556 Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Tue, 22 Sep 2020 17:43:38 +0800 Subject: [PATCH] refactor(mgb/core): temporarily disable memory swap opt GitOrigin-RevId: 6f8e87a2d5cc9ff0d333889daaba2c1e07f87f5a --- src/core/include/megbrain/graph/bases.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/include/megbrain/graph/bases.h b/src/core/include/megbrain/graph/bases.h index 95dd7eb6..7fc505a3 100644 --- a/src/core/include/megbrain/graph/bases.h +++ b/src/core/include/megbrain/graph/bases.h @@ -22,10 +22,12 @@ #define MGB_ENABLE_SUBLINEAR ((!MGB_BUILD_SLIM_SERVING) && (!!MGB_HAVE_THREAD)) #endif // MGB_ENABLE_SUBLINEAR +// FIXME: reopen when rewriting memory swap or existing tests are passed +#define MGB_ENABLE_MEMORY_SWAP 0 #ifndef MGB_ENABLE_MEMORY_SWAP #define MGB_ENABLE_MEMORY_SWAP \ ((!MGB_BUILD_SLIM_SERVING) && (!!MGB_HAVE_THREAD) && (MGB_CUDA)) -#endif +#endif // MGB_ENABLE_MEMORY_SWAP #ifndef MGB_ENABLE_PARTIAL_EXECUTION #define MGB_ENABLE_PARTIAL_EXECUTION (!MGB_BUILD_SLIM_SERVING)