Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pure python gt:debug backend #59

Open
2 tasks
FlorianDeconinck opened this issue Aug 29, 2024 · 0 comments
Open
2 tasks

Add pure python gt:debug backend #59

FlorianDeconinck opened this issue Aug 29, 2024 · 0 comments
Assignees

Comments

@FlorianDeconinck
Copy link
Collaborator

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants