Commit ae586ce3 authored by ext-neveu_n's avatar ext-neveu_n
Browse files

Adding export I_MPI_SLURM_EXT=0 to all sbatch scripts

parent a2b00384
......@@ -475,15 +475,18 @@ class Simulation:
s1 += "#SBATCH --ntasks=" + str(cores) + "\n"
#s1 += "#SBATCH --ntasks-per-core=1 \n"
#s1 += "#SBATCH --cpus-per-task=1 \n"
s1 += "export I_MPI_SLURM_EXT=0 \n"
s1 += "export I_MPI_FABRICS=shm:tmi \n"
if int(nodes) > 1:
s1 += "#SBATCH --ntasks-per-node=" + str(tasks_per_node) + " \n"
s1 += "export I_MPI_FABRICS=shm:tmi \n"
s1 += "mpirun -n $SLURM_NTASKS "+ opalexe + " " + oinpFile + "\n"
else:
s1 += "mpirun -n $SLURM_NTASKS " + opalexe + " " + oinpFile + "\n"
#s1 += "#SBATCH --mem=" + ram + "GB \n"
#s1 += "export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK \n"
#s1 += "--hint=nomultithread " + opalexe + " " + oinpFile + "\n"
myfile.write(s1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment