Skip to content

Refactor: rename CallConfig to ChipCallConfig#515

Merged
ChaoWao merged 1 commit intohw-native-sys:mainfrom
ChaoWao:fix/rename-callconfig-to-chipcallconfig
Apr 10, 2026
Merged

Refactor: rename CallConfig to ChipCallConfig#515
ChaoWao merged 1 commit intohw-native-sys:mainfrom
ChaoWao:fix/rename-callconfig-to-chipcallconfig

Conversation

@ChaoWao
Copy link
Copy Markdown
Collaborator

@ChaoWao ChaoWao commented Apr 10, 2026

Summary

  • Rename struct CallConfig to ChipCallConfig across C++, Python bindings, Python API, tests, and docs
  • The struct holds chip-specific fields (block_dim, aicpu_thread_num, enable_profiling) and is used exclusively with ChipWorker, so the name should follow the Chip* naming convention (ChipWorker, ChipCallable, ChipStorageTaskArgs)
  • Simplify getting-started.md example to use worker.run() kwargs instead of constructing a config object directly
  • Document the level-prefixed naming convention in architecture.md — when new level-specific types are added (e.g. DistCallConfig), they should follow the same Chip* / Dist* / factory pattern as Worker

Testing

  • Simulation tests pass
  • Hardware tests pass (if applicable)

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request renames the CallConfig class to ChipCallConfig across the entire codebase, including C++ source files, Python bindings, documentation, and unit tests. The feedback identifies an issue in the documentation where ChipCallConfig is instantiated with keyword arguments, which is not supported by the current C++ nanobind implementation, and provides a corrected code snippet to instantiate the object and set attributes separately.

@ChaoWao ChaoWao force-pushed the fix/rename-callconfig-to-chipcallconfig branch from 379c0b1 to ab8df92 Compare April 10, 2026 09:24
The struct holds chip-specific fields (block_dim, aicpu_thread_num,
enable_profiling) and lives alongside ChipWorker/ChipCallable/
ChipStorageTaskArgs. Rename to ChipCallConfig for consistency and to
free the generic CallConfig name for future use.

- Rename CallConfig → ChipCallConfig across C++, bindings, Python, tests
- Simplify getting-started.md to use worker.run() kwargs API
- Document level-prefixed naming convention in architecture.md so
  future types (DistCallConfig, etc.) follow the same pattern
@ChaoWao ChaoWao force-pushed the fix/rename-callconfig-to-chipcallconfig branch from ab8df92 to e4930f9 Compare April 10, 2026 09:30
@ChaoWao ChaoWao merged commit a1f9edf into hw-native-sys:main Apr 10, 2026
12 of 13 checks passed
@ChaoWao ChaoWao deleted the fix/rename-callconfig-to-chipcallconfig branch April 10, 2026 09:37
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