NVIDIA / NVIDIA/cuda-samples

Read from uninitialised texture in iterated version of bilateralFilter

Open
#188 0 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

https://github.com/NVIDIA/cuda-samples/blob/e4789153d539b2d2f3976050057a52a1518abcf0/Samples/5_Domain_Specific/bilateralFilter/bilateral_kernel.cu#L240

Shouldn’t this say if (i)? This way rgbaTexdTemp is read from uninitialised in the first iteration.

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

Open Samples/5_Domain_Specific/bilateralFilter/bilateral_kernel.cu at the linked line and trace the iterated bilateral-filter loop, especially the first iteration and rgbaTexdTemp. Confirm whether the initial iteration reads that texture before it is initialized; done means the first iteration no longer performs an uninitialized read and the bilateralFilter sample still builds and runs.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-vision
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.