celeritas
celeritas copied to clipboard
Support compiling with Kokkos NVCC wrapper
Celeritas fails to compile in a Kokkos GPU platform due to the fundamental assumption that if we're being compiled by NVCC, we're operating with device memory: https://github.com/celeritas-project/celeritas/blob/507282aaaaea2aae62b339b536115a964c57f57c/src/corecel/Types.hh#L54-L58 .
Unfortunately, the Kokkos compiler wrapper runs everything through NVCC, which means that views that should be operating in host memory are instead looking for device-typed memory, yielding a type conflict.
The solution may have to be that we add templates to all our views that use Memspace, rather than relying on Native.
cc @tmdelellis