KhronosGroup / OpenCL-Headers

Khronos OpenCL-Headers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Random value when use pragma unroll

xpoy1 opened this issue · comments

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

  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.