-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi Zachary,
Indeed there seems to be a bug in sleep-until when using barriers.
The issue is that if a jugfile has barriers, not all tasks are visible from the start.
When sleep-until starts it will only see tasks up to the first barrier and exit once 'all' tasks are done.
A possible workaround until this is fixed is to call sleep-until as many times as the number of barriers.
The second call should have access to tasks just after the barrier which should produce the correct behavior.
I suggest reporting this on
https://github.com/luispedro/jug/issues.
Cheers,
Renato
On 01/04/18 00:32, Zachary Hafen wrote:
> Hello,
>
> I've been using jug for a month or two now, and I've been very happy with it. I'm performing an embarrassingly parallel analysis of my scientific simulation data, and jug has made it very easy to speed up the analysis by distributing it across multiple nodes. Its also helped me avoid some nasty memory leaks in the default Python multiprocessing module. I'll definitely be recommending jug to my computational colleagues (and of course citing it properly in my forthcoming paper :) ).
>
> However, I've encountered a bit of an issue, and I was hoping you might have some insight. I have a code that requires multiple merge points. At these merge points, a file is written, and the next section of the code uses that file. To address this, I've used jug.barrier(). Since I would like to submit this as a batch job, I created a script run_jug.sh, which will run multiple jug processes on a single node. In that script, I use sleep-until to prevent the batch job from ending early. The problem I'm encountering is that *sleep-until seems to be satisfied when all jug processes hit the first jug.barrier()*, and as such the batch job ends early.
> --
> You received this message because you are subscribed to the Google Groups "jug-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
jug-users+...@googlegroups.com <mailto:
jug-users+...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEErWzyn8km9Qx1yUkopwPBKi+mXQQFAlrCJJIACgkQpwPBKi+m
XQRAzA//RZPoA2Q+8O1bKg6QQU2jPH2t/yavGU6KaB3p0s/u8q+8aNj8ZG84bHK7
hyXWgKnxTzZsW/RfyquAQgDx0+ULpAuXVC3ePznkhwPH6xnQBrYG069j7GKgtmvV
a3LGhlNGVCE77ie7buCj5UHbPPPXP5C/AwJhUeBws+7iTchPpPhI8d2MlyJT2kb2
o9nXrXXaUw16z0zix0rNGkxYpF7BEA9pyaRz/DsfdtJcvyx13kC1ByO/SmpQZU7D
KpsLNjp3D4gGer7/qx5dMpJ0ZSUpbOU8Mc41Xcvhp3qXfvJfDRIYtIFUsEPWO2HE
aAfHFz92mLCQQq01QVvnEZGSUuXpDvBwqIe3iYvAcUFSBD09hfOjbQ0E0Mqqv3CZ
YoLV7vA6G7yairhQWcDL+c9n8h5G985dzkxdPg9kC88/gWX0DQ+bIy7YGfY+1bnI
jHXIi56VxB+OEpML1sG1Y0eOFnNt9+svPbuyKb5mqFZuKlk/Jq+FOMUl2U3II7GH
wqegOWzree/NsogUJRm17sIhZ6Az7sABEKL14bX7Mr/HubQvqpiGHdL0t3foLAa2
pJfIB6708GTbI75aJt0uVtbvt4Ud5SlWL6ajZaVf9JaxMDRtnAlZ/iCHtF3baxmu
VC6Ba+D3jBM298sMlv21gr6sMZWghyllt2zFsRPMGwynKgrRwiU=
=8lqy
-----END PGP SIGNATURE-----