Skip to content

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.

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.

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.

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, and nemar compute results <job> --download <dir> fetches them and checks each file’s size and checksum. The download links last seven days and --renew makes 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.

The job sees only:

  • NEMAR_OUT, set to /work/outputs;
  • the variables you set with --env NAME=value, which accepts only OMP_NUM_THREADS, MKL_NUM_THREADS, OPENBLAS_NUM_THREADS, NUMEXPR_NUM_THREADS, PYTHONHASHSEED and MPLBACKEND, each with a printable ASCII value of at most 256 characters;
  • for a job that asks for GPUs, CUDA_VISIBLE_DEVICES as 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.

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, PATH and LANG, and whether a setting built into a container image survives.
  • Free disk space in /work and /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.