NVIDIA / NVIDIA/CUDALibrarySamples
[QST] Why GPU version of Zstd is slower than CPU version of Zstd
@eschmidt-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
[configuration]
CUDA Version: 11.4
OS in Docker container: Ubuntu 20.04.2 LTS
GPU card: A10 x 1
CPU: AMD EPYC 7413 24-Core Processor
Tensorflow version: 2.5.0+nv
nvcomp binary version: nvcomp_2.4.1_x86_64_11.x
[testing data]
image data size: 675 x 78
[Zstd decompression time]
On CPU (Meta API): 0.000069 s
On GPU (nvcomp API): 0.000038 s
[problem description]
I'm creating a Tensorflow custom OP that invokes Zstd decompression API of nvcomp, I simply copy & paste the low_level_quickstart_example in custom OP, so in this case I do both compression and decompression and this custom OP is launched by a python script. But I find that the function cudaStreamSynchronize() takes 0.014081 s which makes GPU version of Zstd is slower than CPU version of Zstd. May I ask what is wrong?
Thanks in advance!
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.