Stride for each stream in every dimension is read and the max stride in each dimension is used to allocate memory