File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 18
18
# SBATCH --qos=${quality_of_service}
19
19
% endif
20
20
% if gpu:
21
- # SBATCH --gres=gpu:V100:${tasks_per_node}
22
- # SBATCH --mem-per-gpu=16G\
21
+ # SBATCH -G${tasks_per_node}
23
22
% endif
24
23
% if email:
25
24
# SBATCH --mail-user=${email}
41
40
% if not mpi:
42
41
(set -x; ${profiler} " ${target.get_install_binpath(case)} " )
43
42
% else:
44
- (set -x; ${profiler} \
45
- mpirun -np ${nodes* tasks_per_node} \
46
- --bind-to none \
47
- " ${target.get_install_binpath(case)} " )
43
+ (set -x; srun \
44
+ % if engine == ' interactive' :
45
+ --nodes ${nodes} --ntasks-per-node ${tasks_per_node} \
46
+ --cpus-per-task 1 \
47
+ % if gpu:
48
+ --gpus-per-task 1 --gpu-bind closest \
49
+ % endif
50
+ % endif
51
+ ${profiler} " ${target.get_install_binpath(case)} " )
48
52
% endif
49
53
50
54
${helpers.run_epilogue(target)}
You can’t perform that action at this time.
0 commit comments