Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

Commit 4fcca3b

Browse files
ln23415root
andauthored
0.4-update (#53)
* Update README.md * Create README.md * Update README.md * Update README.md * fix-secret-namespace * Update README.md * Update README.md * Update README.md * Add files via upload * Update README.md * Update util.go * Create build.yml * Update build.yml * Delete .github directory * Update Dockerfile * Create docker-image.yml * Update docker-image.yml * Update docker-image.yml * Update docker-image.yml * Update README.md * Update README.md * Delete docker-image.yml * Update README.md * Update README.md * Update Makefile * Update bitfusion-client-configmap.yaml * Update pod.yaml * Update deployment.yaml * Update job.yaml * Update pod-filter.yaml * Update pod-memory.yaml Co-authored-by: root <[email protected]>
1 parent 0fa882d commit 4fcca3b

File tree

8 files changed

+46
-46
lines changed

8 files changed

+46
-46
lines changed

bitfusion_device_plugin/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ IMAGE_REPO ?= docker.io/bitfusiondeviceplugin
55
DEVICE_IMAGE_NAME ?= bitfusion-device-plugin
66
WEBHOOK_IMAGE_NAME ?= bitfusion-webhook
77
PKG_IMAGE_NAME ?= bitfusion-client
8-
IMAGE_TAG ?= 0.3
8+
IMAGE_TAG ?= 0.4
99
K8S_PLATFORM ?= community
1010

1111
export K8S_PLATFORM

bitfusion_device_plugin/README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ bitfusion-webhook runs as a Deployment on the Kubernetes master node.
6464
## 2. Prerequisites
6565
- Ubuntu Linux as the operating system of the installation machine
6666
- OpenSSL needs to be installed on Ubuntu
67-
- Kubernetes 1.17+
68-
- Bitfusion 3.5 and 4.0.1
67+
- Kubernetes 1.16+
68+
- Bitfusion 4.0.1 and 4.5.0
6969
- kubectl and docker command are ready to use.
7070
- need to specify the command field in the POD
7171

@@ -201,7 +201,7 @@ IMAGE_REPO ?= docker.io/bitfusiondeviceplugin
201201
DEVICE_IMAGE_NAME ?= bitfusion-device-plugin
202202
WEBHOOK_IMAGE_NAME ?= bitfusion-webhook
203203
PKG_IMAGE_NAME ?= bitfusion-client
204-
IMAGE_TAG ?= 0.3
204+
IMAGE_TAG ?= 0.4
205205
```
206206

207207
Now start building images using the command below:
@@ -214,9 +214,9 @@ If everything works well, use the following command to check images:
214214
```shell
215215
$ docker images
216216
REPOSITORY TAG
217-
docker.io/bitfusiondeviceplugin/bitfusion-device-plugin 0.3
218-
docker.io/bitfusiondeviceplugin/bitfusion-webhook 0.3
219-
docker.io/bitfusiondeviceplugin/bitfusion-client 0.3
217+
docker.io/bitfusiondeviceplugin/bitfusion-device-plugin 0.4
218+
docker.io/bitfusiondeviceplugin/bitfusion-webhook 0.4
219+
docker.io/bitfusiondeviceplugin/bitfusion-client 0.4
220220

221221
```
222222

@@ -310,7 +310,7 @@ After completing the installation, users can write a YAML file of Kubernetes to
310310
| bitfusion.io/gpu-percent | positive integer |Percentage of the memory of each GPU|
311311
| bitfusion.io/gpu-memory | positive integer |Memory size of each GPU,The default unit is bit.It can be used with the K8s native memory application unit (Mi,M,G,Gi)|
312312
| bitfusion-client/os | ubuntu18 / ubuntu20 / centos7 / centos8 |The OS of the containers that use the Bitfusion client|
313-
| bitfusion-client/version | 350/401 |The version of Bitfusion client to be used in this container is 3.5 or 4.0.1|
313+
| bitfusion-client/version | 401/450 |The version of Bitfusion client to be used in this container is 3.5 or 4.0.1|
314314

315315

316316
Below is a sample YAML of Pod which runs a benchmark of Tensorflow. The variable `hostPath` is the directory where the Tensorflow Benchmarks code resides on the host and it will be mounted into the pod.
@@ -328,7 +328,7 @@ metadata:
328328
annotations:
329329
auto-management/bitfusion: "all"
330330
bitfusion-client/os: "ubuntu18"
331-
bitfusion-client/version: "401"
331+
bitfusion-client/version: "450"
332332
name: bf-pkgs
333333
# You can specify any namespace
334334
namespace: tensorflow-benchmark
@@ -376,7 +376,7 @@ metadata:
376376
annotations:
377377
auto-management/bitfusion: "all"
378378
bitfusion-client/os: "ubuntu18"
379-
bitfusion-client/version: "401"
379+
bitfusion-client/version: "450"
380380
name: bf-pkgs
381381
# You can specify any namespace
382382
namespace: tensorflow-benchmark
@@ -500,7 +500,7 @@ total images/sec: 199.65
500500

501501
### 4.3. The configuration of "auto-management/bitfusion parameter"
502502

503-
If the value of auto-management/bitfusion parameter is set to "all", use the following command to to check the status of the pod when the workload has been summited.
503+
If the value of auto-management/bitfusion parameter is set to "all", use the following command to to check the status of the pod when the workload has been submitted.
504504

505505
```bash
506506
$ kubectl edit pod -n tensorflow-benchmark bf-pkgs
@@ -610,7 +610,7 @@ metadata:
610610
annotations:
611611
auto-management/bitfusion: "all"
612612
bitfusion-client/os: "ubuntu18"
613-
bitfusion-client/version: "401"
613+
bitfusion-client/version: "450"
614614
# Use a single filter condition
615615
bitfusion-client/filter: "server.hostname=bf-server"
616616
name: bf-pkgs
@@ -643,7 +643,7 @@ metadata:
643643
annotations:
644644
auto-management/bitfusion: "all"
645645
bitfusion-client/os: "ubuntu18"
646-
bitfusion-client/version: "401"
646+
bitfusion-client/version: "450"
647647
# Use multiple filter criteria
648648
bitfusion-client/filter: "server.hostname=bf-server server.addr=192.168.1.1 server.hostname=bf-server2"
649649
name: bf-pkgs
@@ -708,7 +708,7 @@ metadata:
708708
  annotations:
709709
    auto-management/bitfusion: "all"
710710
    bitfusion-client/os: "ubuntu18"
711-
bitfusion-client/version: "401"
711+
bitfusion-client/version: "450"
712712
  name: bf-pkgs
713713
  namespace: tensorflow-benchmark
714714
spec:
@@ -762,7 +762,7 @@ metadata:
762762
  annotations:
763763
    auto-management/bitfusion: "all"
764764
    bitfusion-client/os: "ubuntu18"
765-
bitfusion-client/version: "401"
765+
bitfusion-client/version: "450"
766766
  name: bf-pkgs
767767
  namespace: tensorflow-benchmark
768768
spec:
@@ -917,18 +917,18 @@ After that run the "make deploy" command to start the deployment.
917917
Below is another image regsitry for users to get the docker images.
918918
- Option 1: Tencentyun
919919
```shell
920-
ccr.ccs.tencentyun.com/bitfusion/bitfusion-device-plugin:0.3
920+
ccr.ccs.tencentyun.com/bitfusion/bitfusion-device-plugin:0.4
921921

922-
ccr.ccs.tencentyun.com/bitfusion/bitfusion-webhook:0.3
922+
ccr.ccs.tencentyun.com/bitfusion/bitfusion-webhook:0.4
923923

924-
ccr.ccs.tencentyun.com/bitfusion/bitfusion-client:0.3
924+
ccr.ccs.tencentyun.com/bitfusion/bitfusion-client:0.4
925925
```
926926
- Option 2: GHCR
927927
```
928-
ghcr.io/ln23415/bitfusion-device-plugin:0.3
928+
ghcr.io/ln23415/bitfusion-device-plugin:0.4
929929
930-
ghcr.io/ln23415/bitfusion-webhook:0.3
930+
ghcr.io/ln23415/bitfusion-webhook:0.4
931931
932-
ghcr.io/ln23415/bitfusion-client:0.3
932+
ghcr.io/ln23415/bitfusion-client:0.4
933933
```
934934

bitfusion_device_plugin/example/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
annotations:
1616
auto-management/bitfusion: "all"
1717
bitfusion-client/os: "ubuntu18"
18-
bitfusion-client/version: "401"
18+
bitfusion-client/version: "450"
1919
name: bf-pkgs
2020
labels:
2121
app: share-gpu

bitfusion_device_plugin/example/job.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ spec:
99
annotations:
1010
auto-management/bitfusion: "all"
1111
bitfusion-client/os: "ubuntu18"
12-
bitfusion-client/version: "401"
12+
bitfusion-client/version: "450"
1313
name: bf-pkgs
1414
spec:
1515
restartPolicy: OnFailure

bitfusion_device_plugin/example/pod-filter.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
annotations:
55
auto-management/bitfusion: "all"
66
bitfusion-client/os: "ubuntu18"
7-
bitfusion-client/version: "401"
7+
bitfusion-client/version: "450"
88
bitfusion-client/filter: "server.hostname=bf-server"
99
name: bf-pkgs
1010
namespace: tensorflow-benchmark

bitfusion_device_plugin/example/pod-memory.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
annotations:
55
auto-management/bitfusion: "all"
66
bitfusion-client/os: "ubuntu18"
7-
bitfusion-client/version: "401"
7+
bitfusion-client/version: "450"
88
name: bf-pkgs
99
namespace: tensorflow-benchmark
1010
spec:

bitfusion_device_plugin/example/pod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
annotations:
55
auto-management/bitfusion: "all"
66
bitfusion-client/os: "ubuntu18"
7-
bitfusion-client/version: "401"
7+
bitfusion-client/version: "450"
88
name: bf-pkgs
99
namespace: tensorflow-benchmark
1010
spec:

bitfusion_device_plugin/webhook/deployment/bitfusion-client-configmap.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,26 @@ data:
77
bitfusion-client-config.yaml: |
88
BitfusionClients:
99
10+
- BitfusionVersion: "450"
11+
OSVersion: ubuntu18
12+
BinaryPath: /bitfusion/bitfusion-client-ubuntu1804_4.5.0-4_amd64.deb/usr/bin/bitfusion
13+
EnvVariable: /bitfusion/bitfusion-client-ubuntu1804_4.5.0-4_amd64.deb/opt/bitfusion/lib/x86_64-linux-gnu/bitfusion/lib/
14+
15+
- BitfusionVersion: "450"
16+
OSVersion: ubuntu20
17+
BinaryPath: /bitfusion/bitfusion-client-ubuntu2004_4.5.0-4_amd64.deb/usr/bin/bitfusion
18+
EnvVariable: /bitfusion/bitfusion-client-ubuntu2004_4.5.0-4_amd64.deb/opt/bitfusion/lib/x86_64-linux-gnu/bitfusion/lib/
19+
20+
- BitfusionVersion: "450"
21+
OSVersion: centos7
22+
BinaryPath: /bitfusion/bitfusion-client-centos7-4.5.0-4.x86_64.rpm/usr/bin/bitfusion
23+
EnvVariable: /bitfusion/bitfusion-client-centos7-4.5.0-4.x86_64.rpm/opt/bitfusion/lib/x86_64-linux-gnu/bitfusion/lib/
24+
25+
- BitfusionVersion: "450"
26+
OSVersion: centos8
27+
BinaryPath: /bitfusion/bitfusion-client-centos8-4.5.0-4.x86_64.rpm/usr/bin/bitfusion
28+
EnvVariable: /bitfusion/bitfusion-client-centos8-4.5.0-4.x86_64.rpm/opt/bitfusion/lib/x86_64-linux-gnu/bitfusion/lib/
29+
1030
- BitfusionVersion: "401"
1131
OSVersion: ubuntu18
1232
BinaryPath: /bitfusion/bitfusion-client-ubuntu1804_4.0.1-5_amd64.deb/usr/bin/bitfusion
@@ -26,23 +46,3 @@ data:
2646
OSVersion: centos8
2747
BinaryPath: /bitfusion/bitfusion-client-centos8-4.0.1-5.x86_64.rpm/usr/bin/bitfusion
2848
EnvVariable: /bitfusion/bitfusion-client-centos8-4.0.1-5.x86_64.rpm/opt/bitfusion/lib/x86_64-linux-gnu/bitfusion/lib/
29-
30-
- BitfusionVersion: "350"
31-
OSVersion: ubuntu18
32-
BinaryPath: /bitfusion/bitfusion-client-ubuntu1804_3.5.0-5_amd64.deb/usr/bin/bitfusion
33-
EnvVariable: /bitfusion/bitfusion-client-ubuntu1804_3.5.0-5_amd64.deb/opt/bitfusion/lib/x86_64-linux-gnu/bitfusion/lib/
34-
35-
- BitfusionVersion: "350"
36-
OSVersion: ubuntu20
37-
BinaryPath: /bitfusion/bitfusion-client-ubuntu2004_3.5.0-5_amd64.deb/usr/bin/bitfusion
38-
EnvVariable: /bitfusion/bitfusion-client-ubuntu2004_3.5.0-5_amd64.deb/opt/bitfusion/lib/x86_64-linux-gnu/bitfusion/lib/
39-
40-
- BitfusionVersion: "350"
41-
OSVersion: centos7
42-
BinaryPath: /bitfusion/bitfusion-client-centos7-3.5.0-5.x86_64.rpm/usr/bin/bitfusion
43-
EnvVariable: /bitfusion/bitfusion-client-centos7-3.5.0-5.x86_64.rpm/opt/bitfusion/lib/x86_64-linux-gnu/bitfusion/lib/
44-
45-
- BitfusionVersion: "350"
46-
OSVersion: centos8
47-
BinaryPath: /bitfusion/bitfusion-client-centos8-3.5.0-5.x86_64.rpm/usr/bin/bitfusion
48-
EnvVariable: /bitfusion/bitfusion-client-centos8-3.5.0-5.x86_64.rpm/opt/bitfusion/lib/x86_64-linux-gnu/bitfusion/lib/

0 commit comments

Comments
 (0)