OP-DSL / OP2-Common

OP2: open-source framework for the execution of unstructured grid applications on clusters of GPUs or multi-core CPUs
https://op-dsl.github.io
Other
98 stars 47 forks source link

Different behaviour between single node vs MPI when declaring dats with a null data pointer #242

Closed TobyFlynn closed 1 year ago

TobyFlynn commented 1 year ago

Currently when you declare a dat with a null data pointer for non-MPI backends this returns a valid dat that OP2 has allocated memory for itself. However, for MPI backends a null op_dat is returned instead. This commit changes things so that all backends return a valid dat when a null dat pointer is passed to op_decl_dat but before I open a pull request I wanted to check if we want the same behaviour for non-MPI and MPI backends in this case? I don't know if some applications rely on this behaviour for MPI apps

reguly commented 1 year ago

Good question @bozbez is this something we rely on under the hood anywhere in Hydra?

bozbez commented 1 year ago

No shouldn't be, our dat declaration is based on hyd_all calls.

reguly commented 1 year ago

Then I think @TobyFlynn you should go ahead with the proposed change!