Package 'slurmtools'

Title: slurm tooling
Description: What the package does (one paragraph).
Authors: Devin Pastoor [aut, cre], Jenna Elwing [aut], Matthew Smith [aut]
Maintainer: Devin Pastoor <[email protected]>
License: GPL (>= 3)
Version: 0.0.0.9004
Built: 2024-11-08 18:18:18 UTC
Source: https://github.com/a2-ai/slurmtools

Help Index


Cancels a running job

Description

Cancels a running job

Usage

cancel_slurm_job(job_id, confirm = TRUE)

Arguments

job_id

job id to cancel

confirm

requires confirmation to cancel job

Examples

## Not run: 
cancel_job(243)

## End(Not run)

Gets the jobs run on slurm as a tibble

Description

Gets the jobs run on slurm as a tibble

Usage

get_slurm_jobs(user = NULL)

Arguments

user

optional user name to filter jobs only submitted by user

Value

a tibble containing the jobs submitted to slurm

Examples

## Not run: 
get_slurm_jobs()

## End(Not run)

Gets the available slurm partitions the user can use.

Description

Gets the available slurm partitions the user can use.

Usage

get_slurm_partitions(cache = TRUE)

Arguments

cache

optional argument to forgo caching

Value

vector of available partitions

Examples

## Not run: 
get_slurm_partitions

## End(Not run)

slurmtools: An R package for easily submitting NONMEM jobs to slurm.

Description

This package aims to ease the submission and monitoring of NONMEM jobs running on slurm.

submitting jobs

monitoring jobs

  • get_slurm_jobs: Gives a table of submitted jobs to slurm that shows status and other information given with squeue

cancelling jobs

slurm partitions

Author(s)

Maintainer: Devin Pastoor [email protected]

Authors:


submit a nonmem model to slurm in parallel

Description

submit a nonmem model to slurm in parallel

Usage

submit_slurm_job(
  .mod,
  partition = get_slurm_partitions(),
  ncpu = 1,
  overwrite = FALSE,
  dry_run = FALSE,
  ...,
  slurm_job_template_path = getOption("slurmtools.slurm_job_template_path"),
  submission_root = getOption("slurmtools.submission_root"),
  bbi_config_path = getOption("slurmtools.bbi_config_path"),
  slurm_template_opts = list()
)

Arguments

.mod

a path to a model or a bbi nonmem model object

partition

name of the partition to submit the model

ncpu

number of cpus to run the model against

overwrite

whether to overwrite existing model results

dry_run

return the command that would have been invoked, without invoking

...

arguments to pass to processx::run

slurm_job_template_path

path to slurm job template

submission_root

directory to track job submission scripts and output

bbi_config_path

path to bbi.yaml file for bbi configuration

slurm_template_opts

choose slurm template