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
2021-07-25 20:59:49 -04:00
коммит произвёл Tao Sang
родитель b0bd8d6859
Коммит 3efa0aa254
+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;