public class BatchedLZ4Decompressor extends BatchedDecompressor
Constructor and Description |
---|
BatchedLZ4Decompressor(long chunkSize) |
Modifier and Type | Method and Description |
---|---|
protected 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 long |
batchedDecompressGetTempSize(long numChunks,
long maxUncompressedChunkBytes)
Computes the temporary storage size in bytes needed to decompress a compressed batch.
|
static void |
decompressAsync(long chunkSize,
BaseDeviceMemoryBuffer[] origInputs,
BaseDeviceMemoryBuffer[] outputs,
Cuda.Stream stream)
Asynchronously decompress a batch of buffers
|
decompressAsync
public static void decompressAsync(long chunkSize, BaseDeviceMemoryBuffer[] origInputs, BaseDeviceMemoryBuffer[] outputs, Cuda.Stream stream)
chunkSize
- maximum uncompressed block size, must match value used during compressionorigInputs
- buffers to decompress, will be closed by this operationoutputs
- output buffers that will contain the compressed results, each must be sized
to the exact decompressed size of the corresponding inputstream
- CUDA stream to use
Deprecated: Use the non-static version in the parent class instead.protected long batchedDecompressGetTempSize(long numChunks, long maxUncompressedChunkBytes)
BatchedDecompressor
batchedDecompressGetTempSize
in class BatchedDecompressor
numChunks
- number of chunks in the batchmaxUncompressedChunkBytes
- maximum uncompressed size of any chunk in bytesprotected void batchedDecompressAsync(long devInPtrs, long devInSizes, long devOutSizes, long batchSize, long tempPtr, long tempSize, long devOutPtrs, long stream)
BatchedDecompressor
batchedDecompressAsync
in class BatchedDecompressor
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.