Skip to content

Commit

Permalink
Ensure ngen entrypoint uses mpirun exec correctly.
Browse files Browse the repository at this point in the history
Make sure entrypoint script uses function that runs ngen job in parallel
using mpirun command in cases when multiple CPUs on only a single node
were allocated for the job.
  • Loading branch information
robertbartel committed Jul 26, 2023
1 parent 72274f2 commit 9be3ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/main/ngen/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ cd ${OUTPUT_DATASET_DIR}

if [ "${WORKER_INDEX}" = "0" ]; then
if [ "$(whoami)" = "${MPI_USER}" ]; then
if [ ${MPI_NODE_COUNT:-1} -gt 1 ]; then
if [ -n "${PARTITION_DATASET_DIR:-}" ]; then
exec_main_worker_ngen_run
else
exec_serial_ngen_run
Expand Down

0 comments on commit 9be3ac7

Please sign in to comment.