Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable NVIDIA persistence mode by default for GPU test #3287

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you have a doc link which can put in comments?

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
Loading