Implement copy kernel function arguments to device memory