zero copy


I just know cuda have zero copy feature. ( allocate memory in host, device can point it)

Does this mean using this feature, I can arbitraryly switch between cpu and Gpu. Let say I have *data allocate in host.

If we go to GPU, I can use it. After GPU modify the data, I can back to CPU.

Can I do this swithch as may times as i wish?