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

[mig-manager] move library/nvidia-smi discovery logic to Go #85

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

cdesiniotis
Copy link
Contributor

No description provided.

Copy link
Member

@elezar elezar left a comment

Choose a reason for hiding this comment

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

Thanks @cdesiniotis.

It would be better if we move away from global variables here -- especially for the new code.

cmd/nvidia-mig-manager/main.go Outdated Show resolved Hide resolved
cmd/nvidia-mig-manager/main.go Show resolved Hide resolved
cmd/nvidia-mig-manager/main.go Outdated Show resolved Hide resolved
q ) # process option q
NVIDIA_SMI_PATH=${OPTARG}
;;
\? ) echo "Usage: ${0} -n <node> -f <config-file> -c <selected-config> -p <default-gpu-clients-namespace> [-e -t <driver-root> -a <driver-root-ctr-path> -b <dev-root> -j <dev-root-ctr-path> -l <driver-library-path> -q <nvidia-smi-path> ] [ -m <host-root-mount> -i <host-nvidia-dir> -o <host-mig-manager-state-file> -g <host-gpu-client-services> -k <host-kubelet-service> -r -s ]"
Copy link
Member

Choose a reason for hiding this comment

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

Any reason why we don't call usage and exit here? (like we do for h)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not aware of any reason not to. I can update this to call usage and exit in a follow-up.

@cdesiniotis cdesiniotis force-pushed the move-file-discovery-to-go branch from 12fab2e to f8b0c31 Compare June 25, 2024 08:53
@cdesiniotis cdesiniotis requested a review from elezar June 25, 2024 14:33
Copy link
Member

@elezar elezar left a comment

Choose a reason for hiding this comment

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

Looks good now.

@cdesiniotis cdesiniotis merged commit 138411f into NVIDIA:main Jun 25, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants