|
placer->globalStep.setArg(2, schem->numCells()); |
This passes a size_t into the CL kernel here:
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()).
sch/sch/Placer.cpp
Line 599 in 295100e
This passes a
size_tinto the CL kernel here:sch/cl/placer.cpp
Line 81 in 295100e
But
sizeof(size_t)is not guaranteed to be equal tosizeof(cl_uint), and on 64-bit platforms it definitely isn't. That results in rusticl raising aCL_INVALID_ARG_SIZEhere. I think this needs to bestatic_cast<cl_uint>(schem->numCells()).