public abstract class BatchedDecompressor extends Object
| Constructor and Description |
|---|
BatchedDecompressor(long chunkSize)
Construct a batched decompressor instance
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
batchedDecompressAsync(long devInPtrs,
long devInSizes,
long devOutSizes,
long batchSize,
long tempPtr,
long tempSize,
long devOutPtrs,
long stream)
Asynchronously decompress a batch of compressed data buffers.
|
protected abstract long |
batchedDecompressGetTempSize(long numChunks,
long maxUncompressedChunkBytes)
Computes the temporary storage size in bytes needed to decompress a compressed batch.
|
void |
decompressAsync(BaseDeviceMemoryBuffer[] origInputs,
BaseDeviceMemoryBuffer[] outputs,
Cuda.Stream stream)
Asynchronously decompress a batch of buffers
|
public BatchedDecompressor(long chunkSize)
chunkSize - maximum uncompressed block size, must match value used
during compressionpublic void decompressAsync(BaseDeviceMemoryBuffer[] origInputs, BaseDeviceMemoryBuffer[] outputs, Cuda.Stream stream)
origInputs - buffers to decompress, will be closed by this operationoutputs - output buffers that will contain the decompressed results, each must
be sized to the exact decompressed size of the corresponding inputstream - CUDA stream to useprotected abstract long batchedDecompressGetTempSize(long numChunks,
long maxUncompressedChunkBytes)
numChunks - number of chunks in the batchmaxUncompressedChunkBytes - maximum uncompressed size of any chunk in bytesprotected abstract void batchedDecompressAsync(long devInPtrs,
long devInSizes,
long devOutSizes,
long batchSize,
long tempPtr,
long tempSize,
long devOutPtrs,
long stream)
devInPtrs - device address of compressed input buffer addresses vectordevInSizes - device address of compressed input buffer sizes vectordevOutSizes - device address of uncompressed buffer sizes vectorbatchSize - number of buffers in the batchtempPtr - device address of the temporary decompression spacetempSize - size of the temporary decompression space in bytesdevOutPtrs - device address of uncompressed output buffer addresses vectorstream - CUDA stream to useCopyright © 2024. All rights reserved.