Cannot use size_t for parameters as they will appears as kernel arguments (diff sizeof(size_t) between CPU and GPU)