Skip to content

Commit

Permalink
Limit individual allocation size using the global memory size (#1835)
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmed Hesham <[email protected]>
  • Loading branch information
ahesham-arm authored Dec 12, 2023
1 parent c8ebba8 commit 344a883
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test_conformance/allocations/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 344a883

Please sign in to comment.