Skip to content

initial HCU DCGM - #2

Closed
chengdmio wants to merge 2 commits into
HYGON-AI:masterfrom
chengdmio:feature/my-hcu-change
Closed

chengdmio wants to merge 2 commits into
HYGON-AI:masterfrom
chengdmio:feature/my-hcu-change

Conversation

@chengdmio

Copy link
Copy Markdown
Contributor

Summary

  • Align the ignored build artifact paths with the HCU repository name.
  • Remove the obsolete build artifact entry.
  • Keep the source tree and runtime behavior unchanged.

Validation

  • git diff --check passed.
  • Only .gitignore is changed.
  • No source files, driver headers, deployment files, or local-only files are included.

Migrate codebase from DCU to HCU terminology and fix a bug in the
GEMM stress test diagnostic pipeline where Mean values were silently
reported as 0 on non-zero subprocess exit.

Core changes:
- Rename terminology, APIs, and deployment manifests from DCU to HCU
  across pkg/, samples/, deployment/, and router layer
- Update k8s manifest and Docker deployment scripts for HCU environment

Bug fix — GEMM diagnostic result loss (pkg/dcgm/gemmperf.go):
- gemmPerf binary always runs on all devices per invocation; restructure
  loop from (device × gemm-type) to (gemm-type only), parsing per-device
  results from a single shared log file — eliminates redundant N_devices
  invocations and resolves log-file mismatch on multi-device systems
- Remove unused devInd parameter from runGemmTest()
- parseGemmLog: return explicit error when target HCU mean is absent
  in log instead of silently returning 0
- runTargetStressTestWithResult: always attempt log parse even when
  subprocess exits non-zero; preserve valid mean and propagate run
  error into GemmTestResult.Error field
- Add Error string field to GemmTestResult to carry per-entry detail

Error propagation (pkg/dcgm/diag.go, pkg/service/router/api.go):
- Set ErrorCode=-1 and ErrorMessage from GemmTestResult.Error when
  a GEMM entry has an error, replacing the previous always-zero values
  that made failures invisible to callers

CLI output (pkg/cmd/cli/diag.go):
- Display valid mean alongside FAIL marker (e.g. hgemm=95.50(FAIL))
  when a partial result is available
- Print per-entry error detail lines below each HCU summary row

Tests:
- Add pkg/dcgm/gemmperf_test.go: valid mean parse, missing mean error,
  FAIL flag detection against real log format
- Extend pkg/cmd/cli/diag_test.go: failed entry with valid mean and
  error detail rendering
@chengdmio chengdmio closed this Sep 7, 2026
@chengdmio
chengdmio deleted the feature/my-hcu-change branch September 7, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant