1c1ec096e2
* Add LL latency test * Correct name in usage
25 lines
733 B
Bash
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
|