Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[GPU] Fix non-deterministic weights-reorder padding (zero-fill) in propagate_constants (#36416)

Maksim Kutakovc87b7a68f9a7
diff --git a/src/plugins/intel_gpu/src/graph/primitive_inst.cpp b/src/plugins/intel_gpu/src/graph/primitive_inst.cpp
index 07df9c2f7ff..e3e61a68c45 100644
--- a/src/plugins/intel_gpu/src/graph/primitive_inst.cpp
+++ b/src/plugins/intel_gpu/src/graph/primitive_inst.cpp
@@ -2729,13 +2729,9 @@ memory::ptr primitive_inst::allocate_output(engine& _engine,
if (node.can_be_optimized() || is_reorder_weights) {
GPU_DEBUG_LOG << "[" << node.id() << ": output]" << std::endl;
// Use usm_device memory for weights reordering when available.
- // Skip memset (reset=false) regardless of the final allocation type —
- // the weights reorder kernel writes every output element unconditionally.
- if (is_internal && is_reorder_weights) {
- if (_engine.supports_allocation(allocation_type::usm_device))
- alloc_type = allocation_type::usm_device;
- reset = false;
- }
+ if (is_internal && is_reorder_weights &&
+ _engine.supports_allocation(allocation_type::usm_device))
+ alloc_type = allocation_type::usm_device;
return get_memory_from_pool(_engine,
net_id,
pool,