NVIDIA / NVIDIA/CUDALibrarySamples

[QST]Is the max_compressed_buffer_size in CompressionConfig correct?

Open
#344 8 comments 0 reactions 1 assignee View on GitHub

@ndickson-nvidia is already working on this.

Since Oct 24, 2022.

nvCOMP question
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.