Thank you for warning me about memory alignment, I didn’t remenber it at all:\ Looking for NVIDIA Guide I saw how to make the right alignment for performance purposes. But in this case, the problem was me… I was totally dumb…because I changed the kernel function, but I’ve forgotten to change Kernel name in CPU side… So it accepted some arguments because they were the same, but others not and then I was trying to pass an Array to an integer… Of course I got a INVALID_ARGS_SIZE… now everything makes sense.
Thanks for your help:) Hope that it could help some people that made the same mistake.