From 8372329b5f13e39ad8b0220679da2f4d4e53e6c6 Mon Sep 17 00:00:00 2001 From: kangguangli Date: Fri, 31 Mar 2023 11:28:24 +0800 Subject: [PATCH] [NewExe] update run checks of standalone executor (#52313) * update run checks of standalone executor * remove mlu related code --- python/paddle/fluid/executor.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/python/paddle/fluid/executor.py b/python/paddle/fluid/executor.py index ce1c55bd171..2c9a0a458fb 100755 --- a/python/paddle/fluid/executor.py +++ b/python/paddle/fluid/executor.py @@ -1585,8 +1585,6 @@ class Executor: program = pruned_program def _can_use_interpreter_core(program, place): - if core.is_compiled_with_mlu(): - return False compiled = isinstance( program, compiler.CompiledProgram @@ -1606,28 +1604,6 @@ class Executor: ) return False - # Unsupported case 2: async mode - if ( - compiled_program._build_strategy is not None - and compiled_program._build_strategy.async_mode - ): - warnings.warn( - "Standalone executor is not used for async mode", - UserWarning, - ) - return False - - # Unsupported case 3: CUDA Graph - if ( - compiled_program._build_strategy is not None - and compiled_program._build_strategy.allow_cuda_graph_capture - and not _is_cuda_graph_enable_standalone_executor() - ): - warnings.warn( - "Standalone executor is not used for CUDA Graph when FLAGS_CUDA_GRAPH_USE_STANDALONE_EXECUTOR=0", - UserWarning, - ) - return False return True if self._enable_interpreter_core and _can_use_interpreter_core( -- GitLab