Skip to content

Commit

Permalink
Merge pull request #57 from archlitchi/dev-vgpu-1219
Browse files Browse the repository at this point in the history
adjust docs ,submodule libvgpu, update ci
  • Loading branch information
william-wang authored Feb 4, 2024
2 parents b90971f + 4002de6 commit 504ec3e
Show file tree
Hide file tree
Showing 83 changed files with 31 additions and 11,993 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ on:
- v[0-9]+.[0-9]+.[0-9]+
branches: [master,dev-vgpu-1219]
pull_request:
branches: [master,dev-vgpu-1219]
branches: [master]
pull_request_target:
branches: [dev-vgpu-1219]

jobs:
build:
Expand All @@ -15,6 +17,12 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: "^1.19.x"

- name: Checkout submodule
uses: Mushus/checkout-submodule@v1.0.1
with:
submodulePath: libvgpu

- run: go version
# Runs a set of commands to initialize and analyze with FOSSA

Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "libvgpu"]
path = libvgpu
url = https://github.com/Project-HAMi/HAMi-core.git
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Volcano device plugin for Kubernetes

**Note**:
This is based on [Nvidia Device Plugin](https://github.com/NVIDIA/k8s-device-plugin) to support soft isolation of GPU card.
This is based on [Nvidia Device Plugin](https://github.com/NVIDIA/k8s-device-plugin), it uses [HAMi-core](https://github.com/Project-HAMi/HAMi-core) to support hard isolation of GPU card.

And collaborate with volcano, it is possible to enable GPU sharing.

## Table of Contents
Expand All @@ -23,6 +24,7 @@ The Volcano device plugin for Kubernetes is a Daemonset that allows you to autom
- Expose the number of GPUs on each node of your cluster
- Keep track of the health of your GPUs
- Run GPU enabled containers in your Kubernetes cluster.
- Enforce hard resource limit in container.

This repository contains Volcano's official implementation of the [Kubernetes device plugin](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/resource-management/device-plugin.md).

Expand Down
2 changes: 1 addition & 1 deletion docker/amd64/Dockerfile.vgpu-ubuntu20.04
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RUN export CGO_LDFLAGS_ALLOW='-Wl,--unresolved-symbols=ignore-in-object-files' &
go build -ldflags="-s -w" -o volcano-vgpu-device-plugin ./cmd/vgpu

FROM $NVIDIA_IMAGE AS NVBUILD
COPY ./lib/nvidia/libvgpu /libvgpu
COPY ./libvgpu /libvgpu
WORKDIR /libvgpu
RUN apt-get -y update; apt-get -y install wget
RUN wget https://cmake.org/files/v3.19/cmake-3.19.8-Linux-x86_64.tar.gz
Expand Down
76 changes: 0 additions & 76 deletions lib/nvidia/libvgpu/CMakeLists.txt

This file was deleted.

88 changes: 0 additions & 88 deletions lib/nvidia/libvgpu/README.md

This file was deleted.

38 changes: 0 additions & 38 deletions lib/nvidia/libvgpu/build.sh

This file was deleted.

11 changes: 0 additions & 11 deletions lib/nvidia/libvgpu/dockerfiles/Dockerfile.aarch64

This file was deleted.

11 changes: 0 additions & 11 deletions lib/nvidia/libvgpu/dockerfiles/Dockerfile.x86_64

This file was deleted.

Binary file removed lib/nvidia/libvgpu/docs/images/sample_nvidia-smi.png
Binary file not shown.
4 changes: 0 additions & 4 deletions lib/nvidia/libvgpu/framework_test/Dockerfile

This file was deleted.

2 changes: 0 additions & 2 deletions lib/nvidia/libvgpu/framework_test/README.md

This file was deleted.

53 changes: 0 additions & 53 deletions lib/nvidia/libvgpu/framework_test/clients/dockerclient.go

This file was deleted.

41 changes: 0 additions & 41 deletions lib/nvidia/libvgpu/framework_test/clients/nvmlclient.go

This file was deleted.

6 changes: 0 additions & 6 deletions lib/nvidia/libvgpu/framework_test/config.toml

This file was deleted.

Loading

0 comments on commit 504ec3e

Please sign in to comment.