Skip to content

Commit

Permalink
fixup device_data commit c3fe045
Browse files Browse the repository at this point in the history
  • Loading branch information
wdeconinck committed Oct 14, 2024
1 parent e00c86a commit d383cac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/atlas/array/ArraySpec.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ ArraySpec::ArraySpec(const ArrayShape& shape, const ArrayAlignment& alignment):
allocated_size_ *= size_t(aligned_shape[j]);
if( j < rank_ - 1) {
// Assume contiguous device data!
device_strides_[j] = strides_[j+1] * shape[j];
device_strides_[j] = strides_[j+1] * shape[j+1];
}
}
ATLAS_ASSERT(allocated_size_ == compute_aligned_size(size_t(shape_[0]) * size_t(strides_[0]), size_t(alignment)));
Expand Down Expand Up @@ -96,7 +96,7 @@ ArraySpec::ArraySpec(const ArrayShape& shape, const ArrayStrides& strides, const
size_ *= size_t(shape_[j]);
if( j < rank_ - 1) {
// Assume contiguous device data!
device_strides_[j] = device_strides_[j+1] * shape[j];
device_strides_[j] = device_strides_[j+1] * shape[j+1];
}
}
allocated_size_ = compute_aligned_size(size_t(shape_[0]) * size_t(strides_[0]), size_t(alignment));
Expand Down Expand Up @@ -146,7 +146,7 @@ ArraySpec::ArraySpec(const ArrayShape& shape, const ArrayStrides& strides, const
}
if( j < rank_ - 1) {
// Assume contiguous device data!
device_strides_[j] = device_strides_[j+1] * shape[j];
device_strides_[j] = device_strides_[j+1] * shape[j+1];
}
}
allocated_size_ = compute_aligned_size(size_t(shape_[layout_[0]]) * size_t(strides_[layout_[0]]), size_t(alignment));
Expand Down

0 comments on commit d383cac

Please sign in to comment.