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 3f6e0ef commit 0b42d4d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -450,16 +450,20 @@ delete-all-in-one:
delete-ai-platform-operator:
ifeq ($(USE_RHOAI), true) ## Delete RHOAI Operator
-make delete-rhoai-operator
-kubectl delete -f contrib/configuration/accelerator-profile.yaml -n redhat-ods-applications
else ## Delete Open Data Hub Operator
-make delete-opendatahub-operator
-kubectl delete -f contrib/configuration/accelerator-profile.yaml -n opendatahub
endif

.PHONY: install-ai-platform-operator
install-ai-platform-operator:
ifeq ($(USE_RHOAI), true) ## Delete RHOAI Operator
-make install-rhoai-operator
-kubectl apply -f contrib/configuration/accelerator-profile.yaml -n redhat-ods-applications
else ## Delete Open Data Hub Operator
-make install-opendatahub-operator
-kubectl apply -f contrib/configuration/accelerator-profile.yaml -n opendatahub
endif

.PHONY: delete-rhoai-operator
Expand Down Expand Up @@ -569,6 +573,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
9 changes: 9 additions & 0 deletions contrib/configuration/accelerator-profile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: dashboard.opendatahub.io/v1
kind: AcceleratorProfile
metadata:
name: gpu-accelerator-profile
spec: {
displayName: nvidia-gpu,
enabled: true,
identifier: nvidia.com/gpu
}

0 comments on commit 0b42d4d

Please sign in to comment.