Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dy2St] drop Executor and ParallelExecutor support for JITLayer #48298

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions paddle/fluid/jit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ cc_library(
cc_library(
jit_function
SRCS function.cc
DEPS jit_function_utils jit_executor_engine jit_pe_engine
jit_interpreter_engine jit_predictor_engine)
DEPS jit_function_utils jit_interpreter_engine jit_predictor_engine)

cc_library(
jit_layer
Expand All @@ -45,8 +44,6 @@ cc_library(
jit_serializer_utils
jit_compilation_unit
jit_function_schema
jit_executor_engine
jit_pe_engine
jit_interpreter_engine
jit_predictor_engine
jit_function)
Expand Down
10 changes: 0 additions & 10 deletions paddle/fluid/jit/engine/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
cc_library(
jit_executor_engine
SRCS executor_engine.cc
DEPS executor)

cc_library(
jit_pe_engine
SRCS pe_engine.cc
DEPS parallel_executor)

cc_library(
jit_interpreter_engine
SRCS interpreter_engine.cc
Expand Down
66 changes: 0 additions & 66 deletions paddle/fluid/jit/engine/executor_engine.cc

This file was deleted.

51 changes: 0 additions & 51 deletions paddle/fluid/jit/engine/executor_engine.h

This file was deleted.

115 changes: 0 additions & 115 deletions paddle/fluid/jit/engine/pe_engine.cc

This file was deleted.

67 changes: 0 additions & 67 deletions paddle/fluid/jit/engine/pe_engine.h

This file was deleted.

11 changes: 1 addition & 10 deletions paddle/fluid/jit/serializer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
#include "paddle/fluid/framework/variable.h"
#include "paddle/fluid/platform/device_context.h"

#include "paddle/fluid/jit/engine/executor_engine.h"
#include "paddle/fluid/jit/engine/interpreter_engine.h"
#include "paddle/fluid/jit/engine/pe_engine.h"
#include "paddle/fluid/jit/engine/predictor_engine.h"
#include "paddle/fluid/jit/layer.h"
#include "paddle/fluid/jit/property.h"
Expand Down Expand Up @@ -74,14 +72,7 @@ Layer Deserializer::operator()(const std::string& path,
auto& info = it->second;
VLOG(3) << "Add function type: " << FLAGS_jit_engine_type
<< " Function name: " << func_name;
if (FLAGS_jit_engine_type == "Executor") {
layer.SetEngine(
func_name,
utils::MakeEngine<ExecutorEngine>(info, params_dict, place));
} else if (FLAGS_jit_engine_type == "PE") {
layer.SetEngine(func_name,
utils::MakeEngine<PEEngine>(info, params_dict, place));
} else if (FLAGS_jit_engine_type == "New") {
if (FLAGS_jit_engine_type == "New") {
layer.SetEngine(
func_name,
utils::MakeEngine<InterpreterEngine>(info, params_dict, place));
Expand Down