How ntnu-hpc-lab/bat works
Main Components Identification
The system should be represented with these key components:
a) Core Framework Layer:
• Manager Component (batbench/manager/)
• Configuration Space Component (batbench/config_space/)
• Results Handler (batbench/result/)
b) Tuner Layer:
• Multiple Autotuner Implementations:
• Mintuner
• Optuna
• OpenTuner
• Kernel Tuner
• SMAC3
• KTT
c) Backend Layer:
• CUDA Kernel Runner
• Kernel Backend
d) Benchmark Layer:
• Various GPU Benchmarks (GEMM, Nbody, etc.)
┌─────────────────────────────────────────┐
• Client Layer │
• ┘
• ↓
┌─────────────────────────────────────────┐
• Manager Component │
• ┘
• ↓
┌───────────────┬─────────────┬──────────┐
• Config Space │ Tuners │ Results │
• ┴─────────────┴──────────┘
• ↓
┌─────────────────────────────────────────┐
• Backend Layer │
• ┘
• ↓
┌─────────────────────────────────────────┐
• Benchmark Layer │
• ┘
Component Interaction Details
a) Control Flow:
• Client → Manager (initialization and control)
• Manager → Tuners (tuning requests)
• Tuners → Backend (kernel execution)
• Backend → Benchmarks (benchmark execution)
b) Data Flow:
• Benchmarks → Results (performance metrics)
• Config Space → Tuners (parameter spaces)
• Results → Manager (optimization feedback)
Implementation Details to Highlight
• Plugin architecture for tuners
• Standardized benchmark interface
• Result storage mechanism
• Configuration space definition system