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

Function test_new

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

Source from the content-addressed store, hash-verified

858
859 #[test]
860 fn test_new() {
861 let _context = crate::quick_init().unwrap();
862 let val = 0u64;
863 let mut buffer = UnifiedBuffer::new(&val, 5).unwrap();
864 buffer[0] = 1;
865 }
866
867 #[test]
868 fn test_from_slice() {

Callers

nothing calls this directly

Calls 2

quick_initFunction · 0.85
newFunction · 0.85

Tested by

no test coverage detected