celeritas icon indicating copy to clipboard operation
celeritas copied to clipboard

Support compiling with Kokkos NVCC wrapper

Open sethrj opened this issue 5 months ago • 0 comments

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

sethrj avatar Jul 10 '25 14:07 sethrj