Files
rocm-systems/tools/p2p-latency-test/build_and_run.sh
T
Wenkai Du 1c1ec096e2 tools: Add LL latency test (#820)
* Add LL latency test

* Correct name in usage
2023-07-25 20:08:04 -07:00

25 lines
733 B
Bash

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
make
# Example run: test one-way latency between GPU 0 and GPU 1 in both directions.
echo Running p2p_latency_test using GPU pair 0 1
HIP_VISIBLE_DEVICES=0 ./p2p_latency_test 0 & HIP_VISIBLE_DEVICES=1 ./p2p_latency_test 1
sleep 1
echo Running p2p_latency_test using GPU pair 1 0
HIP_VISIBLE_DEVICES=1 ./p2p_latency_test 0 & HIP_VISIBLE_DEVICES=0 ./p2p_latency_test 1
sleep 1
echo Running ll_latency_test using GPU pair 0 1
HIP_VISIBLE_DEVICES=0 ./ll_latency_test 0 & HIP_VISIBLE_DEVICES=1 ./ll_latency_test 1
sleep 1
echo Running ll_latency_test using GPU pair 1 0
HIP_VISIBLE_DEVICES=1 ./ll_latency_test 0 & HIP_VISIBLE_DEVICES=0 ./ll_latency_test 1