LLNL / conduit

Simplified Data Exchange for HPC Simulations
https://software.llnl.gov/conduit/
Other
207 stars 64 forks source link

add DataType::element_stride() #1207

Open cyrush opened 9 months ago

cyrush commented 9 months ago

strides are in bytes, but per element strides are convenient when adapting to many apis.

caveat: its possible that byte-strides may not be element aligned -- also figure out how to identify this case

cyrush commented 9 months ago
DataType::is_stride_element_aligned();
DataType::is_stride_aligned(index_t nbytes);