-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and clean up quickstart README
Signed-off-by: Yuan Chen <[email protected]> Add link Signed-off-by: Yuan Chen <[email protected]> Minor typo fix Signed-off-by: Yuan Chen <[email protected]> Add a new folder mig
- Loading branch information
1 parent
917e1ce
commit 110186f
Showing
5 changed files
with
71 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#### Show the current MIG configuration of the machine | ||
```console | ||
nvidia-smi --query-gpu=index,name,uuid,mig.mode.current --format=csv | ||
nvidia-smi -L | ||
``` | ||
|
||
#### Show current state of the cluster | ||
```console | ||
kubectl get pod -A | ||
``` | ||
|
||
#### Show the yaml files for MIG example apps: | ||
```console | ||
vim -O gpu-test4.yaml gpu-test5.yaml gpu-test6.yaml | ||
``` | ||
|
||
#### Deploy the 3 MIG example apps above: | ||
```console | ||
kubectl apply --filename=gpu-test{4,5,6}.yaml | ||
``` | ||
|
||
#### Show all the pods starting up: | ||
```console | ||
kubectl get pod -A -l app=pod | ||
``` | ||
|
||
#### Show the output of nvidia-smi: | ||
```console | ||
nvidia-smi -L | ||
``` | ||
|
||
#### Show the MIG devices allocated to each pod in gpu-test4 | ||
```console | ||
for pod in \ | ||
$(kubectl get pod \ | ||
-n gpu-test4 \ | ||
--output=jsonpath='{.items[*].metadata.name}'); \ | ||
do \ | ||
echo "${pod}:" | ||
kubectl logs -n gpu-test4 ${pod} -c ctr0 | ||
kubectl logs -n gpu-test4 ${pod} -c ctr1 | ||
kubectl logs -n gpu-test4 ${pod} -c ctr2 | ||
kubectl logs -n gpu-test4 ${pod} -c ctr3 | ||
echo "" | ||
done | ||
``` | ||
|
||
#### Delete this MIG examples: | ||
```console | ||
kubectl delete --filename=gpu-test{4,5,6}.yaml | ||
``` | ||
|
||
#### Show the pods terminating: | ||
```console | ||
kubectl get pods -A -l app=pod | ||
``` | ||
|
||
#### Show the output of nvidia-smi | ||
```console | ||
nvidia-smi -L | ||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters