Proposed fix for bug 16239

This commit is contained in:
Brian Sumner
2017-02-16 07:33:10 -08:00
committed by Kévin Petit
parent 2c5ba5cdc2
commit 4694e625c7

View File

@@ -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,