HISKP-LQCD / sLapH-contractions

Stochastic LapH contraction program
GNU General Public License v3.0
3 stars 3 forks source link

Job script generator points to wrong executable #66

Closed kostrzewa closed 6 years ago

kostrzewa commented 6 years ago

The generated job script looks like this:

#!/bin/bash
#SBATCH -J contract_cA211a.30.32_light_df_tf_ei11_8
#SBATCH --time=24:00:00
#SBATCH --nodes=1
#SBATCH --mem=100GB
#SBATCH --cpus-per-task=1

#SBATCH --mail-user=[...]
#SBATCH --mail-type=FAIL

#SBATCH --output=/hiskp4/bartek/contractions/nf211/cA211a.30.32/light_df_tf_ei11/cnfg0008/contract_cA211a.30.32_light_df_tf_ei11_8.out
#SBATCH --error=/hiskp4/bartek/contractions/nf211/cA211a.30.32/light_df_tf_ei11/cnfg0008/contract_cA211a.30.32_light_df_tf_ei11_8.err

set -e
set -u

export OMP_NUM_THREADS=${SLURM_CPUS_PER_TASK}

cd /hiskp4/bartek/contractions/nf211/cA211a.30.32/light_df_tf_ei11/cnfg0008

date

(./contract -i /hiskp4/bartek/contractions/nf211/cA211a.30.32/light_df_tf_ei11/contract.input --start_config 8 --end_config 8 || exit 1) &

wait

date

But the executable is copied into the parent directory of the directory that the job cd's into.

martin-ueding commented 6 years ago

I recently changed the working directory and of course missed this. Already fixed.