From 3e7e0d56516459a7c0c728afc83c9dec9dca6dd8 Mon Sep 17 00:00:00 2001 From: Taylor Yeonbok Lee Date: Mon, 7 Mar 2022 13:37:21 +0900 Subject: [PATCH] [DRYRUN] Fix dryrun in partial build (#10761) When partial build is called for dryrun, do constant propagate too. In normal case, partial build is not doing constant propate for saving build time of internal program. However, if partial build is called with dryrun, it will fail at transfer_constants due to the generic nodes which does not have impl. --- src/plugins/intel_gpu/src/graph/program.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/intel_gpu/src/graph/program.cpp b/src/plugins/intel_gpu/src/graph/program.cpp index e9fdcca1890..a8a55c31930 100644 --- a/src/plugins/intel_gpu/src/graph/program.cpp +++ b/src/plugins/intel_gpu/src/graph/program.cpp @@ -560,7 +560,12 @@ void program::post_optimize_graph(bool is_internal) { apply_opt_pass(lo, false, true); // TODO: do we need it at this place also? +#ifdef GPU_DEBUG_CONFIG + GPU_DEBUG_GET_INSTANCE(debug_config); + if (!is_internal && (!options.get()->enabled() || !debug_config->dry_run_path.empty())) { +#else if (!is_internal && !options.get()->enabled()) { +#endif // ToDo remove hidden dependencies from propagate_constants pass apply_opt_pass(); }