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.
simulacion-permeabilidad/run-simulation-slurm

23 lines
515 B
Bash

#!/usr/bin/env bash
#SBATCH -o simulation-%j.out
#SBATCH -e simulation-%j.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
rm nodefile