MeteoSwiss-APN / dawn

Compiler toolchain to enable generation of high-level DSLs for geophysical fluid dynamics models
MIT License
28 stars 30 forks source link

No backend specific code (data_stores) in generated code API #747

Open havogt opened 4 years ago

havogt commented 4 years ago

Currently we select the GT backend in a driver-includes header. We hard-code the GridTools data_stores which can be passed to generated code. This affects all backends as the data_stores appear in the API of the generated code.

A possible solution would be to base the API of the generated code on the SID concept of GridTools which would allow to pass any multi-dimensional array to the generated code (by providing SID-adapters).

havogt commented 4 years ago

This would enable to remove the workaround for backend selection introduced in #748.