Identity Hash#
-
struct Hash128#
Two-word digest used as a stable identity for token blocks, media content and adapters.
-
struct FnvValue#
Running state of a host-side 128-bit FNV-1a computation; finishHash() turns it into a Hash128.
- 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
streamis non-null andcpuOnlyis 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.