Skip to content

Commit

Permalink
Fixed cosmomc sbatch error
Browse files Browse the repository at this point in the history
  • Loading branch information
OmegaLambda1998 committed Feb 25, 2021
1 parent 4bbbc17 commit 2d1daa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pippin/cosmomc.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ def _run(self):
header_dict = {
"job-name": self.job_name,
"time": "34:00:00",
"ntasks": f"{max([int(self.num_walkers/5),1])}",
"ntasks": f"10",
"array": f"1-{len(self.ini_files)}",
"cpus-per-task": "1",
"output": self.logfile,
"mem-per-cpu": f"{max([int(20/self.num_walkers),4])}GB"
"mem-per-cpu": f"2GB"
}
self.update_header(header_dict)

Expand Down
3 changes: 2 additions & 1 deletion pippin/tasks/cosmomc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK

export I_MPI_HYDRA_TOPOLIB=ipl

#module unload openmpi
#module load intelmpi/5.1+intel-16.0
#module load cfitsio/3
Expand Down

0 comments on commit 2d1daa2

Please sign in to comment.