mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Proposed fix for bug 16239
This commit is contained in:
committed by
Kévin Petit
parent
1a6c15bb5c
commit
c4ea18523b
@@ -453,7 +453,9 @@ size_t getBufferSize(cl_device_id device_id)
|
||||
s_result = 64*1024;
|
||||
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,
|
||||
CL_DEVICE_GLOBAL_MEM_SIZE,
|
||||
sizeof(maxGlobalSize), (void *)&maxGlobalSize,
|
||||
|
||||
Reference in New Issue
Block a user