charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: Robert Steinke <rsteinke AT uwyo.edu>
- To: Charm Mailing List <charm AT cs.illinois.edu>
- Subject: [charm] Using charmrun with Slurm
- Date: Wed, 25 Mar 2015 14:02:34 -0600
- Authentication-results: cs.illinois.edu; dkim=none (message not signed) header.d=none;
- List-archive: <http://lists.cs.uiuc.edu/pipermail/charm/>
- List-id: CHARM parallel programming system <charm.cs.uiuc.edu>
Our machine recently got switched to the Slurm job scheduler. Now, in order to run jobs we need to use "srun -n <number of processes>" instead of "mpirun -np <number of processes>". The charmrun script doesn't work as-is. I hand edited this part of charmrun to replace "mpirun -np" with "srun -n" and it worked:
if [ -n "$setarch_cmd" -a -x "$setarch_cmd" ]
then
# Disables randomization of the virtual address space (turns on
# ADDR_NO_RANDOMIZE).
cur_arch=`uname -m`
echo "charmrun> $setarch_cmd $cur_arch -R mpirun -np $pes $args"
$setarch_cmd $cur_arch -R mpirun -np $pes $args
else
echo "charmrun> mpirun -np $pes $args"
mpirun -np $pes $args
fi
Is there an official solution for using charmrun with Slurm?
Thanks
Bob Steinke
- [charm] Using charmrun with Slurm, Robert Steinke, 03/25/2015
- Re: [charm] [ppl] Using charmrun with Slurm, Jim Phillips, 03/25/2015
Archive powered by MHonArc 2.6.16.