Files
rocm-systems/tools/p2p-latency-test/build_and_run.sh
T

26 lines
510 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.
export HSA_FORCE_FINE_GRAIN_PCIE=1
echo Running p2p_latency_test using GPU pair 0 1
./p2p_latency_test 0 1
sleep 1
echo Running p2p_latency_test using GPU pair 1 0
./p2p_latency_test 1 0
sleep 1
echo Running ll_latency_test using GPU pair 0 1
./ll_latency_test 0 1
sleep 1
echo Running ll_latency_test using GPU pair 1 0
./ll_latency_test 1 0