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
hpx::cout output lost #1173
Comments
Have you tried using
|
Apparently this was already fixed since the latest release (which you're using). I added a test verifying it's fixed (based on the code you posted above). I'm closing this now as I'm not able to reproduce it with top of master. Please feel free to reopen, if needed. |
Still experiencing the problem. Even including Is Or: Thanks |
Luis, could you try the last commit on the master branch? I think this was a known problem that existed in that particular release. Reopening for now. Please report about success/failure on the master branch. |
This seems to be a bug which was pertinent to that particular release and it looks like it has been fixed since then.
|
Hi again, #include <vector>
#include <hpx/hpx_init.hpp>
#include <hpx/include/lcos.hpp>
#include <hpx/include/actions.hpp>
#include <hpx/include/iostreams.hpp>
typedef hpx::lcos::future<int> wait_for_worker;
wait_for_worker worker( )
{
hpx::cout <<" hello" << hpx::endl;
return hpx::make_ready_future(1);
}
HPX_PLAIN_ACTION(worker, worker_action);
int hpx_main(boost::program_options::variables_map& vm)
{
// get locations and start workers
std::vector<wait_for_worker> futures;
for(auto l : hpx::find_all_localities()){
futures.push_back(hpx::async<worker_action>(l));
}
hpx::wait_all(futures);
return hpx::finalize();
}
int main(int argc, char* argv[])
{
return hpx::init(argc, argv);
} I ran it this way:
Most of the runs fail in the instance specified to wait for localities (remote) in this manner:
I guess this problem might be addressed by some other ticket, I think I will just use 9.8 without streams until 9.9 turns stable. Thanks for your time anyway. |
Could you provide a full log for that assertion? |
I'm not able to reproduce this. What compiler do you use? What cmake/compiler command line? Can you try running the regression test |
Is this still a problem? |
This is related to #1229 |
This should be fixed now as #1229 has been closed. Please reopen if the problem persists. |
When utilising hpx::cout, and runing on two locations the console output produced by hpx::cout is lost.
Here a little sniplet:
Running on a single location produces the right output, the execution on two locations (different physical machines) produces no output
The funny thing is that introducing following statement in the worker action generates the appropriate output (plus an extra line per location)
std::cout << "std::cout print" << std::endl;
the compilation was done with the following command:
The text was updated successfully, but these errors were encountered: