NVIDIA / NVIDIA/cuda-samples

multiple threads create their own instance calls nvjpegEncodeYUV() return NVJPEG_STATUS_EXECUTION_FAILED

Open
#186 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
9.6k
Forks
2.4k
Avg merge
53m
Merged PRs (30d)
1

Description

hi!
I create separate instances in multiple threads and call nvjpegEncodeYUV(Handle, EncoderState, EncoderParams, &DBuffer, NVJPEG_CSS_GRAY, Width, Height, Stream); return NVJPEG_STATUS_EXECUTION_FAILED. And it is OK when the last parameter is NULL or cudaStreamPerThread.

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.

Research direction

Search the repository for calls to nvjpegEncodeYUV and begin by reproducing the failure with separate encoder instances in multiple threads and an explicit CUDA stream. Compare that behavior with a NULL stream and cudaStreamPerThread; done means the stream-dependent failure is isolated and its expected behavior is confirmed.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-vision
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.