Skip to content

Refactor to allow example to write kernels and test#11

Merged
ChaoWao merged 3 commits intomainfrom
runtime
Jan 29, 2026
Merged

Refactor to allow example to write kernels and test#11
ChaoWao merged 3 commits intomainfrom
runtime

Conversation

@ChaoWao
Copy link
Copy Markdown
Collaborator

@ChaoWao ChaoWao commented Jan 29, 2026

  • Refactor kernel_add to use PTO tile-based operations
  • Rename compile_kernel to compile_incore and add integration tests
  • Add RuntimeBuilder and reorganize runtime code structure

ChaoWao and others added 3 commits January 28, 2026 21:40
- Add python/runtime_builder.py for building runtime from orchestration functions
- Add orchestration example (example_orch.cpp/h) demonstrating task graph building
- Reorganize runtime code into src/runtime/host_build_graph/ directory
- Update CI script to run pytest tests before examples
- Add tests/test_runtime_builder.py for RuntimeBuilder testing

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Rename PTOCompiler.compile_kernel() to compile_incore() for clarity
- Update example/main.py to use the new method name
- Add integration tests for RuntimeBuilder with real Ascend compilation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace simple for-loop implementation with tile-based approach using
GlobalTensor, Tile, and synchronization events for optimized tensor
addition on AI accelerators.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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