From fb904e7a29e804ed183fcfa232b8273bffcfc069 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 21 Feb 2019 19:13:05 -0800 Subject: [PATCH] Enable CUDA persistence mode to reduce surprises --- ci/test-stable-perf.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/test-stable-perf.sh b/ci/test-stable-perf.sh index ed4dfc79b0..b3ce8d248c 100755 --- a/ci/test-stable-perf.sh +++ b/ci/test-stable-perf.sh @@ -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