Skip to content

Commit

Permalink
enable nvidia persistence mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Li committed May 1, 2024
1 parent 5e6a41d commit 9dd953c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions microsoft/testsuites/gpu/gpusuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,14 @@ 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(
"nvidia-persistenced --persistence-mode",
sudo=True,
expected_exit_code=0,
expected_exit_code_failure_message="fail to enable nvidia persistence mode",
)


def _gpu_provision_check(min_pci_count: int, node: Node, log: Logger) -> None:
lspci = node.tools[Lspci]
Expand Down

0 comments on commit 9dd953c

Please sign in to comment.