We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e995020 commit 3cae1d3Copy full SHA for 3cae1d3
src/device.rs
@@ -367,7 +367,7 @@ impl Device {
367
/// # init(CudaFlags::empty())?;
368
/// use rustacuda::device::Device;
369
/// let device = Device::get_device(0)?;
370
- /// println!("Device UUID: {}", device.uuid()?);
+ /// println!("Device UUID: {:?}", device.uuid()?);
371
/// # Ok(())
372
/// # }
373
/// ```
@@ -481,4 +481,12 @@ mod test {
481
CUdevice_attribute_enum::CU_DEVICE_ATTRIBUTE_MAX as u32
482
);
483
}
484
+
485
+ #[test]
486
+ fn test_uuid() -> Result<(), Box<dyn Error>> {
487
+ test_init()?;
488
+ let uuid = Device::get_device(0)?.uuid()?;
489
+ println!("{:?}", uuid);
490
+ Ok(())
491
+ }
492
0 commit comments