Description: Copy between host and device -- start with the cudaMallocAndMemcpy template.
The first part allocates memory for the indexes d_a and d_b on the device.
The second part: copy the h_a on the host to the d_a on the device.
The third part: copy the device from d_a to d_b.
The fourth part: copy the d_b from the device back to the h_a on the host.
The fifth part: release d_a and d_b on the host.
To Search:
File list (Check if you may need any files):
cudaMallocAndMemcpy
cudaMallocAndMemcpy\cudaMallocAndMemcpy.cu
cudaMallocAndMemcpy\cudaMallocAndMemcpy.sln
cudaMallocAndMemcpy\cudaMallocAndMemcpy.vcproj
cudaMallocAndMemcpy\solution
cudaMallocAndMemcpy\solution\cudaMallocAndMemcpy.cu