pub fn device_properties(device: &Device) -> Result<DeviceProperties>Expand description
Fetch a typed subset of cudaDeviceProp for device.
We use cudaGetDeviceProperties to pull the device name (a 256-byte
char array at offset 0 — the one layout-stable field across CUDA
versions) and per-attribute queries for everything else. This is
more robust than struct-offset parsing because cudaDeviceProp has
grown over CUDA versions and offsets drift silently.