You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a little awkward, but we require an explicit call to cmk::exit at the moment. We have not implemented QD to automatically detect when the runtime has processed all messages.
Subsequently, have you tried the following:
#include<charmlite/charmlite.hpp>intmain(int argc, char* argv[])
{
// Initialize Converse and CharmLite cmk::initialize(argc, argv);
// Broadcast a message to all PEs to// start shutting downif (CmiMyNode() == 0) {
cmk::exit();
}
// Then run the Converse scheduler// loop until it exits on this nodecmk::finalize();
return0;
}
cmk::exit does work in this situation. We may want to pin this issue until we get QD to automatically detect that there was no message created in the first place so we don't need an explicit call to cmk::exit.
jszaday
changed the title
Charmlite program with no chare creation hangs
Implement QD to automatically call cmk::exit when program is idle
Jan 26, 2022
jszaday
changed the title
Implement QD to automatically call cmk::exit when program is idle
Implement QD to automatically call cmk::exit when idle
Jan 26, 2022
An empty charmlite program such as follows fails to run to completion with non-SMP (and potentially SMP) builds:
The text was updated successfully, but these errors were encountered: