Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • pystencils pystencils
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 18
    • Issues 18
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pycodegen
  • pystencilspystencils
  • Merge requests
  • !252

Fixes for buffers in loops with step size > 1

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Frederik Hennig requested to merge da15siwa/pystencils:loop_step into master Jun 07, 2021
  • Overview 5
  • Commits 5
  • Pipelines 1
  • Changes 5

This MR introduces some additions and fixes for generating CPU loops with step sizes > 1:

  • The CPU create_kernel function now exposes a flag to disable the double field write check
  • Rewrote get_base_buffer_index to use pure integer arithmetic, and corrected the computation of the buffer base index to correctly incorporate loop step sizes. Added test case to check correctness.
  • Added rudimentary evalf functionality to integer division sympy function int_div (its absence lead to an infinite recursion during code generation).
  • Added correct printing of integer-typed expressions in CustomSympyPrinter._typed_number.
Edited Jun 07, 2021 by Frederik Hennig
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: loop_step