-
Notifications
You must be signed in to change notification settings - Fork 51
Added a simple btd example #1791
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
base: dev
Are you sure you want to change the base?
Conversation
Yep, I see the hangup, too. Will have a look. |
Hey Junmin, the issue in here is that the Span-based storeChunk API is collective, which was not properly documented so far. Fixing that with #1794. For your code, this means that all ranks must call storeChunk() when using the Span API. The following patch should do that: diff --git a/examples/16_btd_write_parallel.cpp b/examples/16_btd_write_parallel.cpp
index a7b420ba2..65a602d94 100644
--- a/examples/16_btd_write_parallel.cpp
+++ b/examples/16_btd_write_parallel.cpp
@@ -204,6 +204,10 @@ void doWork(
input.get(), input.get() + numElements, spanBuffer.data());
}
}
+ if (m_span)
+ {
+ mymesh.storeChunk<double>({0, 0, 0}, {0, 0, 0}).currentBuffer();
+ }
}
int main(int argc, char *argv[]) |
Oh, I did not know that. |
Okay, I take it back, the Span API can be used non-collectively, but there is currently a bug in |
I just checked, and it works. will you merge your fix? |
I have merged it now, you can rebase this branch |
for more information, see https://pre-commit.ci
@ax3l @franzpoeschel can we merge this one? |
This is a simple version of BTD. While writing this, it looks like something unexpected is observed.
to reproduce:
@franzpoeschel if you have time, please verify.