-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec4ff8c
commit 3381d44
Showing
8 changed files
with
112 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
.../version-v1.3.0/userguide/Cambricon-device/examples/allocate-core-and-memory.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: Allocate device core and memory resource | ||
--- | ||
|
||
## Allocate device core and memory to container | ||
|
||
To allocate a certain part of device core resource, you need only to assign the `cambricon.com/mlu370.smlu.vmemory` and `cambricon.com/mlu370.smlu.vcore` along with the number of cambricon MLUs you requested in the container using `cambricon.com/vmlu` | ||
|
||
``` | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: binpack-1 | ||
labels: | ||
app: binpack-1 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: binpack-1 | ||
template: | ||
metadata: | ||
labels: | ||
app: binpack-1 | ||
spec: | ||
containers: | ||
- name: c-1 | ||
image: ubuntu:18.04 | ||
command: ["sleep"] | ||
args: ["100000"] | ||
resources: | ||
limits: | ||
cambricon.com/vmlu: "1" | ||
cambricon.com/mlu370.smlu.vmemory: "20" | ||
cambricon.com/mlu370.smlu.vcore: "10" | ||
``` |
34 changes: 34 additions & 0 deletions
34
...d_docs/version-v1.3.0/userguide/Cambricon-device/examples/allocate-exclusive.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: Allocate exclusive device | ||
--- | ||
|
||
## Allocate exclusive device | ||
|
||
To allocate a whole cambricon device, you need to only assign `cambricon.com/vmlu` without other fields. | ||
|
||
``` | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: binpack-1 | ||
labels: | ||
app: binpack-1 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: binpack-1 | ||
template: | ||
metadata: | ||
labels: | ||
app: binpack-1 | ||
spec: | ||
containers: | ||
- name: c-1 | ||
image: ubuntu:18.04 | ||
command: ["sleep"] | ||
args: ["100000"] | ||
resources: | ||
limits: | ||
cambricon.com/vmlu: "1" #allocates a whole MLU | ||
``` |
14 changes: 14 additions & 0 deletions
14
versioned_docs/version-v1.3.0/userguide/Device-supported.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: Device supported by HAMi | ||
--- | ||
|
||
The view of device supported by HAMi is shown in this table below: | ||
|
||
| Production | manufactor | Type |MemoryIsolation | CoreIsolation | MultiCard support | | ||
|-------------|------------|-------------|-----------|---------------|-------------------| | ||
| GPU | NVIDIA | All | ✅ | ✅ | ✅ | | ||
| MLU | Cambricon | 370, 590 | ✅ | ❌ | ❌ | | ||
| DCU | Hygon | Z100, Z100L | ✅ | ✅ | ❌ | | ||
| Ascend | Huawei | 910B | ✅ | ✅ | ❌ | | ||
| GPU | iluvatar | All | ✅ | ✅ | ❌ | | ||
| DPU | Teco | Checking | In progress | In progress | ❌ | |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters