[GPU] Fix input memory calcuation in allocate_output. (#8463)
This commit is contained in:
parent
471211bc4c
commit
e707338909
@ -269,7 +269,7 @@ memory::ptr primitive_inst::allocate_output() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
bool usm_device_allocatable = true;
|
bool usm_device_allocatable = true;
|
||||||
const auto& total_device_input_mem_size = std::accumulate(node_deps.begin(), node_deps.end(), 0, device_mem_acc);
|
const auto& total_device_input_mem_size = std::accumulate(node_deps.begin(), node_deps.end(), (uint64_t)0, device_mem_acc);
|
||||||
if (total_device_input_mem_size > engine.get_device_info().max_global_mem_size)
|
if (total_device_input_mem_size > engine.get_device_info().max_global_mem_size)
|
||||||
usm_device_allocatable = false;
|
usm_device_allocatable = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user