SWDEV-339742 - Check can access before set device to 1. (#2758)
SWDEV-339742 - Check can access before set device to 1. (#2758)

Change-Id: I5b06f98b0061ee162488e288c3bfac09ff4f94cf

ROCm-Developer-Tools/HIP,ROCm-Developer-Tools/HIP,ROCm-Developer-Tools/HIP,ROCm-Developer-Tools/HIP,ROCm-Developer-Tools/HIP