Skip to content

Commit

Permalink
Added custom accelerator and removal of nvidia driver
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobbins228 committed May 29, 2024
1 parent 902d924 commit ff49cf9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ ifeq ($(USE_RHOAI), true) ## Delete RHOAI Operator
else ## Delete Open Data Hub Operator
-make delete-opendatahub-operator
endif
kubectl delete -f contrib/configuration/accelerator-profile.yaml

.PHONY: install-ai-platform-operator
install-ai-platform-operator:
Expand All @@ -461,6 +462,7 @@ ifeq ($(USE_RHOAI), true) ## Delete RHOAI Operator
else ## Delete Open Data Hub Operator
-make install-opendatahub-operator
endif
kubectl apply -f contrib/configuration/accelerator-profile.yaml

.PHONY: delete-rhoai-operator
delete-rhoai-operator: ## Delete RHOAI Operator
Expand Down Expand Up @@ -569,6 +571,7 @@ endif
.PHONY: delete-nvidia-operator
delete-nvidia-operator: ## Delete nvidia operator
@echo -e "\n==> Deleting ClusterPolicy CR \n"
kubectl delete --ignore-not-found=true NVIDIADriver gpu-driver
kubectl delete ClusterPolicy --all -n nvidia-gpu-operator
@while [[ -n $$(kubectl get ClusterPolicy -n nvidia-gpu-operator) ]]; do echo "."; sleep 10; done
@echo -e "\n==> Deleting nvidia Operator \n"
Expand Down
10 changes: 10 additions & 0 deletions contrib/configuration/accelerator-profile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: dashboard.opendatahub.io/v1
kind: AcceleratorProfile
metadata:
name: gpu-accelerator-profile
namespace: redhat-ods-applications
spec: {
displayName: nvidia-gpu,
enabled: true,
identifier: nvidia.com/gpu
}

0 comments on commit ff49cf9

Please sign in to comment.