Address PyHPC profiler notebook review#242
Conversation
|
👋 Thank you for your contribution! This pull request is from a forked repository so GitHub Actions will not be able to run CI. A maintainer will review your changes shortly and manually trigger the CI. @maintainers Please review this PR when you have a chance and follow the instructions in the CONTRIBUTING.md file to trigger the CI. |
|
You have to test on CSCS. Not locally. Unacceptable. |
|
Live CSCS testing found that the pinned Nsightful revision rejects NCU collection options in |
|
Live CSCS validation passed for exact PR head Validation environment and fallback method:
Fresh reports generated:
This confirms the compatibility fix: collection filtering is configured on the pinned Nsightful NCU wrapper/kernelspec, while |
|
You must pass the regex options. Fix nsightful to allow that. Your approach
is unacceptable.
…--
Bryce Adelstein Lelbach (he/him/his)
Principal Architect @ NVIDIA
--
On Sun, Jul 26, 2026, 10:42 AM RoboBryce ***@***.***> wrote:
*robobryce* left a comment (NVIDIA/accelerated-computing-hub#242)
<#242 (comment)>
Live CSCS validation passed for exact PR head
c2c42e3.
Validation environment and fallback method:
- Daint job 4276823 on nid005771.
- Started from the published event base image at 79d2b51.
- Applied the exact nsightful-ncu install command from this PR's
Dockerfile so the NCU kernelspec contained the combined wrapper-level
kernel regex.
- Executed the exact notebook 04 and 05 solution files from this PR
head.
Fresh reports generated:
- copy_blocked.ncu-rep: 137,263,595 bytes
- copy_optimized.ncu-rep: 23,602,371 bytes
- histogram_global.ncu-rep: 66,766,950 bytes
- histogram_localized.ncu-rep: 2,085,808 bytes
ncu --import verified that each report contains its expected kernel and
Duration metrics. The notebook run produced no Nsightful UsageError and
no skipped/no-kernel-captured warnings.
This confirms the compatibility fix: collection filtering is configured on
the pinned Nsightful NCU wrapper/kernelspec, while %%ncu keeps only
report/export arguments.
—
Reply to this email directly, view it on GitHub
<#242?email_source=notifications&email_token=AADBG4TMUMBZAGBININYYVT5GW76FA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMBYGI3TKOJTGM42M4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5082759339>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADBG4S5Y3PGPNQ4T5RN5IT5GW76FAVCNFSNUABFKJSXA33TNF2G64TZHM4DCNJTGMYDMNJZHNEXG43VMU5TIOJXHE3TEOBWGQ2KC5QC>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
Addressed in The notebook cells again pass their own specific regexes, for example: %%ncu -o copy_blocked.ncu-rep --kernel-name regex:copy_blockedI fixed Nsightful rather than moving those filters into the kernelspec. The Nsightful change is brycelelbach/nsightful#5: ACH now pins that exact signed Nsightful commit and the kernelspec is back to generic I am continuing with live CSCS validation of the notebook-level filters before considering this resolved. |
Summary
Addresses all notebook feedback from #215 (comment) in a separate PR targeting
event/2026-07-cscs-summer-school.Notebook 03
%%nsysdoes instead of exposing kernel-selection implementation details.Notebook 04
launch_blockedandlaunch_optimized, inlining launches at correctness, profiling, and benchmarking sites.dstbefore correctness checks and profiling, while leaving benchmark launches reset-free.Notebook 05
launch_globaland inline the histogram reset outside benchmarks.The exercise and solution notebooks receive matching structural updates. Saved execution outputs and execution counts are cleared from the touched notebooks so the edited sources do not retain stale profiler results.
Testing
python3 brev/test-notebook-format.py <six changed notebooks>pre-commit run notebook-format --files <six changed notebooks>ast.parsegit diff --checkGPU notebook execution was not available in this worktree:
nvidia-smicannot communicate with a driver, and the host Python environment does not includepytest. A fullpre-commit run --all-filesalso reaches unrelated pre-existing canonical-format failures inevents/pycon_2025/ai_with_a_conscience.ipynbanddocs/notebook_template.ipynb; all six files changed here pass the same hook.Live CSCS validation
Validated exact PR head
c2c42e3018f8f4381cc74a2696a9f12d22345dd6in Daint job4276823onnid005771. The fallback used the published event base image at79d2b51, applied the exact Dockerfilensightful-ncu installcommand from this PR, and executed the exact PR notebook 04/05 solutions.Generated and imported four fresh reports:
copy_blocked.ncu-rep(137,263,595 bytes),copy_optimized.ncu-rep(23,602,371 bytes),histogram_global.ncu-rep(66,766,950 bytes), andhistogram_localized.ncu-rep(2,085,808 bytes). Each import contained the expected kernel and Duration metrics, with no NsightfulUsageErroror skipped/no-kernel-captured warnings.