TensorRT-LLMs/tests/unittest/llmapi/_test_remote_mpi_session.sh
Yan Chunwei 77288d3671 fix [nvbug5351244]: test_mpi_session submit sync/async (#5608)
Signed-off-by: Superjomn <328693+Superjomn@users.noreply.github.com>
2025-07-04 13:14:13 +08:00

13 lines
289 B
Bash

#!/bin/bash
set -ex
task=$1
echo "Starting remote MPI session test with task: $task"
echo "MPI processes: 2"
# Add timeout to prevent infinite hanging
timeout 60 mpirun -np 2 trtllm-llmapi-launch python3 _run_mpi_comm_task.py --task_type $task
echo "Remote MPI session test completed"