ECP-copa / CabanaMD

Molecular dynamics proxy application based on Cabana
Other
20 stars 14 forks source link

Simplify mdfactory #88

Closed aprokop closed 4 years ago

aprokop commented 4 years ago

This stems from my desire to easily enable/disable Kokkos backends in CabanaMD to help with build times. While looking at the file, I decided to reorganize it so that it would require simply commenting few lines of code.

Disabling backends helps. I had Kokkos compiled with 3 (Serial, OpenMP, Cuda). Disabling Serial and OpenMP by commenting them out in mdfactory made the compile+link time go from 12.5min to 4.5min. While still ridiculous, it's a step towards brighter future (where code is compiled in a few seconds) :)

Of course, it may be better to use CMake to tweak the backend lists. But it is out of scope for me right now.

aprokop commented 4 years ago

As for the selectively choosing backends - I can open a new version of #73. I'm not sure what to do to further reduce other than to allow disabling other options, e.g. multiple layouts

Up to you. The current workaround works for me for now.