22template<
class Tvec,
class Tgr
idVec>
27 using namespace shamrock::patch;
34 using Block =
typename Config::AMRBlock;
38 return storage.merged_patchdata_ghost.get().get(id).total_elements;
49 MergedPDat &mpdat = storage.merged_patchdata_ghost.get().get(p.
id_patch);
59 Tscal gamma = solver_config.eos_gamma;
65 mpdat.total_elements * Block::block_size,
68 [[maybe_unused]]
const Tscal *__restrict rho,
69 const Tscal *__restrict eint,
70 Tscal *__restrict pressure) {
71 pressure[id_a] = (gamma - 1) * eint[id_a];
std::uint32_t u32
32 bit unsigned integer
std::uint64_t u64
64 bit unsigned integer
A buffer allocated in USM (Unified Shared Memory).
A SYCL queue associated with a device and a context.
ComputeField< T > make_compute_field(std::string new_name, u32 nvar)
create a compute field and init it to zeros
u32 get_field_idx(const std::string &field_name) const
Get the field id if matching name & type.
PatchDataLayer container class, the layout is described in patchdata_layout.
void kernel_call(sham::DeviceQueue &q, RefIn in, RefOut in_out, u32 n, Functor &&func, SourceLocation &&callsite=SourceLocation{})
Submit a kernel to a SYCL queue.
T & get_check_ref(const std::unique_ptr< T > &ptr, SourceLocation loc=SourceLocation())
Takes a std::unique_ptr and returns a reference to the object it holds. It throws a std::runtime_erro...
namespace for math utility
namespace for the main framework
This file contains the definition for the stacktrace related functionality.
shambase::details::BasicStackEntry StackEntry
Alias for shambase::details::BasicStackEntry.
A class that references multiple buffers or similar objects.
Patch object that contain generic patch information.
u64 id_patch
unique key that identify the patch