core 1.5.0
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
Loading...
Searching...
No Matches
peclet::core::geom::DeviceScene< Real, MemSpace > Class Template Reference

Owning device-resident scene. Copyable (Views are shared_ptr-like); view() is cheap. More...

#include <device_scene.hpp>

Public Member Functions

 DeviceScene ()=default
 
SceneView< Real > view () const
 Non-owning bundle over the device arrays; capture by value into kernels.
 
bool empty () const
 
int instanceCount () const
 

Static Public Member Functions

static DeviceScene from (const SceneBuilder< Real > &b)
 Upload from a host SceneBuilder (the composition path).
 
static DeviceScene fromFlat (const std::vector< int > &nodeInts, const std::vector< Real > &nodeReals, const std::vector< int > &instInts, const std::vector< Real > &instReals)
 Upload from the flat encoding (the binding path; see scene_builder.hpp for the layout).
 

Detailed Description

template<class Real, class MemSpace = typename Kokkos::DefaultExecutionSpace::memory_space>
class peclet::core::geom::DeviceScene< Real, MemSpace >

Owning device-resident scene. Copyable (Views are shared_ptr-like); view() is cheap.

Definition at line 38 of file device_scene.hpp.

Constructor & Destructor Documentation

◆ DeviceScene()

template<class Real , class MemSpace = typename Kokkos::DefaultExecutionSpace::memory_space>
peclet::core::geom::DeviceScene< Real, MemSpace >::DeviceScene ( )
default

Member Function Documentation

◆ from()

◆ fromFlat()

template<class Real , class MemSpace = typename Kokkos::DefaultExecutionSpace::memory_space>
static DeviceScene peclet::core::geom::DeviceScene< Real, MemSpace >::fromFlat ( const std::vector< int > &  nodeInts,
const std::vector< Real > &  nodeReals,
const std::vector< int > &  instInts,
const std::vector< Real > &  instReals 
)
inlinestatic

Upload from the flat encoding (the binding path; see scene_builder.hpp for the layout).

Definition at line 50 of file device_scene.hpp.

References peclet::core::geom::SceneBuilder< Real >::decode(), and peclet::core::geom::DeviceScene< Real, MemSpace >::from().

◆ view()

◆ empty()

template<class Real , class MemSpace = typename Kokkos::DefaultExecutionSpace::memory_space>
bool peclet::core::geom::DeviceScene< Real, MemSpace >::empty ( ) const
inline

Definition at line 104 of file device_scene.hpp.

◆ instanceCount()

template<class Real , class MemSpace = typename Kokkos::DefaultExecutionSpace::memory_space>
int peclet::core::geom::DeviceScene< Real, MemSpace >::instanceCount ( ) const
inline

Definition at line 105 of file device_scene.hpp.


The documentation for this class was generated from the following file: