Limit individual allocation size using the global memory size (#1835)

Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
This commit is contained in:
Ahmed Hesham
2023-12-12 17:44:56 +00:00
committed by GitHub
parent c8ebba8699
commit 344a88301d

View File

@@ -93,6 +93,11 @@ test_status init_cl( cl_device_id device ) {
// queue, kernel code on GPU.
g_global_mem_size *= 0.60;
}
/* Cap the allocation size as the global size was deduced */
if (g_max_individual_allocation_size > g_global_mem_size)
{
g_max_individual_allocation_size = g_global_mem_size;
}
if( gReSeed )
{