Change size_t into int as NVIDIA OpenCL does not like size_t.