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

Function test_from_slice

crates/cust/src/memory/unified.rs:868–875  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

866
867 #[test]
868 fn test_from_slice() {
869 let _context = crate::quick_init().unwrap();
870 let values = [0u64; 10];
871 let mut buffer = UnifiedBuffer::from_slice(&values).unwrap();
872 for i in buffer[0..3].iter_mut() {
873 *i = 10;
874 }
875 }
876
877 #[test]
878 fn from_raw_parts() {

Callers

nothing calls this directly

Calls 1

quick_initFunction · 0.85

Tested by

no test coverage detected