Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions test/apps/iodemo/run_io_demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -526,13 +526,15 @@ make_scripts()
echo " -stop <tag> Stop iodemo for given tag"
echo " -kill <tag> Kill iodemo for given tag"
echo " -status <tag> Show status of iodemo for given tag"
echo " -num_path <val> Set UCX_IB_NUM_PATHS variable"
echo
echo "<tag> can be particular client/server or all_servers / all_clients"
echo
echo "If no options are given, run all commands and wait for completion"
echo
}

add_cmd_vars=""
parse_args() {
action=""
tag=""
Expand Down Expand Up @@ -560,6 +562,10 @@ make_scripts()
tag="\$2"
shift
;;
-num_path)
add_cmd_vars+=" UCX_IB_NUM_PATHS=\$2"
shift
;;
-list-tags)
echo all # this tag means to operate on all processes
for ((i=0;i<${num_servers_per_host[${host}]};++i))
Expand Down Expand Up @@ -617,7 +623,7 @@ make_scripts()
cat >>${command_file} <<-EOF
function start_server_${i}() {
mkdir -p ${log_dir}
env IODEMO_ROLE=server_${i} ${cmd_prefix} \\
env IODEMO_ROLE=server_${i} ${add_cmd_vars} ${cmd_prefix} \\
${iodemo_exe} \\
${iodemo_server_args} -p ${port_num} \\
${log_redirect} ${log_file} &
Expand All @@ -635,7 +641,7 @@ make_scripts()
cat >>${command_file} <<-EOF
function start_client_${i}() {
mkdir -p ${log_dir}
env IODEMO_ROLE=client_${i} ${cmd_prefix} \\
env IODEMO_ROLE=client_${i} ${add_cmd_vars} ${cmd_prefix} \\
${iodemo_exe} \\
${iodemo_client_args} ${client_connect_list} \\
${log_redirect} ${log_file} &
Expand Down