Project-HAMi / HAMi

Heterogeneous AI Computing Virtualization Middleware
http://project-hami.io/
Apache License 2.0
963 stars 199 forks source link

Metax GPU topo-awareness support #574

Closed archlitchi closed 3 weeks ago

archlitchi commented 1 month ago

Support metax GPU topo-awareness

  1. Add utility of topo-awareness of metax GPU
  2. Add examples in examples/metax folder
  3. Add documents of metax devices
codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 32.14286% with 95 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/device/metax/device.go 28.43% 73 Missing :warning:
pkg/scheduler/policy/node_policy.go 66.66% 3 Missing and 1 partial :warning:
pkg/scheduler/scheduler.go 25.00% 3 Missing :warning:
pkg/device/ascend/device.go 0.00% 2 Missing :warning:
pkg/device/cambricon/device.go 0.00% 2 Missing :warning:
pkg/device/hygon/device.go 0.00% 2 Missing :warning:
pkg/device/iluvatar/device.go 0.00% 2 Missing :warning:
pkg/device/mthreads/device.go 0.00% 2 Missing :warning:
pkg/device/nvidia/device.go 0.00% 2 Missing :warning:
pkg/util/types.go 0.00% 2 Missing :warning:
... and 1 more
Flag Coverage Δ
unittests 27.03% <32.14%> (+0.01%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
pkg/scheduler/nodes.go 67.85% <ø> (ø)
pkg/scheduler/policy/gpu_policy.go 83.87% <100.00%> (ø)
pkg/scheduler/score.go 67.24% <100.00%> (+0.18%) :arrow_up:
pkg/device/devices.go 25.71% <75.00%> (-1.43%) :arrow_down:
pkg/device/ascend/device.go 2.89% <0.00%> (-0.04%) :arrow_down:
pkg/device/cambricon/device.go 13.30% <0.00%> (-0.14%) :arrow_down:
pkg/device/hygon/device.go 14.96% <0.00%> (+1.17%) :arrow_up:
pkg/device/iluvatar/device.go 29.41% <0.00%> (-0.44%) :arrow_down:
pkg/device/mthreads/device.go 14.28% <0.00%> (-0.18%) :arrow_down:
pkg/device/nvidia/device.go 31.27% <0.00%> (-0.30%) :arrow_down:
... and 4 more

... and 1 file with indirect coverage changes

archlitchi commented 3 weeks ago

/approve