Skip to main content

Create a SIF file from a Singularity definition file for COMPS

Project description

comps-sif-constructor

Create SIF images for COMPS

To use (with uv):

uvx comps_sif_constructor create -d lolcow.def

This will launch the image creation on COMPS and leave behind a sif.id for the jobs that need the image.

Usage

comps_sif_constructor --help

The CLI has two main commands: create and launch.

Create SIF Image

Create a Apptainer/Singularity image file on COMPS with create:

comps_sif_constructor create --help
usage: comps_sif_constructor create [--help] [--definition_file DEFINITION_FILE] [--output_id OUTPUT_ID] 
                                    [--image_name IMAGE_NAME] [--work_item_name WORK_ITEM_NAME] 
                                    [--requirements REQUIREMENTS]

options:
  --help                show this help message and exit
  --definition_file DEFINITION_FILE, -d DEFINITION_FILE
                        Path to the Singularity definition file
  --output_id OUTPUT_ID, -o OUTPUT_ID
                        (optional) Name out Asset id file
  --image_name IMAGE_NAME, -i IMAGE_NAME
                        (optional) Name of the Singularity image file
  --work_item_name WORK_ITEM_NAME, -w WORK_ITEM_NAME
                        (optional) Name of the work item
  --requirements REQUIREMENTS, -r REQUIREMENTS
                        (optional) Path to the requirements file

Example:

comps_sif_constructor create \
  -d <path_to_definition_file> \
  -o <output_id> \
  -i <image_name> \
  -w <work_item_name> \
  [-r <requirements_file>]

Launch COMPS Experiment

Launch a COMPS experiment with specified parameters:

comps_sif_constructor launch -h
usage: comps_sif_constructor launch [--help] [--name NAME] [--threads THREADS] 
                                   [--priority PRIORITY] [--node-group NODE_GROUP] 
                                   --file FILE [--sif-filename SIF_FILENAME]
                                   [--sif-id-file SIF_ID_FILE]

options:
  --help                show this help message and exit
  --name NAME, -n NAME  Name of the experiment
  --threads THREADS, -t THREADS
                        Number of threads to use
  --priority PRIORITY, -p PRIORITY
                        Priority level for the experiment
  --node-group NODE_GROUP, -g NODE_GROUP
                        Node group to use
  --file FILE, -f FILE  Path to the trials.jsonl file
  --sif-filename SIF_FILENAME, -s SIF_FILENAME
                        Name of the singularity image file
  --sif-id-file SIF_ID_FILE, -i SIF_ID_FILE
                        Path to the asset ID file

Example:

comps_sif_constructor launch \
  -n "My Experiment" \
  -t 4 \
  -p AboveNormal \
  -g idm_48cores \
  -f trials.jsonl \
  -s custom_image.sif \
  -i custom_image.id

Launch expect a run.sh and remote.py to be colocated. You can also pass a trials.jsonl. See the examples/ for more info.

Resources

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

comps_sif_constructor-0.3.0.tar.gz (250.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

comps_sif_constructor-0.3.0-py3-none-any.whl (367.5 kB view details)

Uploaded Python 3

File details

Details for the file comps_sif_constructor-0.3.0.tar.gz.

File metadata

  • Download URL: comps_sif_constructor-0.3.0.tar.gz
  • Upload date:
  • Size: 250.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for comps_sif_constructor-0.3.0.tar.gz
Algorithm Hash digest
SHA256 89bcbcf3f905e42b9f58ea1f98a456445835da8f21e0e2deee3ef67017d1a194
MD5 b6f343c8d5fab4cd0a7cf29305d301fd
BLAKE2b-256 f929e0f6676af5d79603c3d5cf0e5000d7cf7dafe961e2b3c32e21522358ef7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for comps_sif_constructor-0.3.0.tar.gz:

Publisher: publish-pypi.yml on krosenfeld-IDM/comps-sif-constructor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file comps_sif_constructor-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for comps_sif_constructor-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9172f1f771d49328210bcea0cfadde7b3fb0b8a1bb2575964a694824346b4a1
MD5 e68f047af885f943b5c5f6d9622015a6
BLAKE2b-256 ca8f1d00d2f9d5240311354e25fdff68daae5f12d977894cc19bad6b0fcbdc07

See more details on using hashes here.

Provenance

The following attestation bundles were made for comps_sif_constructor-0.3.0-py3-none-any.whl:

Publisher: publish-pypi.yml on krosenfeld-IDM/comps-sif-constructor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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