We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7fcd19 commit 46510a9Copy full SHA for 46510a9
reframe/core/launchers/mpi.py
@@ -20,14 +20,14 @@ def __init__(self):
20
self.use_cpus_per_task = True
21
try:
22
out = osext.run_command('srun --version')
23
- match = re.search('slurm (\d+)\.(\d+)\.(\d+)', out.stdout)
+ match = re.search(r'slurm(-wlm)? (\d+)\.(\d+)\.(\d+)', out.stdout)
24
if match:
25
# We cannot pass to semver strings like 22.05.1 directly
26
# because it is not a valid version string for semver. We
27
# need to remove all the leading zeros.
28
slurm_version = (
29
semver.VersionInfo(
30
- match.group(1), match.group(2), match.group(3)
+ match.group(2), match.group(3), match.group(4)
31
)
32
33
if slurm_version < semver.VersionInfo(22, 5, 0):
0 commit comments