From 3440b7d100f3088d9ca7fc3c67e191b0805ee5a3 Mon Sep 17 00:00:00 2001 From: Henry Li Date: Tue, 30 Apr 2024 17:57:09 -0700 Subject: [PATCH] microsoft/testsuites/gpu/gpusuite.py --- microsoft/testsuites/gpu/gpusuite.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/microsoft/testsuites/gpu/gpusuite.py b/microsoft/testsuites/gpu/gpusuite.py index 7556114d68..50c6c9268c 100644 --- a/microsoft/testsuites/gpu/gpusuite.py +++ b/microsoft/testsuites/gpu/gpusuite.py @@ -415,6 +415,9 @@ def _install_driver(node: Node, log_path: Path, log: Logger) -> None: __install_driver_using_sdk(node, log, log_path) + # Enabling nvidia persistence mode which is recommended by NVIDIA + node.execute(f"sudo nvidia-persistenced --persistence-mode") + def _gpu_provision_check(min_pci_count: int, node: Node, log: Logger) -> None: lspci = node.tools[Lspci]