rust-opencl
rust-opencl copied to clipboard
Added some more device parameter queries
I started to implement the clGetDeviceInfo
queries.
Two remarks here:
- I changed the return type of the
compute_units
call fromusize
tou32
to better match the OpenCL API - Also, the return type of mem/buffer size calls is
u64
. This could probably be revised to beusize
, 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 choseu64
for the moment.
Please comment and accept it if you think it's good.