FZGPUModules 2.0
GPU-accelerated modular compression pipelines
Loading...
Searching...
No Matches
device_buffer.h File Reference

Backend-neutral device span and buffer value types. More...

#include <cstddef>
#include <utility>

Go to the source code of this file.

Classes

struct  fz::DeviceSpan
 
struct  fz::ConstDeviceSpan
 
class  fz::BorrowedDeviceBuffer
 
class  fz::OwnedDeviceBuffer
 

Namespaces

namespace  fz
 

Detailed Description

Backend-neutral device span and buffer value types.

These types make ownership part of the type rather than a documented property of a void* plus mutable pipeline state. They are the vocabulary of the explicit execution API on fz::Pipeline (compress()/compressInto()/decompressBorrowed()/decompressOwned()/ decompressInto()), which wraps the historical pointer overloads without changing their behavior.

Nothing here allocates. The only owning type, OwnedDeviceBuffer, frees through the backend facade in a .cpp, so this header pulls in no CUDA/HIP headers and works unchanged in a HIP build (it never assumes cudaFree).