Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cluster_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:

- name: Run cluster_analyse tests
run: |
pytest -s -x tests/cluster_analysis
pytest -s -x tests/cluster_analysis
47 changes: 47 additions & 0 deletions .github/workflows/special_e2e.yml
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
Copy link
Copy Markdown
Contributor

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 避免缓存问题

pip install -e .

- name: Run profiling_data_analysis_st tests
run: |
pytest -s -x tests/special_e2e
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
[
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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": {}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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"
}
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": {}
}
]
Loading
Loading