mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 16:29:03 +00:00
Proposed fix for bug 16239
This commit is contained in:
committed by
Kévin Petit
parent
2c5ba5cdc2
commit
4694e625c7
@@ -453,7 +453,9 @@ size_t getBufferSize(cl_device_id device_id)
|
|||||||
s_result = 64*1024;
|
s_result = 64*1024;
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
log_info("Const buffer size is %llx (%llu)\n", result, result);
|
if (result > BUFFER_SIZE)
|
||||||
|
result = BUFFER_SIZE;
|
||||||
|
log_info("Using const buffer size 0x%lx (%ld)\n", (unsigned long)result, (unsigned long)result);
|
||||||
err = clGetDeviceInfo (device_id,
|
err = clGetDeviceInfo (device_id,
|
||||||
CL_DEVICE_GLOBAL_MEM_SIZE,
|
CL_DEVICE_GLOBAL_MEM_SIZE,
|
||||||
sizeof(maxGlobalSize), (void *)&maxGlobalSize,
|
sizeof(maxGlobalSize), (void *)&maxGlobalSize,
|
||||||
|
|||||||
Reference in New Issue
Block a user