-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mwe of halo exchange #744
base: melt-mpi-metadata
Are you sure you want to change the base?
mwe of halo exchange #744
Conversation
Note that I changed the logic for determining whether the Docker workflow is run. I an attempt to fix the test failure https://github.com/nextsimhub/nextsimdg/actions/runs/12009927720/job/33475689562 might it be feasible to rebase on top of or merge in Compare https://github.com/nextsimhub/nextsimdg/blob/halo-exchange/.github/workflows/docker.yml vs https://github.com/nextsimhub/nextsimdg/blob/develop/.github/workflows/docker.yml. |
b3882c1
to
7c3adbb
Compare
88f9e68
to
63e6f77
Compare
3adf0d1
to
e5c31a6
Compare
e5c31a6
to
d1b8951
Compare
63e6f77
to
aa15779
Compare
980be5e
to
a989bb6
Compare
template <typename T> T& copyToBuffer(T& buffer, size_t startIndex = 0) | ||
{ | ||
// make no especial attempt at efficiency here | ||
SliceIter thisIter(slice, data.dimensions()); | ||
auto biter = buffer.begin(); | ||
auto biter = std::next(buffer.begin(), startIndex); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@timspainNERSC this was a bit hacky from me. I want to populate the buffer but from a specific starting index. Let me know if there's a better way of doing this.
I was trying to avoid creating temporary arrays for each of the edges.
aa15779
to
319b07e
Compare
a989bb6
to
60cfca0
Compare
This test includes two examples for different grid layouts: - 3 x 1 grid (3 procs) - 2 x 2 grid (4 procs) Makes use of the Slice functionality
60cfca0
to
1434d31
Compare
184f77a
to
5cde88d
Compare
5cde88d
to
9346539
Compare
Small MWE of halo exchange logic for testing before add the main functionality to nextsim
core/src/include/Halo.hpp