NexGenAnalytics / Trilinos

Primary repository for the Trilinos Project
https://trilinos.org/
Other
0 stars 2 forks source link

Zoltan2: Provide new API for Models that makes use of Kokkos::Views #32

Open cwschilly opened 1 year ago

cwschilly commented 1 year ago

Overarching issue regarding Kokkos-ification of all Models

mperrinel commented 1 year ago

@stmcgovern I have analyzed a bit this task through the CoordinateModel https://github.com/NexGenAnalytics/Trilinos/issues/34#issuecomment-1648005600

It seems that as for adapter, new kokkos compatible variables members have to be defined into the different Models and filled correctly through the different sharedConstructor private methods In addition, some couples of different method have to be updated too. It is also important to check the virtual one coming from the Model parent class (getLocalNumObjects, getGlobalNumObjects) even, it they don't seem to be difficult to update. One important issue is to define how we can dupplicate/generalize the sharedConstructor code in order to know if we should call the host method of the device one of the inner adapter. This point needs to be analyzed/validated by the team ASAP before starting any modification on the models.