Identity Hash#

struct Hash128#

Two-word digest used as a stable identity for token blocks, media content and adapters.

Public Members

uint64_t hi = {}#
uint64_t lo = {}#
struct FnvValue#

Running state of a host-side 128-bit FNV-1a computation; finishHash() turns it into a Hash128.

Public Members

uint64_t hi#
uint64_t lo#
template<>
struct hash<trt_edgellm::rt::Hash128>#

Public Functions

inline size_t operator()(
trt_edgellm::rt::Hash128 const &value
) const noexcept#
Hash128 trt_edgellm::rt::hashOpaqueIdentity(
std::string_view bytes,
cudaStream_t stream,
bool cpuOnly
)#

Deterministic 128-bit FNV-1a digest of exact opaque bytes, used as the identity of media content and adapters.

When stream is non-null and cpuOnly is false, payloads above an internal threshold are hashed on the GPU using a parallel chunked kernel. The result is bit-identical to the CPU path. Callers on hot paths with large payloads (raw audio, for instance) should pass a valid stream and set cpuOnly=false.