MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / test_get_name

Function test_get_name

crates/cust/src/device.rs:409–415  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

407
408 #[test]
409 fn test_get_name() -> Result<(), Box<dyn Error>> {
410 test_init()?;
411 let device_name = Device::get_device(0)?.name()?;
412 println!("{}", device_name);
413 assert!(device_name.len() < 127);
414 Ok(())
415 }
416
417 #[test]
418 fn test_get_memory() -> Result<(), Box<dyn Error>> {

Callers

nothing calls this directly

Calls 2

test_initFunction · 0.85
nameMethod · 0.45

Tested by

no test coverage detected