Skip to content

docs: demonstrate workspace inference in README - #60

Open
kalidatuna wants to merge 1 commit into
Capsize-Games:masterfrom
kalidatuna:docs/workspace-readme-example
Open

kalidatuna wants to merge 1 commit into
Capsize-Games:masterfrom
kalidatuna:docs/workspace-readme-example

Conversation

@kalidatuna

Copy link
Copy Markdown

Summary

The existing README already has the badge, canonical links and Related projects section requested in #58. The remaining example uses the allocating API and does not check parsing or graph loading. This change replaces it with a caller-owned workspace inference helper, checks setup and execution results, and explains the required buffer setup and the allocation boundary. The existing tests and usage guide provide more detail. Adds an Unreleased changelog entry as required by CONTRIBUTING.md.

Related issue

Closes #58. Related audit: #57.

Type of change

  • Documentation only

How it was verified

  • cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
  • cmake --build build --parallel 2
  • ctest --test-dir build --output-on-failure: 46/46 passed.
  • Compiled the exact README C code with cc -std=c11 -Wall -Wextra -Werror, linked it against the built library, and executed a small Input-to-Output graph using bound workspace tensors. Verified a two-frame average of 3.0 and that zero-step and parse errors are returned.
  • git diff --check passed.

The just executable is not installed; the equivalent CMake configure/build and ctest commands from its recipes were run directly. No runtime code, graph semantics, allocation or ABI changed. Release, sanitizer and target-device tests were not run locally. The documentation was prepared with AI assistance; the described tests were actually executed.

Checklist

  • Warning-gated Debug build and ctest are green (equivalent commands above).
  • No behavior changes requiring new committed tests or sanitizer checks.
  • Unsupported node handling unchanged.
  • CHANGELOG updated under Unreleased.
  • README claims retained and workspace allocation boundary clarified.

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.

README: add CI badge, canonical links, and a minimal C usage snippet

1 participant