Skip to content

Added some more device parameter queries #83

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MichaelRiss
Copy link

I started to implement the clGetDeviceInfo queries.

Two remarks here:

  • I changed the return type of the compute_units call from usize to u32 to better match the OpenCL API
  • Also, the return type of mem/buffer size calls is u64. This could probably be revised to be usize, but I'm not sure how to handle the situation on an 32bit platform when a 64bit OpenCL device reports memory sizes beyond 4GiB. Therefore I chose u64 for the moment.

Please comment and accept it if you think it's good.

unified the code with a generic "device_info_helper"
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.

1 participant