|
|
@@ -2889,7 +2889,7 @@ func GetCloudbrainWaitTime(task models.Cloudbrain) string { |
|
|
|
func GetCloudbrainFlavorName(task models.Cloudbrain) string { |
|
|
|
if task.Spec != nil { |
|
|
|
flavorName := task.Spec.ComputeResource + ":" + fmt.Sprint(task.Spec.AccCardsNum) + "*" + task.Spec.AccCardType + |
|
|
|
",内存:" + strconv.FormatInt(int(task.Spec.MemGiB), 'f', 6, 64) + "GB,共享内存:" + strconv.FormatInt(int(task.Spec.ShareMemGiB), 'f', 6, 64) + "GB" |
|
|
|
",内存:" + strconv.FormatInt(int64(task.Spec.MemGiB), 10) + "GB,共享内存:" + strconv.FormatInt(int64(task.Spec.ShareMemGiB), 10) + "GB" |
|
|
|
return flavorName |
|
|
|
} else { |
|
|
|
return "" |
|
|
|