3297a65b8f
Set device properly so copying can recover context.
Enhance test to catch this case.
[ROCm/hip commit: 94c85fd4fc]