Closed winktool closed 8 months ago
How do I get the compute units?
let max_compute_units = device.max_compute_units().unwrap();
doesn't work.
use ocl::core::DeviceInfo;
...
let max_compute_units = device.info(DeviceInfo::MaxComputeUnits).unwrap();
Here's a list of things you can get using device.info()
.
Corresponds with what's listed here.
Thank you for your reply, you're very kind.
The data I input to the kernel is about 1000 bytes. I'm using a nvidia rtx 3090.