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

wait for mofed driver installation after the cleanup driver call #7

Merged
merged 1 commit into from
Feb 21, 2024
Merged
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
12 changes: 6 additions & 6 deletions driver-manager
Original file line number Diff line number Diff line change
Expand Up @@ -571,12 +571,6 @@ _wait_for_mofed_driver() {
}

uninstall_driver() {
# when GPUDirectRDMA is enabled, wait until MOFED driver has finished installing
if _gpu_direct_rdma_enabled; then
echo "GPUDirectRDMA is enabled, validating MOFED driver installation"
_wait_for_mofed_driver
fi

# don't attempt to un-install if driver is pre-installed on the node
if _host_driver; then
echo "NVIDIA GPU driver is already pre-installed on the node, disabling the containerized driver on the node"
Expand Down Expand Up @@ -645,6 +639,12 @@ uninstall_driver() {
_exit_failed
fi

# when GPUDirectRDMA is enabled, wait until MOFED driver has finished installing
if _gpu_direct_rdma_enabled; then
echo "GPUDirectRDMA is enabled, validating MOFED driver installation"
_wait_for_mofed_driver
fi

if _is_gpu_pod_eviction_enabled || _is_auto_drain_enabled; then
# uncordon the node in case if the pod has restarted abruptly after we cordoned the node
_uncordon_k8s_node
Expand Down