-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gpuinfo reports wrong workitem dimensions for 32-bit architectures #24
Comments
Ok. Thoughts on how to fix this? |
If all device-info queries which use Otherwise, copy |
First option sounds tempting, but it's not very general, is that a fair impression? Second option sounds plausible, and easy-ish. Would need to keep the old function in, for backwards compatibility. One variant on the second is, looks like |
Yeah, 1 is the more simple one, but will introduce other errors, if for some query As to getting the byte-size of the type returned: The type-size can be calculated, and then you could use formatted printing (with either |
Yes. Well, at least have a |
The value returned by
clGetDeviceInfo
with the parameterCL_DEVICE_MAX_WORK_ITEM_SIZES
is of typesize_t[]
and is read byeasycl::printDeviceInfoArray()
ascl_ulong[]
.Since for 32-bit systems,
size_t
isunsigned int
, notunsigned long
, the value read is wrong.The text was updated successfully, but these errors were encountered: