Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
66de9a5
initial commit
hsirkar Apr 29, 2023
39655d7
clean up
hsirkar Apr 29, 2023
4fc2d10
add generate_palette
hsirkar Apr 29, 2023
aed28e9
add message_histogram
hsirkar Apr 30, 2023
e852e85
update theme
hsirkar Apr 30, 2023
80079e0
rename plotting to vis
hsirkar Sep 15, 2023
66836ba
cleanup
hsirkar Sep 15, 2023
980d33b
add bokeh and datashader to CI
hsirkar Sep 15, 2023
0fc638f
remove python 3.6 support
hsirkar Sep 15, 2023
aa9bb13
formatting
hsirkar Sep 15, 2023
d2d0ede
fix black issues
hsirkar Sep 15, 2023
587d393
add global config object
hsirkar Oct 4, 2023
ec3430b
Fix comm matrix bug :)
hsirkar Oct 4, 2023
61712bd
Merge branch 'develop' into vis-setup
hsirkar Feb 28, 2024
0dd89ae
update config
hsirkar Feb 28, 2024
50315e0
upgrade to bokeh 3
hsirkar Feb 29, 2024
7b4a8ce
unpin 2.4.3
hsirkar Feb 29, 2024
a500787
fix flake8 and black
hsirkar Feb 29, 2024
a2f52ab
Merge branch 'flake8-black' into vis-setup
hsirkar Feb 29, 2024
6ada6e0
clean up
hsirkar Feb 29, 2024
2603c6a
remove files
hsirkar Feb 29, 2024
1c5037c
add simple timeline
hsirkar Mar 26, 2024
f37e55f
minor
hsirkar Mar 26, 2024
802c593
minor
hsirkar Mar 26, 2024
058d5c2
Merge branch 'vis-setup' into vis-timeline
hsirkar Mar 26, 2024
cb7c592
add callbacks
hsirkar Mar 27, 2024
1793663
clean up
hsirkar Mar 27, 2024
8d5e646
cleanup
hsirkar Mar 27, 2024
10bf121
add comments, clean up
hsirkar Mar 28, 2024
7b3a334
add critical_path_analysis
hsirkar Mar 28, 2024
b3c8280
add critical path plotting
hsirkar Mar 28, 2024
e4a89fc
flake8
hsirkar Mar 29, 2024
86fa14c
use arrows for crit. path
hsirkar Mar 29, 2024
cf9001d
show all messages
hsirkar Mar 29, 2024
ea2cb01
minor
hsirkar Mar 29, 2024
35380f7
match messages
hsirkar Mar 29, 2024
5008a92
fix bugs with bokeh 3
hsirkar Mar 29, 2024
cf72b46
2 arrows
hsirkar Mar 29, 2024
2a4692c
hatch pattern
hsirkar Mar 29, 2024
7a1a4fd
use old critical path arrow scheme
hsirkar Mar 29, 2024
ce010e0
format + js bugfix
hsirkar Mar 30, 2024
c78232f
add comm over time
hsirkar Mar 30, 2024
63d934d
minor
hsirkar Apr 2, 2024
326f11b
minor
hsirkar Apr 2, 2024
ad7495b
add comm_by_process plot
hsirkar Apr 2, 2024
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
8 changes: 4 additions & 4 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
include:
- python-version: "3.6"
- python-version: "3.7"
os: ubuntu-20.04

steps:
Expand All @@ -26,7 +26,7 @@ jobs:
- name: Install Python packages
run: |
pip install --upgrade pip
pip install --upgrade numpy pandas pytest otf2
pip install --upgrade numpy pandas pytest otf2 bokeh datashader

- name: Lint and format check with flake8 and black
if: ${{ matrix.python-version == 3.9 }}
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Install Python packages
run: |
pip install --upgrade pip
pip install --upgrade numpy pandas pytest otf2
pip install --upgrade numpy pandas pytest otf2 bokeh datashader

- name: Basic test with pytest
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.cache
.pytest_cache
.ipynb_checkpoints
env
90 changes: 90 additions & 0 deletions docs/examples/vis.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "e5841460",
"metadata": {},
"outputs": [],
"source": [
"%load_ext autoreload\n",
"%autoreload 2\n",
"import sys\n",
"\n",
"sys.path.append(\"../../\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "da5ebec2",
"metadata": {},
"outputs": [],
"source": [
"import pipit as pp"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "7070057d",
"metadata": {},
"outputs": [],
"source": [
"ping_pong = pp.Trace.from_otf2(\"../../pipit/tests/data/ping-pong-otf2\")\n",
"ping_pong"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "2476f1f3-a6cf-49f2-8e3e-0e004f088504",
"metadata": {},
"outputs": [],
"source": [
"ping_pong.plot_comm_matrix()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a4aff933",
"metadata": {},
"outputs": [],
"source": [
"ping_pong.plot_message_histogram()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "d7318b31-b9bf-4a28-ac44-b75614d2ddf4",
"metadata": {},
"outputs": [],
"source": [
"ping_pong.plot_timeline()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.6"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
6 changes: 3 additions & 3 deletions pipit/readers/otf2_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@ def events_reader(self, rank_size):
if value is not None and key != "time":
# uses field_to_val to convert all data types
# and ensure that there are no pickling errors
attributes_dict[
self.field_to_val(key)
] = self.handle_data(value)
attributes_dict[self.field_to_val(key)] = (
self.handle_data(value)
)
event_attributes.append(attributes_dict)
else:
# nan attributes for leave rows
Expand Down
12 changes: 6 additions & 6 deletions pipit/readers/projections_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,10 @@ def _read_log_file(self, rank_size) -> pd.DataFrame:
pe = int(line_arr[5])
msglen = int(line_arr[6])
send_time = int(line_arr[7]) * 1000
numPEs = int(line_arr[8])
destPEs = []
for i in (0, numPEs):
destPEs.append(int(line_arr[9 + i]))
num_procs = int(line_arr[8])
dest_procs = []
for i in (0, num_procs):
dest_procs.append(int(line_arr[9 + i]))

details = {
"From PE": pe,
Expand All @@ -525,7 +525,7 @@ def _read_log_file(self, rank_size) -> pd.DataFrame:
"Message Length": msglen,
"Event ID": event,
"Send Time": send_time,
"Destinatopn PEs": destPEs,
"Destinatopn PEs": dest_procs,
}

_add_to_trace_dict(
Expand All @@ -534,7 +534,7 @@ def _read_log_file(self, rank_size) -> pd.DataFrame:
"Instant",
time,
pe_num,
"To " + str(numPEs) + "processors",
"To " + str(num_procs) + "processors",
)

# Processing of chare (i.e. execution) ?
Expand Down
Loading