#!/usr/bin/env bash
# ------------------------------------------------------------------------------
# This file submits a job to the SLURM queue for CPU profling.
# ------------------------------------------------------------------------------
#SBATCH --job-name=ectrans_extrae_nlat_128_nlon_128
#SBATCH --partition=dev-g
#SBATCH --exclusive
#SBATCH --mem=0
#SBATCH --account=project_465000454
#SBATCH --nodes=1
#SBATCH --cpus-per-task=6
#SBATCH --gpus-per-node=8
#SBATCH --ntasks-per-node=8
#SBATCH --time=1:00:00

# Set required ENV variables.
export BINARY="ectrans-lam-benchmark-gpu-dp-acc"
export RESDIR="res-extrae_nlat_128_nlon_128"

# Set runtime arguments to ENV value or default.
[ -z "$NPROMA" ] && export NPROMA=64
[ -z "$NFLD" ] && export NFLD=3
[ -z "$NLEV" ] && export NLEV=100
[ -z "$NITER" ] && export NITER=10
[ -z "$NLAT" ] && export NLAT=128
[ -z "$NLON" ] && export NLON=128

# Profile the ecTrans dwarf.
./ectrans_extrae_lumi-g.sh
