forked from linux-rdma/perftest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmulti_nic_receive_buffer
More file actions
50 lines (43 loc) · 1.23 KB
/
multi_nic_receive_buffer
File metadata and controls
50 lines (43 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
#
# Wrapper script for multi-NIC RDMA receive buffer test
# Runs as server (receiver) with configurable NVLink support
#
# Hardcoded configuration
NICS="mlx5_0,mlx5_3,mlx5_4,mlx5_5,mlx5_6,mlx5_9,mlx5_10,mlx5_11"
GPUS="0,1,2,3,4,5,6,7"
# Parse arguments
USE_NVLINK=0
while [[ $# -gt 0 ]]; do
case $1 in
--allow-nvlink)
USE_NVLINK=1
shift
;;
--help|-h)
echo "Usage: $0 [OPTIONS]"
echo ""
echo "Options:"
echo " --allow-nvlink Enable NVLink transfers (default: disabled, uses --nics-only)"
echo " --help, -h Show this help message"
echo ""
echo "Examples:"
echo " $0 # Receive with NICs-only mode"
echo " $0 --allow-nvlink # Receive with NVLink enabled"
exit 0
;;
*)
echo "Unknown option: $1"
echo "Use --help for usage information"
exit 1
;;
esac
done
# Build command
CMD="./test_rdma_multi_qp -s --nics ${NICS} --gpus ${GPUS}"
# Add --nics-only flag if NVLink is not enabled
if [[ $USE_NVLINK -eq 0 ]]; then
CMD="${CMD} --nics-only"
fi
# Execute
exec ${CMD}