Skip to content
Snippets Groups Projects
Commit 693a149f authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

tweak basic SLURM config

parent e5c265c3
Branches
Tags
No related merge requests found
Pipeline #66870 passed
......@@ -725,10 +725,11 @@ class _code(_base):
## make sure that "~/.config/TurTLE/bashrc" exists and builds desired job environment
#script_file.write('#SBATCH --export=NONE\n')
#script_file.write('#SBATCH --get-user-env\n')
#script_file.write('export OMP_PLACES=cores\n') # or threads, as appropriate
# also look up OMP_PROC_BIND and SLURM_HINT
#script_file.write('source ~/.config/TurTLE/bashrc\n')
if nb_threads_per_process > 1:
script_file.write('export OMP_NUM_THREADS={0}\n'.format(nb_threads_per_process))
script_file.write('export OMP_PLACES=cores\n')
script_file.write('export OMP_NUM_THREADS=${SLURM_CPUS_PER_TASK}\n')
script_file.write('echo "Start time is `date`"\n')
script_file.write('cd ' + self.work_dir + '\n')
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment