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

Function allow_2d_arrays

crates/cust/src/memory/array.rs:938–945  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

936
937 #[test]
938 fn allow_2d_arrays() {
939 let _context = crate::quick_init().unwrap();
940
941 let obj = ArrayObject::new([10, 20, 0], ArrayFormat::F64, 1).unwrap();
942
943 let descriptor = obj.descriptor().unwrap();
944 assert_eq!([10, 20, 0], descriptor.dims());
945 }
946
947 #[test]
948 fn allow_1d_layered_arrays() {

Callers

nothing calls this directly

Calls 3

quick_initFunction · 0.85
newFunction · 0.85
descriptorMethod · 0.45

Tested by

no test coverage detected