NVIDIA / NVIDIA/CUDALibrarySamples
[QST]Is the max_compressed_buffer_size in CompressionConfig correct?
@ndickson-nvidia is already working on this.
Since Oct 24, 2022.
- Dominant language
- Cuda
- Stars
- 2.5k
- Forks
- 478
- PR merge metrics
- No merged PRs in 30d
Description
What is your question?
I follow the high_level_quickstart_example and try to use high level api , but I find that the value returned by get_compressed_output_size() is larger than max_compressed_buffer_size in CompressionConfig. This always happens when the chunk_size is equal to input_buffer_len. When I want to copy compressed data from device to host according to compressed_output_size, cudaMemcpy() failed because the size of memory is max_compressed_buffer_size which is less than compressed_output_size.
So how to allocate enough memory for compressed_buffer and get the correct size of compressed output?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.