-
Notifications
You must be signed in to change notification settings - Fork 50
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
whenidle example does not seem to work #3819
Comments
I did some additional looking into this. The CkCallWhenIdle function was initially implemented with a "double time" parameter, seemingly to match the arguments of the other conditional callback functions (even though the time didn't do anything). A later PR (245542a#diff-4fde7c6629d416c117d4bae763d02a64f272275fb021e1c4ab0a9a526c3062aa) apparently intended to get rid of that parameter as part of a set of changes to avoid timers in conditional callbacks. It even adds a change in xi-Entry.C to throw an error if any arguments are passed to the target of a CkCallWhenIdle callback. However, the PR never made any change to the translation of CkCallWhenIdle, so the "time" attribute is still added to the function ( Line 2315 in 92fa36a
|
you mean "PR never made any change to the translation of whenidle entry method attribute". |
You can see the motivations for [whenidle] here: #2042 The example should be built and run in CI testing to ensure it doesn't break going forward. Also [local] and [sync] entry methods already return values, so I don't think whenidle's return value is any weirder than those. |
Thanks. That clarfies the issue. I do think the "ugliness" is only slightly mitigated, but the benefit of traceability (because idleProgress is an entry method now) is quite useful. |
fixed by #3820 |
When running "make" in examples/charm++/whenidle, I get the following error:
This is with the ofi-cxi x86 build on Delta, but I don't think the build is the cause of this problem. The first of the 2 errors here goes away by removing the 0 in the CkCallWhenIdle function, but the second error remains.
The text was updated successfully, but these errors were encountered: