Random value when use pragma unroll
xpoy1 opened this issue · comments
xpoy1 commented
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
- Nvidia 3060 laptop card.
- driver version 531.41
- system, windows 11 10.0.22000 N/A Build 22000
- Compiler => Visual Studio 2021
- just call sha256 and print the result.