Skip to content

Commit

Permalink
Fix memory pool dependency issue.
Browse files Browse the repository at this point in the history
We should check is_runtime_skippable condition using memory pool.

Signed-off-by: hyunback <[email protected]>
  • Loading branch information
hyunback committed Oct 6, 2024
1 parent 6ec9abd commit 29608eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/intel_gpu/src/graph/primitive_inst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2122,7 +2122,7 @@ memory::ptr primitive_inst::allocate_output(engine& _engine,
GPU_DEBUG_LOG << "[" << _node.id() << ": constant]" << std::endl;
return ov::intel_gpu::allocate_memory_evenif_zero_bytes(_engine, layout, alloc_type, reset);
}
} else if (!_node.can_share_buffer() || _node.can_be_optimized() || _node.is_output()) {
} else if (!_node.can_share_buffer() || (impl_params.can_be_optimized() || !_node.is_runtime_skippable()) || _node.is_output()) {
GPU_DEBUG_LOG << "[" << _node.id() << ": output]" << std::endl;
return ov::intel_gpu::allocate_memory_evenif_zero_bytes(_engine, layout, alloc_type, reset);
} else {
Expand Down

0 comments on commit 29608eb

Please sign in to comment.