Skip to content

Commit

Permalink
fix: Raise error on non-homogeneous MPI requests
Browse files Browse the repository at this point in the history
  • Loading branch information
b-butler committed Nov 8, 2023
1 parent ebdd1cd commit 5099399
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flow/templates/umich-greatlakes.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{% extends "slurm.sh" %}
{% set partition = partition|default('standard', true) %}
{% if not (force or operations|homogeneous_openmp_mpi_config) %}
{% raise "Can only submit jobs with identical nranks and omp_num_threads" %}
{% endif %}
{% block tasks %}
{% if resources.ngpu_tasks and 'gpu' not in partition and not force %}
{% raise "Requesting GPUs requires a gpu partition!" %}
Expand Down

0 comments on commit 5099399

Please sign in to comment.