Skip to content

Add accordo Python APIs - #156

Closed
mawad-amd wants to merge 16 commits into
mainfrom
muhaawad/accordo
Closed

mawad-amd wants to merge 16 commits into
mainfrom
muhaawad/accordo

Conversation

@mawad-amd

Copy link
Copy Markdown
Member

No description provided.

mawad-amd and others added 10 commits November 3, 2025 00:49
Implemented core public API classes and internal modules:

Public API:
- config.py: ValidationConfig and KernelArg classes
  * Structured kernel arguments with name, type, direction
  * Backward compatible with strings and dicts
  * Support for additional_includes for custom types

- result.py: ValidationResult and ArrayMismatch classes
  * Detailed validation results with metrics
  * Human-readable summary() method

- exceptions.py: Custom exception hierarchy
  * AccordoError, AccordoBuildError, AccordoTimeoutError
  * AccordoProcessError, AccordoValidationError

Internal modules (_internal/):
- codegen.py: Header generation with additional_includes support
- hip.py: HIP interop (open_ipc_handle, memcpy_d2h)
- ipc/communication.py: IPC communication with dynamic timeout

Updated __init__.py to export clean public API.
Added README_REFACTORING.md documenting progress.

TODO:
- Implement AccordoValidator class
- Builder and Runtime modules
- Integration with formula_base.py
- Tests

See accordo.todo for complete design.
mawad-amd and others added 2 commits November 3, 2025 03:52
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
github-actions Bot and others added 4 commits November 3, 2025 10:01
- Add OptimizationTracker helper methods: is_successful(), get_best_code(), get_best_report(), get_best_metrics()
- Add auto-determination of success based on improvement and speedup
- Add _filter_compiler_errors() static method for cleaner compiler output
- Add process crash detection in Accordo IPC with process_pid
- Add enhanced timeout error messages with baseline context
- Maintain all Accordo API improvements from feature branch
@mawad-amd mawad-amd closed this Nov 3, 2025
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