{"record":{"id":"f412b51bf879b136","repo":"tracel-ai/burn","slug":"err","errorCode":null,"errorMessage":"{err:?} - {:?}","messagePattern":"\\{err:\\?\\} - \\{:\\?\\}","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/burn-cubecl-fusion/src/optim/elemwise/optimization.rs","lineNumber":49,"sourceCode":"    len: usize,\n}\n\n#[derive(Serialize, Deserialize, Debug)]\n/// State for the [elemwise optimization](ElemwiseOptimization).\npub struct ElemwiseOptimizationState {\n    trace: FuseTrace,\n    len: usize,\n}\n\nimpl ElemwiseOptimization {\n    /// Execute the optimization.\n    pub fn execute(&self, context: &mut Context<CubeFusionHandle>) {\n        let launcher = FuseTraceLauncher::new(&self.trace, &ElemwiseRunner);\n\n        match launcher.launch(&self.client, &self.device, context) {\n            Ok(_) => (),\n            Err(err) => {\n                panic!(\"{err:?} - {:?}\", self.trace);\n            }\n        }\n    }\n\n    /// Number of element wise operations fused.\n    pub fn num_ops_fused(&self) -> usize {\n        self.len\n    }\n\n    /// Create an optimization from its [state](ElemwiseOptimizationState).\n    pub fn from_state(device: &cubecl::Device, state: ElemwiseOptimizationState) -> Self {\n        Self {\n            trace: state.trace,\n            len: state.len,\n            client: device.client(),\n            device: device.clone(),\n        }\n    }","sourceCodeStart":31,"sourceCodeEnd":67,"githubUrl":"https://github.com/tracel-ai/burn/blob/d16f7ba2ed0d41408189384044cc886fb4c8f957/crates/burn-cubecl-fusion/src/optim/elemwise/optimization.rs#L31-L67","documentation":"Kernel-launch failure escalation: `ElemwiseOptimization::execute` runs the fused trace via `FuseTraceLauncher::launch`, and any launcher error (compilation or GPU execution failure) is converted into a panic that also dumps the whole `FuseTrace` for debugging. The panic means the generated CubeCL kernel failed to launch — the underlying cause is the debug-printed error `err`, the trace dump is context.","triggerScenarios":"Thrown at crates/burn-cubecl-fusion/src/optim/elemwise/optimization.rs:49 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the dumped `FuseTrace` for oversized/invalid operations and simplify or split the fused elementwise chain.","Verify shader/device compatibility and that the client/device arguments match the compilation target.","Retry after clearing compile caches if the failure is a stale-cached kernel artifact."],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d16f7ba2ed0d41408189384044cc886fb4c8f957","analyzedAt":"2026-09-05T13:19:14.260Z","contentChangedAt":"2026-09-05T13:19:14.260Z","schemaVersion":2},"datasetVersion":"2026-09-12T17:17:11.597Z"}