Skip to content

CL_INVALID_ARG_SIZE due to use of size_t #2

@Ravenslofty

Description

@Ravenslofty

placer->globalStep.setArg(2, schem->numCells());

This passes a size_t into the CL kernel here:

const uint num,

But sizeof(size_t) is not guaranteed to be equal to sizeof(cl_uint), and on 64-bit platforms it definitely isn't. That results in rusticl raising a CL_INVALID_ARG_SIZE here. I think this needs to be static_cast<cl_uint>(schem->numCells()).

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