SWDEV-294594 - Fix hipPointerGetAttributes test on NV

Replace return value of hipPointerGetAttributes() on NV from
hipErrorUnknown to hipErrorInvalidValue if memory has been freed.

Change-Id: I3fe6dbc35a7a14aa9109df297b7885df83d28149
이 커밋은 다음에 포함됨:
Tao Sang 작성하고 Tao Sang가 2021-07-26 11:30:22 -04:00를 커밋함
1 부모 b58355b065
커밋 203c4b9b35
1 파일이 변경됨
+1 -1
+1 -1
파일 보기
@@ -1699,7 +1699,7 @@ inline static hipError_t hipPointerGetAttributes(hipPointerAttribute_t* attribut
attributes->memoryType = hipMemoryTypeHost;
break;
default:
return hipErrorUnknown;
return hipErrorInvalidValue;
}
attributes->device = cPA.device;
attributes->devicePointer = cPA.devicePointer;