You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

shuguangAi.go 1.4 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package impl
  2. import (
  3. "gitlink.org.cn/jcce-pcm/pcm-ac/hpcacclient"
  4. "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/scheduler/service/collector"
  5. "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/scheduler/service/executor"
  6. )
  7. //单条作业费=作业运行秒数×(CPU核心数*CPU单价+GPU卡数×GPU单价+DCU卡数×DCU单价)/3600
  8. //CPU单价=队列CPU费率×计算中心CPU单价
  9. //GPU单价=队列GPU费率×计算中心GPU单价
  10. //DCU单价=队列DCU费率×计算中心DCU单价
  11. type ShuguangAiExecutor struct {
  12. Name string
  13. ACRpc hpcacclient.HpcAC
  14. }
  15. func NewShuguangAiExecutor(acRpc hpcacclient.HpcAC, name string) *ShuguangAiExecutor {
  16. return &ShuguangAiExecutor{Name: name, ACRpc: acRpc}
  17. }
  18. func (s ShuguangAiExecutor) QueryImageList() ([]executor.Image, error) {
  19. //TODO implement me
  20. panic("implement me")
  21. }
  22. func (s ShuguangAiExecutor) SubmitTask(imageId string, cmd string, envs []string, params []string, resourceId string) (executor.Task, error) {
  23. //TODO implement me
  24. panic("implement me")
  25. }
  26. func (s ShuguangAiExecutor) QueryTask(taskId string) (executor.Task, error) {
  27. //TODO implement me
  28. panic("implement me")
  29. }
  30. func (s ShuguangAiExecutor) QuerySpecs() (executor.Spec, error) {
  31. //TODO implement me
  32. panic("implement me")
  33. }
  34. func (a *ShuguangAiExecutor) GetResourceSpecs() (*collector.ResourceSpecs, error) {
  35. return nil, nil
  36. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.