Enable CUDA persistence mode to reduce surprises

This commit is contained in:
Michael Vines 2019-02-21 19:13:05 -08:00 committed by Grimes
parent b501090443
commit fb904e7a29
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,11 @@ FEATURES=bpf_c,bpf_rust,erasure,chacha
if [[ $(uname) = Darwin ]]; then
./build-perf-libs.sh
else
# Enable persistence mode to keep the CUDA kernel driver loaded, avoiding a
# lengthy and unexpected delay the first time CUDA is involved when the driver
# is not yet loaded.
sudo --non-interactive ./net/scripts/enable-nvidia-persistence-mode.sh
./fetch-perf-libs.sh
# shellcheck source=/dev/null
source ./target/perf-libs/env.sh