p2p_copy_coherency test: gracefully handle single gpu case

Change-Id: I216663f67ef58c673136332635dab8b57079b909


[ROCm/hip commit: 1efb6ce994]
이 커밋은 다음에 포함됨:
Maneesh Gupta가 2017-06-07 15:23:37 +05:30를 커밋했습니다
1 부모 1d1e50fa77
커밋 7213c7a1ad
1 파일이 변경됨
+7 -1
+7 -1
파일 보기
@@ -156,7 +156,13 @@ int main(int argc, char *argv[])
int dev0 = 0;
int dev1 = 1;
// TODO - only works on multi-GPU system:
int numDevices;
HIPCHECK(hipGetDeviceCount(&numDevices));
if (numDevices == 1) {
printf("warning : test requires atleast two gpus\n");
passed();
}
if (enablePeers(dev0,dev1) == -1) {
printf ("warning : could not find peer gpus\n");
return -1;