Skip to content

Commit

Permalink
Harden cp_mpi_group() to structural changes. (#91)
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel K. Gutierrez <samuel@lanl.gov>
  • Loading branch information
samuelkgutierrez authored Mar 14, 2024
1 parent d29c84d commit a1ea57e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/qvi-mpi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ cp_mpi_group(
const qvi_mpi_group_t *src,
qvi_mpi_group_t *dst
) {
static_assert(std::is_trivially_copyable<qvi_mpi_group_t>::value, "");
memmove(dst, src, sizeof(*src));
}

Expand Down

0 comments on commit a1ea57e

Please sign in to comment.