Skip to content
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

Fix 581 (crash on 32bit) + spelling fixes #582

Merged
merged 2 commits into from
Jan 14, 2019

Conversation

rebecca-palmer
Copy link
Contributor

cl_property uses a size_t to request some clGetDeviceInfo memory sizes that are actually cl_ulong (always 64 bit). On systems where size_t is 32 bit, this fails with CL_INVALID_VALUE (#581 reports this from ARM, but it can also happen on 32 bit x86).

This fix clips the values to fit in a size_t to avoid breaking ABI, but it might actually be better to switch to returning a cl_ulong.

The other commit is some spelling errors mostly found by Debian's lintian.

Fixes 'Invalid value' error on 32 bit systems (issue 581)
@abergeron
Copy link
Member

I'm not sure how relevant the support for 32-bit is, but I agree with the fix, so ok.

@abergeron abergeron merged commit 23f30c2 into Theano:master Jan 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants