Compute Job Environment
A compute job runs in a container that NEMAR sets up for it.
This page says what the job sees there.
The same facts are in nemar compute submit --help-all.
Everything under nemar compute runs your own jobs, as you, against your own allocation.
Processing that NEMAR runs itself is a separate, administrator-only path and is never available through these commands.
Where things are
Section titled “Where things are”| Path | What it is | Access |
|---|---|---|
/work |
The job’s working directory | Writable; only /work/outputs is returned |
/work/outputs |
Where results go; the variable NEMAR_OUT holds this path |
Writable; created before your code starts |
/code |
Your code, unpacked from the archive nemar compute submit sends |
Read-only |
/data/<dataset id> |
One directory for each dataset you name | Read-only |
/tmp |
Scratch space on the compute node | Deleted when the job ends; never returned |
A relative path writes into /work, which is not returned.
Write results to $NEMAR_OUT, for example os.path.join(os.environ["NEMAR_OUT"], "summary.csv") in Python.
Datasets
Section titled “Datasets”Name a dataset with --dataset <id>@<version>.
Its files appear under /data/<id> at their dataset paths, such as /data/nm000104/sub-01/eeg/sub-01_task-rest_eeg.set.
The path has no version in it: the version you asked for decides which files are staged.
- A job can name up to 20 datasets, each once.
- A dataset must be public, active, named (not anonymous) and published. A dataset that is not eligible is refused when you submit.
- Staging is not selective yet: the dataset’s files are staged as a whole, subject to NEMAR’s limits. Read what you need and do not assume anything about the rest of the directory.
Results
Section titled “Results”Only regular files under $NEMAR_OUT come back as the job’s results.
Anything else in /work or /tmp is discarded when the job ends.
A symbolic link, pipe, socket or device file under /work is deleted and never uploaded.
- A result’s name cannot contain a backslash or a control character, cannot have an empty,
.or..segment, and is at most 512 characters. A file with a name that is refused is left out of the results. - The limits are currently 5,000 files and 20 GiB for a job, and no single file may be larger than 5 GB.
A job whose results go over its limit ends as
result_upload_failed. - Results are kept for a limited time, currently 30 days.
nemar compute results <job>lists them, andnemar compute results <job> --download <dir>fetches them and checks each file’s size and checksum. The download links last seven days and--renewmakes new ones.
nemar compute logs <job> prints the first 1 MiB of what your code wrote to standard output and standard error.
It is plain text for you to read; NEMAR never parses it for a result.
Files your code made are in the results, not in the log.
Environment variables
Section titled “Environment variables”The job sees only:
NEMAR_OUT, set to/work/outputs;- the variables you set with
--env NAME=value, which accepts onlyOMP_NUM_THREADS,MKL_NUM_THREADS,OPENBLAS_NUM_THREADS,NUMEXPR_NUM_THREADS,PYTHONHASHSEEDandMPLBACKEND, each with a printable ASCII value of at most 256 characters; - for a job that asks for GPUs,
CUDA_VISIBLE_DEVICESas the scheduler sets it.
Nothing is inherited from the machine that submitted the job or from the compute node. Your credentials and NEMAR’s job token never enter the container, and the container cannot call NEMAR’s job routes.
Not promised yet
Section titled “Not promised yet”No job has run on a real node, so these are unknown and may change. Write code that does not depend on them.
- Network access from the job.
- The values of
HOME,PATHandLANG, and whether a setting built into a container image survives. - Free disk space in
/workand/tmp. - More than one node, and which GPUs a job can see.
- What happens in the moments after a job reaches its time limit.
- Which runtimes are open to you: a refused runtime is reported when you submit.
This page changes as these are measured.