Skip to content

Add inner-worker platform interfaces and NVIDIA implementations#111

Merged
Jack-Khuu merged 1 commit intoplatform/outer-interfacesfrom
platform/inner-interfaces
Mar 3, 2026
Merged

Add inner-worker platform interfaces and NVIDIA implementations#111
Jack-Khuu merged 1 commit intoplatform/outer-interfacesfrom
platform/inner-interfaces

Conversation

@Jack-Khuu
Copy link
Contributor

Add 5 worker-level abstract interfaces for components inside OptimizationWorker: AcceleratorSpecsProvider, KernelProfilerBase, RooflineAnalyzerBase, BottleneckAnalyzerBase, RAGPrescriberBase.

Add NVIDIA wrapper implementations that lazily delegate to the existing concrete classes (KernelProfiler, RooflineAnalyzer, BottleneckAnalyzer, RAGPrescriber, get_gpu_specs).

Add platform_components dict parameter to OptimizationWorker so registry-resolved components can be injected from the manager level. _init_components() checks platform_components before falling back to the default NVIDIA construction.

No behavioral changes — the same NVIDIA defaults are always constructed.

Note: Components added intriton_kernel_agent/platform/nvidia.py can be inlined in the future to reduce indirection. It is not done here to reduce the change complexity


 python run_opt_manager.py   --kernel-dir optimize_01_matvec/ 

Add 5 worker-level abstract interfaces for components inside
OptimizationWorker: AcceleratorSpecsProvider, KernelProfilerBase,
RooflineAnalyzerBase, BottleneckAnalyzerBase, RAGPrescriberBase.

Add NVIDIA wrapper implementations that lazily delegate to the existing
concrete classes (KernelProfiler, RooflineAnalyzer, BottleneckAnalyzer,
RAGPrescriber, get_gpu_specs).

Add platform_components dict parameter to OptimizationWorker so
registry-resolved components can be injected from the manager level.
_init_components() checks platform_components before falling back to
the default NVIDIA construction.
@Jack-Khuu Jack-Khuu requested a review from kaiming-cheng March 3, 2026 00:59
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Mar 3, 2026
@Jack-Khuu Jack-Khuu merged commit e3d460c into platform/outer-interfaces Mar 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants