SWDEV-341744 - Accept error code hipErrorInvalidDevicePointer in hipTest (#2950)
When calling hipIpcOpenMemHandle with an unitialized handle, function can also return hipErrorInvalidDevicePointer
Change-Id: Ic55ea9c61edeb998870cf6a34f7c80123569fecb
[ROCm/hip commit: 7aebe1ab2d]
This commit is contained in:
committed by
GitHub
parent
ab1db29d61
commit
6747e77b0d
@@ -200,7 +200,7 @@ TEST_CASE("Unit_hipIpcMemAccess_ParameterValidation") {
|
||||
SECTION("Open mem handle with handle as un-initialized") {
|
||||
ret = hipIpcOpenMemHandle(&Ad2, MemHandleUninit,
|
||||
hipIpcMemLazyEnablePeerAccess);
|
||||
REQUIRE(ret == hipErrorInvalidValue);
|
||||
REQUIRE((ret == hipErrorInvalidValue || ret == hipErrorInvalidDevicePointer));
|
||||
}
|
||||
#if HT_AMD
|
||||
// Test is disabled for nvidia as api not returning expected value.
|
||||
|
||||
Reference in New Issue
Block a user