Skip to content

Add pure python debug backend #59

@FlorianDeconinck

Description

@FlorianDeconinck

The current numpy backend as limitations:

  • some operations of indexation cannot be conducted because they break broadcast rule
  • readability is not great around mask and slicing boudaries
  • the slicing, though faster, leads to a more complex NPIR and codegen
  • debug-ability, on top of the issue of generated code, is not great

In order to create an area where quick iterative development of features can happen and start looking at debug tooling when writing model (which part of the tooling will need to address the nitty-gritty of the numerics) we propose to write a plain python "debug" backend.

This backend first and foremost shall be simplicity and closeness to C/Fortran looking code

Parent: GEOS-ESM/SMT-Nebulae#36


  • Write code-generation of a gt:debug backend straight from OIR or NPIR
  • Document guiding principles, design decision and ideas/todos

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions