Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

axcrypt2-opencl "Call parameter type does not match function signature!" #5711

Open
@solardiz

Description

@solardiz

As seen with ancient Intel OpenCL on "super". I think this is a real bug. I'm not sure which exact kernel and parameter this refers to (it doesn't say, so it'll take a bit of effort to find out), but looking atopencl_axcrypt2_fmt_plug.c I see we allocatemem_salt as buffer ofaxcrypt2_salt_t, but then we reuse it twice: withcrypt_kernel and withfinal_kernel. Whileaxcrypt2_kernel.clfinal_kernel does expect a__constant axcrypt2_salt_t *salt, which is hopefully the same type, we reuse a shared PBKDF2 kernel that expects its own salt type. While that type is made the first field ofaxcrypt2_salt_t, that may not be good enough per OpenCL spec and for all implementations.

Indeed, these related structs are of different size, so if we're talking an array of them, then wouldn't elements starting with the 2nd be at wrong offsets for one of the kernels? Yet somehow this works on most devices, so I guess their OpenCL runtimes implement buffers by passing individual element offsets or something. But are they required to?

I wonder if this format works with recent Intel OpenCL.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp