kokkos / kokkos-comm

Experimental MPI Wrapper for Kokkos
https://kokkos.org/kokkos-comm/
Other
12 stars 9 forks source link

Header files layout #15

Open cedricchevalier19 opened 5 months ago

cedricchevalier19 commented 5 months ago

One question: since it is a new library, can we try to put header files in a KokkosComm directory?

User code will become:

#include <KokkosComm/KokkosComm.hpp>

I can add this to this PR or do a separate one.

cwpearson commented 5 months ago

I'm okay with putting things into a KokkosComm directory - @masterleinad do you know if Trilinos has an opinion on the structure of the headers?

masterleinad commented 5 months ago

I'm okay with putting things into a KokkosComm directory - @masterleinad do you know if Trilinos has an opinion on the structure of the headers?

I don't know why Trilinos would care. It doesn't matter for TriBITS but I don't know if there are any other Trilinos policies regarding subdirectories for header files vs prefixing (or both).

cedricchevalier19 commented 5 months ago

I will update it after #14 is merged. It will be great to have the install tests!

cwpearson commented 5 months ago

I think I would also prefer:

The main offender right now are

Maybe the things needed by Impl:: should actually be moved into Impl::, and then we can export them up into the public namespace:

namespace KokkosComm {
  using Impl::Req;
  using Impl::Invokable;
  ...
}

It's a bit redundant but it means

cedricchevalier19 commented 4 months ago

Make sense, will do.

cwpearson commented 1 month ago

I think this will be somewhat (or entirely) resolved by https://github.com/kokkos/kokkos-comm/pull/109