Repository navigation
docs(go): document tested Linux runtime setup - #32568
Dex Hünter (dexhunter) wants to merge 2 commits into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved issues were identified.
Pull request overview
Documents a reproducible Linux x86-64 setup for the Go binding with ONNX Runtime 1.29.0.
Changes:
- Pins the Go source commit and runtime archive digest.
- Documents prerequisites, native library loading, and module replacement.
- Adds a minimal CPU inference example.
File summaries
| File | Description |
|---|---|
go/README.md |
Documents the tested Linux Go binding setup and example. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite (auto)
Note
Copilot is running an experiment and ran this review at Lite.
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Thanks for writing this up. I'm the author of #29615 and would like to help finish it. A few suggestions:
#33282 changes how the binding picks the runtime's API version. Once it merges, the guide can state the oldest supported runtime. I can push follow-up commits here if that works for you. |
Replace the local module override with a standalone go get installation pinned to the v1.31.0 source commit. Update the runtime archive checksum and list the import path and toolchain prerequisites. Return example errors through a helper so deferred resource cleanup runs before process exit. Refs microsoft#32535
|
Updated in
Follow-up commits here are welcome. The guide keeps its tested-pairing scope without claiming a minimum runtime; #33282 is still open. |
Summary
Issue #32535 needs consumer guidance for using the Go binding with a released Linux runtime. This documentation-only change adds
go/README.mdwith a pinned source commit, the verified ONNX Runtime 1.29.0 Linux x86-64 CPU archive and digest, the Go 1.26.0/CGO/GCC prerequisites, native library loading, and a small CPU example.The binding source commit is currently untagged, so the instructions use a detached source pin and a local module replacement. The README documents the tested pairing and does not claim a minimum runtime, a new module tag, broader platform support, or a performance improvement.
Refs #32535
Validation
ONNX Runtime: 1.29.0andoutput C: [11 22 33 44 55 66].Weco evidence: https://dashboard.weco.ai/share/pfzVS_crCPUez-8eezwoD5hwTgTOI_fm