mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Limit individual allocation size using the global memory size (#1835)
Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
This commit is contained in:
@@ -93,6 +93,11 @@ test_status init_cl( cl_device_id device ) {
|
|||||||
// queue, kernel code on GPU.
|
// queue, kernel code on GPU.
|
||||||
g_global_mem_size *= 0.60;
|
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 )
|
if( gReSeed )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user