How bnorthern42/gridlock works
GridLock is a Linux graphical workstation for debugging MPI, OpenMP, and native programs. The main workflow is to open or attach to a target, coordinate rank-aware execution through a debugger backend, and inspect source, rank state, memory, or binary behavior in the UI. Separate capability branches cover HPC job discovery, scientific visualization, language tooling, and plugins. The README documents these capabilities; sampled source confirms the application entry point, editor/search tooling, plugin lifecycle, and selected backend interfaces. Some runtime wiring is unsampled, so inferred links are dashed.
Main entry points: MainWindow.hpp Main Window · main.cpp Application Entry · SourceCodeView.cpp Source Editor · MemoryDiffer.cpp Memory Analysis
Components 21
Application
- Application Entry
src/main.cpp - Main Window
src/ui/mainwindow/MainWindow.hpp - Configuration
src/core/managers/ConfigManager.hpp
Debugging
- Rank Coordinator
src/core/hpc/gdb/GdbRankCoordinator.hpp - DAP Backend
src/core/hpc/dap/DapCoordinator.cpp - Process Discovery
src/core/hpc/system/ProcessScanner.cpp - MPI Diagnostics
src/core/hpc/analysis/DeadlockAnalyzer.cpp - Slurm Integration
src/core/hpc/system/LocalSlurmBackend.cpp
Inspection
- Source Editor
src/ui/views/SourceCodeView.cpp - Clangd Client
src/core/lsp/ClangdLspClient.cpp - Workspace Search
src/core/utils/SearchEverywhereEngine.cpp - ELF Analysis
src/core/binary/ElfBinaryParser.cpp - Memory Analysis
src/core/hpc/memory/MemoryDiffer.cpp - Memory Views
src/ui/views/MemView.cpp - Array Visualization
src/ui/dialogs/plotter/ArrayPlotDialog.cpp - Pointer Graphs
src/ui/dialogs/graph/PointerGraphDialog.cpp
Workspace Extensions
- Plugin Manager
src/core/plugins/PluginManager.cpp - Plugin ABI
include/gridlock/plugin_api.h - Offline Docs
src/core/managers/DocsetManager.cpp - Package Search
src/ui/widgets/SpackManager.cpp
Other components
- Developer
Connections 20
- Developer → Application Entry: launches
README.md - Application Entry → Main Window: creates
src/main.cpp - Main Window → Rank Coordinator: coordinates ranks
- Main Window → DAP Backend: selects backend
README.md - Main Window → Process Discovery: discovers jobs
README.md - Main Window → MPI Diagnostics: reports deadlocks
README.md - Main Window → Slurm Integration: submits jobs
README.md - Main Window → Source Editor: opens source
README.md - Source Editor → Clangd Client: requests language help
- Main Window → Workspace Search: searches workspace
README.md - Main Window → ELF Analysis: inspects binaries
README.md - Main Window → Memory Analysis: compares rank memory
README.md - Memory Analysis → Memory Views: renders inspection
README.md - Main Window → Array Visualization: visualizes arrays
README.md - Main Window → Pointer Graphs: visualizes pointers
README.md - Main Window → Plugin Manager: manages extensions
README.md - Plugin Manager → Plugin ABI: dispatches callbacks
src/core/plugins/PluginManager.cpp - Main Window → Configuration: loads preferences
README.md - Main Window → Offline Docs: looks up documentation
README.md - Main Window → Package Search: searches packages
README.md