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 591b7c9185
commit 3ff36af595

View File

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