EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
EBGeometry_GPUOrder.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Robert Marskar <robert.marskar@sintef.no>
2//
3// SPDX-License-Identifier: BSD-3-Clause
4
17#ifndef EBGEOMETRY_GPUORDER_HPP
18#define EBGEOMETRY_GPUORDER_HPP
19
20// Std includes
21#include <cstdint>
22#include <type_traits>
23
24// Our includes
25#include "EBGeometry_GPU.hpp"
27#include "EBGeometry_Pool.hpp"
28#include "EBGeometry_Vec.hpp"
29
30namespace EBGeometry {
31namespace GPU {
32
69template <class Source>
71inline void
72mortonOrder(MemoryResource& a_where, const Source& a_source, PODSpan<uint32_t> a_order);
73
85template <class Source>
87inline void
88mortonOrder(const Pool& a_pool, const Source& a_source, PODVector<uint32_t>& a_order);
89
90} // namespace GPU
91} // namespace EBGeometry
92
93#include "EBGeometry_GPUOrderImplem.hpp"
94
95#endif
GPU portability layer: host/device decoration macros and backend detection.
#define EBGEOMETRY_HOST
Mark a function as callable from host code only (no-op on host compilers).
Definition EBGeometry_GPU.hpp:83
Placement-independent POD array views for the GPU memory foundation.
Growable bump arena for the GPU memory foundation.
Declaration of 2D and 3D point/vector classes with templated precision, and free functions on them.
Abstract placement policy: allocates and frees raw, correctly-aligned byte blocks.
Definition EBGeometry_MemoryResource.hpp:69
Growable bump arena over a MemoryResource.
Definition EBGeometry_Pool.hpp:205
void mortonOrder(MemoryResource &a_where, const Source &a_source, PODSpan< uint32_t > a_order)
Write into a_order the order to run queries at a source's points in: the permutation of 0,...
Namespace containing all of EBGeometry's functionality.
Definition EBGeometry_Affine.hpp:26
Raw pointer + size view into a Pool block, for hot inner loops.
Definition EBGeometry_PODVector.hpp:52
Placement-independent descriptor of a POD array inside a Pool.
Definition EBGeometry_PODVector.hpp:131