Use different copy mechanisms based on CUDA capability.