KhronosGroup / OpenCL-Headers

Khronos OpenCL-Headers
Apache License 2.0
666 stars 236 forks source link

Random value when use pragma unroll #227

Open xpoy1 opened 1 year ago

xpoy1 commented 1 year ago

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.