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

JavaCL: byte order mismatch exception on buffer creation #336

kazocsaba opened this Issue Sep 14, 2012 · 1 comment


None yet
2 participants

kazocsaba commented Sep 14, 2012

To save us some headache, CLContext.createBuffer fails if the source buffer's byte order is different from the OpenCL byte order.

If there is a byte order mismatch, the exception message refers to the deprecated getKernelsDefaultByteOrder(); it should be updated to getByteOrder().

A lesser annoyance is that I was greeted with this exception when using a byte pointer. If it's possible, it'd be nice if the byte order check were skipped for Pointer data, since there it doesn't matter.

ochafik added a commit that referenced this issue Sep 23, 2012

JavaCL: ignore mismatching byte order for byte buffers, and replaced …
…mentions to getKernelsDefaultByteOrder() by getByteOrder() (issue #336)

This comment has been minimized.

Show comment
Hide comment

ochafik Sep 23, 2012


Hi Csaba,

Thanks for your report, this should now be fixed :-)



ochafik commented Sep 23, 2012

Hi Csaba,

Thanks for your report, this should now be fixed :-)


@ochafik ochafik closed this Sep 23, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment