Skip to content

Add outer platform interfaces and extract NVIDIA impls from opt_manager#110

Merged
Jack-Khuu merged 2 commits intomainfrom
platform/outer-interfaces
Mar 3, 2026
Merged

Add outer platform interfaces and extract NVIDIA impls from opt_manager#110
Jack-Khuu merged 2 commits intomainfrom
platform/outer-interfaces

Conversation

@Jack-Khuu
Copy link
Contributor

Introduce KernelVerifier, KernelBenchmarker, and WorkerRunner abstract interfaces that define the seams where platform-specific code enters OptimizationManager.

Extract the existing NVIDIA-specific code (verification via VerificationWorker, benchmarking via Benchmark, worker spawning via mp.Process) into NvidiaVerifier, NvidiaBenchmarker, and NvidiaWorkerRunner classes that implement these interfaces.

OptimizationManager now delegates to self.verifier, self.benchmarker, and self.worker_runner instead of inlining the NVIDIA code. No behavioral changes — the same NVIDIA defaults are always constructed.


python run_opt_manager.py   --kernel-dir optimize_01_matvec/

Introduce KernelVerifier, KernelBenchmarker, and WorkerRunner abstract
interfaces that define the seams where platform-specific code enters
OptimizationManager.

Extract the existing NVIDIA-specific code (verification via
VerificationWorker, benchmarking via Benchmark, worker spawning via
mp.Process) into NvidiaVerifier, NvidiaBenchmarker, and
NvidiaWorkerRunner classes that implement these interfaces.

OptimizationManager now delegates to self.verifier, self.benchmarker,
and self.worker_runner instead of inlining the NVIDIA code. No
behavioral changes — the same NVIDIA defaults are always constructed.
@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 78eebd9 into main Mar 3, 2026
6 checks 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.

2 participants