Skip to content

Flexible test support with openmpi's mpirun #3668

@jgphpc

Description

@jgphpc

pilatus.py

flexible_openmpi.py

Running:

reframe -c flexible_openmpi.py -p PrgEnv-openmpi --system pilatus:normal2 \
-S flexible=True --flex-alloc-nodes=2 --dry-run

will produce a rfm_job.sh file:

#SBATCH --ntasks=8
#SBATCH --ntasks-per-node=4
mpirun -np 0 echo

if the config file sets 'launcher': 'mpirun'.

If the config file sets 'launcher': 'srun', no issue:

#SBATCH --ntasks=8
#SBATCH --ntasks-per-node=4
srun echo

Removing -np from https://github.com/reframe-hpc/reframe/blob/develop/reframe/core/launchers/mpi.py#L113 works but not what we want.

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions