-
Notifications
You must be signed in to change notification settings - Fork 13
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
Remove cl3 Info
enums to support new OpenCL versions and extensions.
#41
Comments
Is the idea to remove the info enums also from In case they are removed: I see the point, though it would remove type information, and to me one of rust strength is its type system. So I prefer if higher level APIs make use of types. Though perhaps there could even be yet another layer that is higher then |
@vmx my intention is to remove all the I agree with you that it's nice to have the type information that the Since data for new values can always be returned as a I've tried to provide methods in the I've implemented the |
@kenba I had another look (especially at 02d5f68). What I hadn't in mind anymore (sorry for not having a closer look before commenting) was that you provide methods in |
@vmx Thank you Volker. I have implemented the changes in both libraries and updated them both to version 0.6.0 in crates.io. BTW I've also implemented |
I like this change. The sizes of the IDs is specified in the OpenCL header files: https://github.com/KhronosGroup/OpenCL-Headers/blob/1aa1139b58a515877a923cce6b254e09d1b2fb2c/CL/cl_ext.h#L687-L688 Hence I don't see a reason why one shouldn't just depend on that information. |
@vmx I agree with you that the OpenCL header files specify the sizes of the UUIDs and LUIDs so we should be able to depend on that information. However, we've both encountered OpenCL devices that do not to strictly conform to the OpenCL specification, see kenba/cl3#2 and #8 that you raised Volker. I have implemented a fix for the panic issue in the BTW I have no more changes planned for the library, so this version (0.6.0) should be stable. |
Change interface to
cl3
for issue kenba/cl3#13.The text was updated successfully, but these errors were encountered: