File: test_wire_compat.sh

package info (click to toggle)
mpich 4.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 101,184 kB
  • sloc: ansic: 1,040,629; cpp: 82,270; javascript: 40,763; perl: 27,933; python: 16,041; sh: 14,676; xml: 14,418; f90: 12,916; makefile: 9,270; fortran: 8,046; java: 4,635; asm: 324; ruby: 103; awk: 27; lisp: 19; php: 8; sed: 4
file content (31 lines) | stat: -rwxr-xr-x 983 bytes parent folder | download | duplicates (2)
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
#!/bin/bash -eEx
#
# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# See file LICENSE for terms.
#

exe_name=$1
client_opt=$2
common_opt=$3
port=$((10000 + 1000 * ${AZP_AGENT_ID} + 100 * ${WIRE_COMPAT_STAGE_ID}))

export UCX_CM_REUSEADDR=y UCX_LOG_LEVEL=info UCX_WARN_UNUSED_ENV_VARS=n

exe_cmd="stdbuf -oL ${exe_name} -p ${port}"

# Test server is legacy, client is master
LD_LIBRARY_PATH=${UCX_LEGACY_LIB_PATH} ${exe_cmd} ${common_opt} &
server_pid=$!
sleep 5
LD_LIBRARY_PATH=${UCX_PR_LIB_PATH} ${exe_cmd} ${common_opt} ${client_opt} 127.0.0.1
if ! kill -9 ${server_pid}; then echo "server already terminated"; fi

exe_cmd="stdbuf -oL ${exe_name} -p $((port + 10))"

# Test server is master, client is legacy
LD_LIBRARY_PATH=${UCX_PR_LIB_PATH} ${exe_cmd} ${common_opt} &
server_pid=$!
sleep 5
LD_LIBRARY_PATH=${UCX_LEGACY_LIB_PATH} ${exe_cmd} ${common_opt} ${client_opt} 127.0.0.1
if ! kill -9 ${server_pid}; then echo "server already terminated"; fi