Skip to content

Commit c91edb9

Browse files
authored
Oscar Mako and module update (#1082)
1 parent 8d9a83b commit c91edb9

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

toolchain/modules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ d-gpu MFC_CUDA_CC=80,86
5454

5555
o Brown Oscar
5656
o-all python
57-
o-cpu hpcx-mpi
57+
o-cpu hpcx-mpi python/3.13.10s
5858
o-gpu nvhpc cuda/12.3.0 cmake/3.26.3
5959
o-gpu CC=nvc CXX=nvc++ FC=nvfortran
6060

toolchain/templates/oscar.mako

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
% if engine == 'batch':
66
#SBATCH --nodes=${nodes}
7-
#SBATCH --ntasks-per-node=${tasks_per_node}
7+
#SBATCH --tasks-per-node=${tasks_per_node}
88
#SBATCH --cpus-per-task=1
99
#SBATCH --job-name="${name}"
1010
#SBATCH --time=${walltime}
@@ -15,9 +15,8 @@
1515
#SBATCH --account="${account}"
1616
% endif
1717
% if gpu_enabled:
18-
#SBATCH --gpus-per-node=${tasks_per_node}
19-
#SBATCH --mem=64G
20-
#SBATCH --gpu-bind=closest
18+
#SBATCH --gpu-bind=verbose,closest
19+
#SBATCH --gres=gpu:v100-16:${tasks_per_node}
2120
% endif
2221
#SBATCH --output="${name}.out"
2322
#SBATCH --error="${name}.err"
@@ -31,7 +30,7 @@
3130
${helpers.template_prologue()}
3231

3332
ok ":) Loading modules:\n"
34-
cd "${MFC_ROOTDIR}"
33+
cd "${MFC_ROOT_DIR}"
3534
. ./mfc.sh load -c o -m ${'g' if gpu_enabled else 'c'}
3635
cd - > /dev/null
3736
echo
@@ -42,9 +41,8 @@ echo
4241
% if not mpi:
4342
(set -x; ${profiler} "${target.get_install_binpath(case)}")
4443
% else:
45-
(set -x; ${profiler} \
46-
mpirun -np ${nodes*tasks_per_node} \
47-
${' '.join([f"'{x}'" for x in ARG('--') ])} \
44+
(set -x; ${profiler} \
45+
mpirun -np ${nodes*tasks_per_node} \
4846
"${target.get_install_binpath(case)}")
4947
% endif
5048

0 commit comments

Comments
 (0)