Enable construction of unmanaged view using common_view_alloc_prop #1170
Labels
Enhancement
Improve existing capability; will potentially require voting
Feature Request
Create new capability; will potentially require voting
Milestone
@mperego would like this enhancement for use-cases in Intrepid2:
He’d like to get a Fad dimension from a View (of Fad type) by using the common_view_alloc_prop while in a kernel/device function. The fad dim would then be used to create an unmanaged view wrapping a pre-allocated workspace.
Currently this does not work (at least in part) because of a lack of
KOKKOS_INLINE_FUNCTION
attributes in several places and components used by the Kokkos View (and Sacado specializations), for example thecommon_view_alloc_prop
function itself,ViewCtorProp
constructors, theview_wrap
routine.@hcedwar @crtrott is there any reason adding
KOKKOS_INLINE_FUNCTION
to the places I mention above would cause problems, and hence I should not make these changes?The text was updated successfully, but these errors were encountered: