Skip to content

Commit ca3624d

Browse files
committed
feat: Dockerfile & deploy yaml & ld.sp.prelaod
Signed-off-by: ashergaga <1214443299@qq.com>
1 parent 301a923 commit ca3624d

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ RUN make all
2121
FROM $BASE_IMAGE
2222
ENV LD_LIBRARY_PATH=/usr/local/Ascend/driver/lib64:/usr/local/Ascend/driver/lib64/driver:/usr/local/Ascend/driver/lib64/common
2323
COPY --from=build /build/ascend-device-plugin /usr/local/bin/ascend-device-plugin
24+
COPY ./lib/hami-vnpu-core/ /usr/local/hami-vnpu-core-assets/
2425

2526
ENTRYPOINT ["ascend-device-plugin"]

ascend-device-plugin.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ spec:
8181
mountPath: /var/log/mindx-dl/devicePlugin
8282
- name: tmp
8383
mountPath: /tmp
84+
- mountPath: /usr/local/hami-shared-region
85+
name: hami-shared-region
86+
- mountPath: /usr/local/hami-vnpu-core
87+
name: hami-vnpu-core
8488
- name: ascend-config
8589
mountPath: /device-config.yaml
8690
subPath: device-config.yaml
@@ -107,6 +111,14 @@ spec:
107111
- name: tmp
108112
hostPath:
109113
path: /tmp
114+
- name: hami-shared-region
115+
hostPath:
116+
path: /usr/local/hami-shared-region
117+
type: DirectoryOrCreate
118+
- name: hami-vnpu-core
119+
hostPath:
120+
path: /usr/local/hami-vnpu-core
121+
type: DirectoryOrCreate
110122
- name: ascend-config
111123
configMap:
112124
name: hami-scheduler-device

lib/hami-vnpu-core/ld.so.preload

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/usr/local/vnpu/libvnpu.so
1+
/vnpu/libvnpu.so

0 commit comments

Comments
 (0)