KhronosGroup / KhronosGroup/OpenCL-Headers
Random value when use pragma unroll
- Dominant language
- C
- Stars
- 766
- Forks
- 273
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 3
Description
# Detailed description
https://github.com/10gic/vanitygen-plusplus/blob/master/calc_addrs.cl
Check the function sha2_256_block , after call it, out buffer neither have the computed result, neither reasonable value.
The out buffer can be all zero, or have value before 5nd index array position, but 5nd index position will be empty.
I remove param unroll operate, and rename out and in to another variable name, the bug be gone.
# Steps to reproduce
1. Nvidia 3060 laptop card.
2. driver version 531.41
3. system, windows 11 10.0.22000 N/A Build 22000
4. Compiler => Visual Studio 2021
5. just call sha256 and print the result.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with calc_addrs.cl, focusing on sha2_256_block and the pragma unroll behavior described in the report. Reproduce the empty or partially populated out buffer using the listed Nvidia 3060, driver, Windows, and Visual Studio versions, then compare it with unroll removed and renamed variables. Done means the cause is isolated and the issue has a verified fix or clear compiler-specific diagnosis.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100