Add local-runtime fallback for hpx/iostream.hpp#7130
Add local-runtime fallback for hpx/iostream.hpp#7130hkaiser merged 3 commits intoTheHPXProject:masterfrom
Conversation
|
Can one of the admins verify this patch? |
hkaiser
left a comment
There was a problem hiding this comment.
For purely local operations, wouldn't the following be sufficient:
namespace hpx {
using cout = std::cout;
// similar definitions for the other facilities
}
?
Also, instead of re-introducing flush and the other manipulators, I think we should deprecate them in the HPX namespace as they don't do anything special anymore (IIRC, needs verification).
|
Yes, this would be sufficient where std equivalents are present. But for For the manipulators, the distributed implementation still gives I recently refreshed the codebase to resolve merge conflicts and found an unrelated local-only wrap build issue exposed by the recent |
I wil have closer look at those manpulators. All I remember is that we don't use those in any serious way anywhere as the If you would like to go ahead and deprecate them, please do it in a separate PR.
Yes, please, however let's keep this separate as well. |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Coverage variation | Report missing for 517cf721 |
| Diff coverage | ✅ ∅ diff coverage |
Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (517cf72) Report Missing Report Missing Report Missing Head commit (dc39fcb) 83639 0 0.00% Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>
Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#7130) 0 0 ∅ (not applicable) Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
1 Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.
TIP This summary will be updated as you push new changes. Give us feedback
a090200 to
9ea9352
Compare
|
@hkaiser I have made the changes. All the modifications you suggested are right. |
|
@abhishek593 #7133 has been merged now. Could you please rebase onto master to trigger the tests for this PR on the CIs? |
3cc6529 to
8470e2c
Compare
8470e2c to
8f0f815
Compare
Signed-off-by: Abhishek Bansal <abhibansal593@gmail.com>
Signed-off-by: Abhishek Bansal <abhibansal593@gmail.com>
8f0f815 to
6c14fbf
Compare
|
@hkaiser I messed up the git rebase somehow, but it's correct now. |
Let's wait for the CIs to cycle. |
Signed-off-by: Abhishek Bansal <abhibansal593@gmail.com>
6c14fbf to
dc39fcb
Compare
Fixes #4565
Proposed Changes
This PR adds a local-runtime fallback implementation for
hpx/iostream.hppwhenHPX_WITH_DISTRIBUTED_RUNTIME=OFF. The fallback is intentionally narrower than the distributed implementation.hpx::cout,hpx::cerr,hpx::consolestream,hpx::get_consolestreamhpx::flush,hpx::endl,hpx::async_flush,hpx::async_endliostreams_local_fallback.cppChecklist