Skip to content

Random value when use pragma unroll #227

@xpoy1

Description

@xpoy1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions