Skip to content

Phase 4: Update execution pipeline for vectorized kernel calls #251

@ztripez

Description

@ztripez

Phase 4: Update Execution Pipeline for Vectorized Kernel Calls

Part of Epic #247

Objective

Update the execution engine to properly handle vectorized kernel function calls and validate the complete migration from hardcoded to stdlib dt-robust operators.

Tasks

Enhance Execution Engine

  • Update vectorized executor to check for vectorized kernel implementations
  • Route vectorized kernel calls through enhanced registry
  • Fallback to scalar kernel calls when vectorized not available
  • Ensure proper error handling for missing functions

DSL Syntax Migration

  • Update existing DSL files to use kernel. prefix
  • Find and update: integrate()kernel.integrate()
  • Find and update: decay()kernel.decay()
  • Find and update: relax()kernel.relax()
  • Update any other dt-robust function calls

Performance Validation

  • Benchmark new stdlib approach vs old hardcoded approach
  • Ensure vectorized performance is maintained
  • Profile execution to identify any regressions
  • Document performance characteristics

Testing & Validation

  • Update all tests to use new syntax
  • Add integration tests for complete pipeline
  • Test error handling for missing/invalid kernel functions
  • Validate behavior matches previous hardcoded system

Documentation Updates

  • Update DSL documentation for kernel. prefix requirement
  • Document new stdlib extension process
  • Update examples in codebase and docs
  • Add migration guide for existing DSL code

Files to Modify

  • crates/kernels/ir/src/vectorized/mod.rs (execution logic)
  • Various .cdsl files throughout codebase
  • Documentation files
  • Test files across the project

Success Criteria

  • All dt-robust functions work through stdlib
  • Vectorized performance maintained
  • All tests pass with new syntax
  • No hardcoded dt-robust logic remains
  • Complete migration validated end-to-end

Dependencies

  • Requires Phase 3 (hardcoded system removal)
  • Requires all previous phases complete

Breaking Changes

  • DSL syntax: bare function names → kernel. prefixed names
  • Some performance characteristics may change

Estimated Time: 1 week

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestphase-4Phase 4 of epic implementation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions