-
Notifications
You must be signed in to change notification settings - Fork 21
[data, torch_profile] test: add st of torch and mstx #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
6b9ec5e
add st of torch
611ac8a
delate json
1ec779e
add special_e2e
fcc73d1
code check
396af62
code check
2cd7aea
add special_e2e.yml
57023db
mv data and fix bug
c4d6066
bugfix
46cea5e
add st of mstx
69c7e49
Revise inspection comments
577e936
change st name
20d174c
Add data description
e1ca74c
add data file
45b81c0
delate st --timeout=300
24bbc48
delate img.png
afe614e
revise data_directory
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| name: profiling_data_analysis_st | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - v0.* | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| - v0.* | ||
| paths: | ||
| - "**/*.py" | ||
| - .github/workflows/special_e2e.yml | ||
| - "tests/special_e2e/**" | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| profiling_data_analysis_st: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.11"] | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
|
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| pip install -r requirements.txt | ||
| pip install -e . | ||
|
|
||
| - name: Run profiling_data_analysis_st tests | ||
| run: | | ||
| pytest -s -x tests/special_e2e | ||
101 changes: 101 additions & 0 deletions
101
.../mstx_profile/actor_compute_log_prob/xxx_ascend_pt/ASCEND_PROFILER_OUTPUT/trace_view.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,101 @@ | ||
| [ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 修改文件路径,文件夹名字非公共部分可以用xxx表述 |
||
| { | ||
| "name": "process_name", | ||
| "pid": 3550586784, | ||
| "tid": 0, | ||
| "ph": "M", | ||
| "args": { | ||
| "name": "Overlap Analysis" | ||
| } | ||
| }, | ||
| { | ||
| "name": "process_labels", | ||
| "pid": 3550586784, | ||
| "tid": 0, | ||
| "ph": "M", | ||
| "args": { | ||
| "labels": "NPU 0" | ||
| } | ||
| }, | ||
| { | ||
| "name": "thread_name", | ||
| "pid": 3550586784, | ||
| "tid": 0, | ||
| "ph": "M", | ||
| "args": { | ||
| "name": "Communication" | ||
| } | ||
| }, | ||
| { | ||
| "name": "thread_sort_index", | ||
| "pid": 3550586784, | ||
| "tid": 0, | ||
| "ph": "M", | ||
| "args": { | ||
| "sort_index": 0 | ||
| } | ||
| }, | ||
| { | ||
| "name": "thread_name", | ||
| "pid": 3550586784, | ||
| "tid": 1, | ||
| "ph": "M", | ||
| "args": { | ||
| "name": "Communication(Not Overlapped)" | ||
| } | ||
| }, | ||
| { | ||
| "name": "thread_name", | ||
| "pid": 3550586784, | ||
| "tid": 2, | ||
| "ph": "M", | ||
| "args": { | ||
| "name": "Computing" | ||
| } | ||
| }, | ||
| { | ||
| "name": "thread_name", | ||
| "pid": 3550586784, | ||
| "tid": 3, | ||
| "ph": "M", | ||
| "args": { | ||
| "name": "Free" | ||
| } | ||
| }, | ||
| { | ||
| "name": "Computing", | ||
| "pid": 3550586784, | ||
| "tid": 2, | ||
| "ts": "1773285899055563.748", | ||
| "dur": 53.301, | ||
| "ph": "X", | ||
| "args": {} | ||
| }, | ||
| { | ||
| "name": "Communication", | ||
| "pid": 3550586784, | ||
| "tid": 0, | ||
| "ts": "1773285899057336.304", | ||
| "dur": 52269.524, | ||
| "ph": "X", | ||
| "args": {} | ||
| }, | ||
| { | ||
| "name": "Communication(Not Overlapped)", | ||
| "pid": 3550586784, | ||
| "tid": 1, | ||
| "ts": "1773285899057336.304", | ||
| "dur": 52269.524, | ||
| "ph": "X", | ||
| "args": {} | ||
| }, | ||
| { | ||
| "name": "Free", | ||
| "pid": 3550586784, | ||
| "tid": 3, | ||
| "ts": "1773285899049161.720", | ||
| "dur": 6402.028, | ||
| "ph": "X", | ||
| "args": {} | ||
| } | ||
| ] | ||
50 changes: 50 additions & 0 deletions
50
data/mstx_data/mstx_profile/actor_compute_log_prob/xxx_ascend_pt/profiler_info_0.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 同上 |
||
| "config": { | ||
| "common_config": { | ||
| "activities": [ | ||
| "ProfilerActivity.CPU", | ||
| "ProfilerActivity.NPU" | ||
| ], | ||
| "schedule": {}, | ||
| "record_shapes": false, | ||
| "profile_memory": false, | ||
| "with_stack": false, | ||
| "with_flops": false, | ||
| "with_modules": false | ||
| }, | ||
| "experimental_config": { | ||
| "_profiler_level": "Level1", | ||
| "_aic_metrics": "ACL_AICORE_PIPE_UTILIZATION", | ||
| "_l2_cache": false, | ||
| "_msprof_tx": true, | ||
| "_mstx": false, | ||
| "_data_simplification": true, | ||
| "record_op_args": false, | ||
| "_export_type": [ | ||
| "db" | ||
| ], | ||
| "_host_sys": [], | ||
| "_op_attr": false, | ||
| "_gc_detect_threshold": null, | ||
| "_mstx_domain_include": [], | ||
| "_mstx_domain_exclude": [ | ||
| "communication" | ||
| ], | ||
| "_sys_io": false, | ||
| "_sys_interconnection": false | ||
| } | ||
| }, | ||
| "start_info": { | ||
| "syscnt_enable": true, | ||
| "freq": 100, | ||
| "start_cnt": 238468094663174, | ||
| "start_monotonic": 2384513312565430 | ||
| }, | ||
| "end_info": { | ||
| "collectionTimeEnd": 1773285903061065750, | ||
| "MonotonicTimeEnd": 2384517398234200 | ||
| }, | ||
| "torch_npu_version": "2.7.1", | ||
| "cann_version": "8.3.RC1", | ||
| "rank_id": "0" | ||
| } | ||
137 changes: 137 additions & 0 deletions
137
.../mstx_data/mstx_profile/actor_update/xxx_ascend_pt/ASCEND_PROFILER_OUTPUT/trace_view.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,137 @@ | ||
| [ | ||
| { | ||
| "name": "process_name", | ||
| "pid": 3550586784, | ||
| "tid": 0, | ||
| "ph": "M", | ||
| "args": { | ||
| "name": "Overlap Analysis" | ||
| } | ||
| }, | ||
| { | ||
| "name": "process_labels", | ||
| "pid": 3550586784, | ||
| "tid": 0, | ||
| "ph": "M", | ||
| "args": { | ||
| "labels": "NPU 0" | ||
| } | ||
| }, | ||
| { | ||
| "name": "process_sort_index", | ||
| "pid": 3550586784, | ||
| "tid": 0, | ||
| "ph": "M", | ||
| "args": { | ||
| "sort_index": 29 | ||
| } | ||
| }, | ||
| { | ||
| "name": "thread_name", | ||
| "pid": 3550586784, | ||
| "tid": 0, | ||
| "ph": "M", | ||
| "args": { | ||
| "name": "Communication" | ||
| } | ||
| }, | ||
| { | ||
| "name": "thread_sort_index", | ||
| "pid": 3550586784, | ||
| "tid": 0, | ||
| "ph": "M", | ||
| "args": { | ||
| "sort_index": 0 | ||
| } | ||
| }, | ||
| { | ||
| "name": "thread_name", | ||
| "pid": 3550586784, | ||
| "tid": 1, | ||
| "ph": "M", | ||
| "args": { | ||
| "name": "Communication(Not Overlapped)" | ||
| } | ||
| }, | ||
| { | ||
| "name": "thread_sort_index", | ||
| "pid": 3550586784, | ||
| "tid": 1, | ||
| "ph": "M", | ||
| "args": { | ||
| "sort_index": 1 | ||
| } | ||
| }, | ||
| { | ||
| "name": "thread_name", | ||
| "pid": 3550586784, | ||
| "tid": 2, | ||
| "ph": "M", | ||
| "args": { | ||
| "name": "Computing" | ||
| } | ||
| }, | ||
| { | ||
| "name": "thread_sort_index", | ||
| "pid": 3550586784, | ||
| "tid": 2, | ||
| "ph": "M", | ||
| "args": { | ||
| "sort_index": 2 | ||
| } | ||
| }, | ||
| { | ||
| "name": "thread_name", | ||
| "pid": 3550586784, | ||
| "tid": 3, | ||
| "ph": "M", | ||
| "args": { | ||
| "name": "Free" | ||
| } | ||
| }, | ||
| { | ||
| "name": "thread_sort_index", | ||
| "pid": 3550586784, | ||
| "tid": 3, | ||
| "ph": "M", | ||
| "args": { | ||
| "sort_index": 3 | ||
| } | ||
| }, | ||
| { | ||
| "name": "Computing", | ||
| "pid": 3550586784, | ||
| "tid": 2, | ||
| "ts": "1773285904640626.314", | ||
| "dur": 145.623, | ||
| "ph": "X", | ||
| "args": {} | ||
| }, | ||
| { | ||
| "name": "Communication", | ||
| "pid": 3550586784, | ||
| "tid": 0, | ||
| "ts": "1773285904641909.419", | ||
| "dur": 12782.896, | ||
| "ph": "X", | ||
| "args": {} | ||
| }, | ||
| { | ||
| "name": "Communication(Not Overlapped)", | ||
| "pid": 3550586784, | ||
| "tid": 1, | ||
| "ts": "1773285904641909.419", | ||
| "dur": 12782.896, | ||
| "ph": "X", | ||
| "args": {} | ||
| }, | ||
| { | ||
| "name": "Free", | ||
| "pid": 3550586784, | ||
| "tid": 3, | ||
| "ts": "1773285904639877.299", | ||
| "dur": 749.015, | ||
| "ph": "X", | ||
| "args": {} | ||
| } | ||
| ] |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pip install 没有使用 --no-cache-dir,建议添加 --no-cache-dir 避免缓存问题