Repository navigation
Conversation
|
This looks good to me and works as advertised. The only issue I see is that it is leaving defunct processes:
However, this isn't a STAT issue, I see this with cuda-gdb by itself too. Here's the cuda-gdb version if you think this is something worth reporting:
|
|
thanks for testing! About the defunct processes: that's true! I have looked into this extensively including the recent improvements in driver for late attach functionality, etc.
|
- Keep one host stack per rank by default with GDB and let users select host helper and CUDA device threads independently. - Add -W and --with-device-threads to collect CUDA device stacks in stat-cl and the Remote Connect CLI. - Add --gdb-path to both CLIs so users can select the debugger executable installed on the compute nodes. - Require device-thread sampling for the existing CUDA Quick mode across the CLI and GUI. - Expose host and device thread selection in the GUI and document the workflow with a two-rank CUDA example.
722037c to
2643928
Compare
|
@lee218llnl : I am preparing stat-cl and stat-remote-cl unification PR and while reviewing, I felt it would be best to get this PR merged as youhave already reviewed/tested this. Updating CLI are is easier than need of another full review. So feel free to merge this once CI passes. |
Summary
-Wor--with-device-threadsto collect full CUDA device stacks. The existing CUDA Quick mode requires selecting device-thread sampling.--gdb-pathinstat-clor the Remote Connect CLI to select the debugger installed on the compute nodes.Examples
Run these commands on the launcher host with a STAT build that supports GDB. Replace
LAUNCHER_PIDwith the PID of the running job's launcher. The commands collect one snapshot with source lines.
The first samples host stacks, the second adds full CUDA device stacks, and the third uses CUDA Quick.
Same works with Remote Connect
sample-jobcommand to collect device stacks:Notes / Disclaimer