NVIDIA / NVIDIA/CUDALibrarySamples

nvComp: Unknown output data type

Open
#235 7 comments 0 reactions 1 assignee View on GitHub

@baliika is already working on this.

Since Jun 11, 2025.

nvCOMP
Dominant language
Cuda
Stars
2.5k
Forks
478
PR merge metrics
No merged PRs in 30d

Description

The following snippet fails in encoding step:

from nvidia import nvcomp
import torch

codec = nvcomp.Codec(algorithm="ANS", data_type="f16")
data_gpu = torch.randn(4096*4096, dtype=torch.float16).cuda()
nvarr_d = nvcomp.as_array(data_gpu)
com_arr = codec.encode(nvarr_d)

Fails in encode step with error:
ValueError: Unknown output data type

nvcomp version: 4.1.0
nvcomp cuda version: 12050
OS: Ubuntu

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.