c8595b0373
Set device properly so copying can recover context.
Enhance test to catch this case.
[ROCm/clr commit: 23a58775df]