You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
486 B
Bash
21 lines
486 B
Bash
#!/usr/bin/env bash
|
|
#SBATCH -o slurm.out
|
|
#SBATCH -e slurm.err
|
|
#SBATCH -N 2
|
|
#SBATCH --ntasks-per-node 32
|
|
#SBATCH --partition=free-rider
|
|
|
|
hostname
|
|
date
|
|
|
|
source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
|
|
|
# vuelca lista de nodos asignados a un archivo "nodefile"
|
|
nodelist=$(scontrol show hostname $SLURM_NODELIST)
|
|
printf "%s\n" "${nodelist[@]}" > nodefile
|
|
|
|
source venv/bin/activate
|
|
|
|
# ejecuta mpirun con el nodefile creado
|
|
mpirun --hostfile nodefile python3 ./mpirunner.py
|