Skip to content
Snippets Groups Projects

Sort headers/global definitions to enable reproducible code generation

Merged Stephan Seitz requested to merge seitz/pystencils:sort-headers into master

headers and global_declarations are generated by methods that return sets. So even with the same inputs it is not guaranteed that the same source code is generated since sets do not guarantee a specific order when iterating over them.

I was supprised that my generated code could often not be reused from the cache. The problem was that the included headers appeared in random order.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply