Hello,

I've been working on a container system called Singularity (
http://singularity.lbl.gov), and one of the features of Singularity is to
automatically figure out which Linux namespaces to separate on an as needed
basis. For several reasons it is beneficial to conditionally disable some
features when being executed via the resource manager (e.g. the PID
namespace virtualization).

So my questions is..., is there an environment variable I can reliably
count on to detect the invocation of a process via SLURM?

What I have found so far is that SLURM_JOB_ID and SLURM_JOBID both seem to
be present (and redundant). Between these two (or maybe other), is there a
particular envar that is *always* "guaranteed" to be present within a SLURM
(sbatch/srun/pmix) job context?

Thank you!

-- 
Gregory M. Kurtzer
High Performance Computing Services (HPCS)
University of California
Lawrence Berkeley National Laboratory
One Cyclotron Road, Berkeley, CA 94720

Reply via email to