Hello,

I'm working on a SPANK plugin which needs to accept input from the user
(i.e., from a command line option), perform some non-trivial work during
the allocator context that may take some time, and then upon success allow
the job to continue.  Later steps, for example in the job plugin, task
initialization routine, and job epilog, will need the results of that
non-trivial work performed within the allocation context.

As far as I can tell, each stage can access the original user inputs,
either by directly accessing them in the allocator or local contexts, or
via spank_option_getopt in the prolog/epilog contexts.  I have not found a
way to store the results of my data transformation in the job somehow,
either through the job environment (spank_setenv), or using the job_control
environment (spank_job_control_setenv).  It seems that the results of
processing at each stage are confined to that stage.

Is it possible for me to somehow perform a calculation in the allocator
context, and then access the results in other contexts without going back
through the original arguments?

Thanks so much,
Doug

----
Doug Jacobsen, Ph.D.
NERSC Computer Systems Engineer
National Energy Research Scientific Computing Center <http://www.nersc.gov>
[email protected]

------------- __o
---------- _ '\<,_
----------(_)/  (_)__________________________

Reply via email to