Skip to content

Commit

Permalink
910b算力切分模板变更
Browse files Browse the repository at this point in the history
  • Loading branch information
funnyfunny committed Jun 28, 2023
1 parent c1ff574 commit 6eb271e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.vscode
.idea
12 changes: 6 additions & 6 deletions runtime/dcmi/dcmi_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ func extractVpuParam(spec *specs.Spec) (int32, string, error) {
allowSplit := map[string]string{
"vir01": "vir01", "vir02": "vir02", "vir04": "vir04", "vir08": "vir08", "vir16": "vir16",
"vir04_3c": "vir04_3c", "vir02_1c": "vir02_1c", "vir04_4c_dvpp": "vir04_4c_dvpp",
"vir04_3c_ndvpp": "vir04_3c_ndvpp", "vir12_3c_30g": "vir12_3c_30g", "vir12_3c_30g_m": "vir12_3c_30g_m",
"vir12_3c_30g_nm": "vir12_3c_30g_nm", "vir06_1c_15g": "vir06_1c_15g", "vir03_hc_7g": "vir03_hc_7g",
"vir02_hc_5g": "vir02_hc_5g", "vir10_3c_14g": "vir10_3c_14g", "vir10_3c_14g_m": "vir10_3c_14g_m",
"vir10_3c_14g_nm": "vir10_3c_14g_nm", "vir05_1c_7g": "vir05_1c_7g", "vir04_1c_5g": "vir04_1c_5g",
"vir10_3c": "vir10_3c", "vir10_3c_m": "vir10_3c_m", "vir10_3c_nm": "vir10_3c_nm", "vir05_1c": "vir05_1c",
"vir02_hc": "vir02_hc",
"vir04_3c_ndvpp": "vir04_3c_ndvpp", "vir12_3c_32g": "vir12_3c_32g", "vir12_3c_32g_m": "vir12_3c_32g_m",
"vir12_3c_32g_nm": "vir12_3c_32g_nm", "vir06_1c_16g": "vir06_1c_16g", "vir03_hc_8g": "vir03_hc_8g",
"vir10_3c_16g": "vir10_3c_16g", "vir10_3c_16g_m": "vir10_3c_16g_m",
"vir10_3c_16g_nm": "vir10_3c_16g_nm", "vir05_1c_8g": "vir05_1c_8g", "vir04_1c_6g": "vir04_1c_6g",
"vir10_3c_32g": "vir10_3c_32g", "vir10_3c_32g_m": "vir10_3c_32g_m", "vir10_3c_32g_nm": "vir10_3c_32g_nm",
"vir05_1c_16g": "vir05_1c_16g",
}

for _, line := range spec.Process.Env {
Expand Down

0 comments on commit 6eb271e

Please sign in to comment.