Naturalcandy noli/placeholder#241
Closed
chhwang wants to merge 110 commits into
Closed
Conversation
- Introduced support for multiple Runtime instances - Added utility functions for multi-runtime management - Ensured backward compatibility with existing usage patterns of Runtime - Added unit tests for multi-runtime functionality --------- Co-authored-by: noli <t-ngerawork@microsoft.com>
- Adds Torch to ARK tensor conversion support - New ModelBufferManager class handles external buffer registration and simplifies buffer access during kernel initialization - Adds test cases for ARK to Torch conversion support --------- Co-authored-by: Changho Hwang <changhohwang@microsoft.com>
- Separates externally allocated buffers from `ModelBuffer` by having `ModelBufferManager` manage them instead. - Adds the `placeholder` operation. `placeholder` is a virtual operation that produces a `Tensor` with the added feature of providing a data pointer (which can be null to support delayed binding) to an external buffer.
…into noli/placeholder
…into noli/placeholder
…into naturalcandy-noli/placeholder
2069f08 to
e87f96b
Compare
chhwang
added a commit
that referenced
this pull request
Jun 12, 2026
Add `arkprof` console-script entry point
Extract the `if __name__ == "__main__"` block in `profiler.py` into a
callable `main(argv=None)` function and register it as a
`[project.scripts]` console entry point in `pyproject.toml`:
arkprof = "ark.profiler:main"
After `pip install`, `arkprof --plan <file>` invokes the profiler CLI.
Changes:
- `python/ark/profiler.py`: move argparse logic into `main(argv=None)`;
accept optional argv for testability; strip whitespace in
`--target_processor_groups` parsing; `__main__` guard delegates to
`main()`.
- `pyproject.toml`: add `[project.scripts]` section.
- `python/unittest/test_profiler.py`: add 5 CLI/unit tests — `--help`
exit code, missing `--plan` exit code, full arg parsing, defaults,
and whitespace handling in `--target_processor_groups`. All tests use
mocks (no GPU required).
Source: PR #241 (`arkprof.py`).
Contributor
Author
|
Superseded. The placeholder op + external-buffer binding already landed on main; the arkprof profiler entry point landed as a console script in #260. Closing as fully incorporated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.