refactor: separate compile and execute functions in sdk#2812
Conversation
|
Claude finished @gdmlcjs's task in 2m 59s —— View job Code Review: Separate compile and execute functions in SDK
Summary: This PR splits each of the three execution methods ( Overall AssessmentClean refactor with a good design pattern. The original convenience methods are preserved as wrappers ( Suggestions
Nits
VerdictLooks good to merge. The only actionable item is the missing doc comment on |
This comment has been minimized.
This comment has been minimized.
a801bd4 to
21987f7
Compare
Code Review: Separate compile and execute functions in SDK
Summary: This PR splits each of the three execution methods ( Overall AssessmentClean, well-structured refactor. The compile/execute split is a natural decomposition and the backwards-compatible wrapper pattern is the right call. No correctness issues found. Suggestions
VerdictLooks good to merge. The only actionable item is the missing doc comment on |
|
Claude finished @gdmlcjs's task in 1m 50s —— View job Code Review: Separate compile and execute functions in SDK
Summary: This PR splits the three SDK execution methods ( Overall AssessmentClean, well-structured refactor. The original convenience methods are preserved as thin wrappers ( Findings1. Missing doc comment on
/// Bundles a [`MeteredCostInstance`] with a precomputed [`MeteredCostCtx`] so each execution
/// just clones the ctx instead of rebuilding it.
pub struct CompiledExeMeteredCost {2. Naming asymmetry in execute methods — Nit The pure variant is Observations (no action required)
VerdictLooks good to merge. The only actionable item is the missing doc comment on |
Note: cells_used metrics omitted because CUDA tracegen does not expose unpadded trace heights. Commit: 21987f7 |
Splits the
GenericSdk::execute_*methods intoGenericSdk::compile_*andGenericSdk::execute_compiled_*methods for pure, metered and metered cost. This is to be able to reuse the "compiled" instance which, for rvr, takes a long time to create.closes INT-7842