Skip to main content

A toolkit to make paramsurvey easy to use on clusters and cloud

Project description

paramsurvey-tooling

Install

pip install paramsurvey-tooling

paramsurvey usage on clusters with batch queues

Make 3 batch scripts: head, driver, and child. They all have a similar header:

#FOO batch header lines

. ~/setup-my-software-environment.sh

The script to set up your environment should activate your Conda environment, or load modules or whatever.

Then each of these scripts gets one of the following commands:

  • pstool start head
  • pstool start driver ./my-script.py foo bar baz
  • pstool start child

Finally, submit the head job, then the driver, and finally a bunch of children.

Instead of using a driver batch script, you can also run the driver on a head node:

pstool submit ./my-script.py foo bar baz

Containers and paramsurvey

Many compute clusters do not support Docker containers, for security reasons. These clusters often do support Singularity containers, and it's not hard to turn an arbitrary Docker container into a Singularity container. First export the Docker container on a machine that does have docker installed:

docker save IMAGE_ID | gzip > my_docker_image.tar.gz

And bring that file to a host with paramsurvey-tooling installed, and do

pstool build my_docker_image.tar.gz

TODO: teach pstool how to actually start Singularity containers.

Documentation

Installing code in an environment:

  • Conda
  • OS packages
  • modules

Containerized environments:

  • Docker
  • Singularity

Execution environment:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paramsurvey_tooling-0.1.tar.gz (9.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page