Skip to content

Simplify AicpuExecutor API and unify naming conventions#7

Closed
ChaoZheng109 wants to merge 1 commit into
hw-native-sys:mainfrom
ChaoZheng109:runtime-args2
Closed

Simplify AicpuExecutor API and unify naming conventions#7
ChaoZheng109 wants to merge 1 commit into
hw-native-sys:mainfrom
ChaoZheng109:runtime-args2

Conversation

@ChaoZheng109

Copy link
Copy Markdown
Collaborator

Summary

This PR simplifies the AICPU executor interface and improves code consistency through refactoring and renaming.

Changes

  • Rename: runtimeexecutor.cppaicpu_executor.cpp, RuntimeExecutorAicpuExecutor
  • Remove redundant parameter: Removed runtimeCtx from KernelArgs structure
  • Simplify API: Reduced redundant input parameters in executor methods
  • Unify naming: Changed global variable g_executorg_aicpu_executor for better clarity

Files Changed

  • src/runtime/aicpu/runtimeexecutor.cppsrc/runtime/aicpu/aicpu_executor.cpp
  • src/platform/a2a3/aicpu/kernel.cpp
  • src/platform/a2a3/common/kernel_args.h
  • src/platform/a2a3/host/devicerunner.cpp
  • example/main.py

Impact

  • Cleaner and more consistent naming convention
  • Simplified function signatures with fewer parameters
  • No functional behavior changes

## Summary
This PR simplifies the AICPU executor interface and improves code consistency through refactoring and renaming.

## Changes
- **Rename**: `runtimeexecutor.cpp` → `aicpu_executor.cpp`, `RuntimeExecutor` → `AicpuExecutor`
- **Remove redundant parameter**: Removed `runtimeCtx` from `KernelArgs` structure
- **Simplify API**: Reduced redundant input parameters in executor methods
- **Unify naming**: Changed global variable `g_executor` → `g_aicpu_executor` for better clarity

## Files Changed
- `src/runtime/aicpu/runtimeexecutor.cpp` → `src/runtime/aicpu/aicpu_executor.cpp`
- `src/platform/a2a3/aicpu/kernel.cpp`
- `src/platform/a2a3/common/kernel_args.h`
- `src/platform/a2a3/host/devicerunner.cpp`
- `example/main.py`

## Impact
- Cleaner and more consistent naming convention
- Simplified function signatures with fewer parameters
- No functional behavior changes
ChaoWao added a commit to ChaoWao/simpler-fork that referenced this pull request Jun 26, 2026
…tgun

- running-onboard: redirect device logs via ASCEND_PROCESS_LOG_PATH (export == --env);
  add a 507018 triage table (deadlock-detect vs SPIN-timeout vs OS op-timeout vs
  forward-progress stall) so a generic host 507018 is classified from the device log.
- new dfx-analyze skill: reach for simpler's built-in DFX tools (device_log_timing,
  swimlane_converter, sched_overhead_analysis, deps_viewer, dump_viewer) instead of
  hand-rolling timing/instrumentation in the runtime.
- codestyle rule hw-native-sys#7: never log on AICPU hot paths (floods device_log -> op-timeout,
  masking the behavior under study).
- multi-repo-setup: non-editable reinstall can silently skip the runtime .so rebuild;
  verify the built .so changed or cmake --build the cache + sync to both load locations.
ChaoWao added a commit that referenced this pull request Jun 26, 2026
…tgun (#1163)

- running-onboard: redirect device logs via ASCEND_PROCESS_LOG_PATH (export == --env);
  add a 507018 triage table (deadlock-detect vs SPIN-timeout vs OS op-timeout vs
  forward-progress stall) so a generic host 507018 is classified from the device log.
- new dfx-analyze skill: reach for simpler's built-in DFX tools (device_log_timing,
  swimlane_converter, sched_overhead_analysis, deps_viewer, dump_viewer) instead of
  hand-rolling timing/instrumentation in the runtime.
- codestyle rule #7: never log on AICPU hot paths (floods device_log -> op-timeout,
  masking the behavior under study).
- multi-repo-setup: non-editable reinstall can silently skip the runtime .so rebuild;
  verify the built .so changed or cmake --build the cache + sync to both load locations.
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