Adding cudaMalloc and cudaMemcpy to wrapper