How sstsimulator/sst-core works
Key Components to Include:
Core Simulation Engine
• Main simulation controller (src/sst/core/simulation.cc)
• Time management system (timeVortex, timeLord)
• Event management system
Component Management Layer
• Component factory system
• Base component infrastructure
• Subcomponent management
• Link management system
Model Interface Layer
• Python model interface
• JSON model interface
• XML configuration support
• How these connect to the core simulation engine
Parallel Execution Framework
• MPI communication layer
• Synchronization management
• Thread management for parallel execution
• Both rank and thread synchronization mechanisms
Statistics and Monitoring
• Statistics collection framework
• Output management
• Performance tracking
• Profile tools
Layer organization (top to bottom)
• [External Interfaces (Python, JSON, XML)]
• ↓
• [Model Interface Layer]
• ↓
• [Core Simulation Engine] ←→ [Parallel Execution Framework]
• ↓
• [Component Management]
• ↓
• [Statistics & Monitoring]
Important relationships
• Event flow between components
• Synchronization paths
• Configuration data flow
• Statistics collection paths
Specific subsystems
• TimeVortex implementation
• Link management
• Factory system
• Serialization framework
• Statistics backends
• MPI communication paths
Key Guidelines:
Maintain clear separation between
• Core simulation logic
• Model interfaces
• Parallel execution management
• Statistics and monitoring
Important subsystems
• RNG management
• Memory pools
• Shared objects
• Profile tools