SWDEV-388950 - updating test (#250)

Change-Id: I402542b53a84203a8f047534e40e3571bf1eb0c3

[ROCm/hip-tests commit: e7348b1f04]
This commit is contained in:
ROCm CI Service Account
2023-06-21 15:58:27 +05:30
committed by GitHub
parent 1007b40dbe
commit c9506ac855
@@ -184,17 +184,15 @@ TEST_CASE("Unit_hipGraphExecMemcpyNodeSetParamsFromSymbol_Negative_Parameters")
}
#endif
SECTION("Changing dst allocation device") {
if (HipTest::getDeviceCount() < 2) {
HipTest::HIP_SKIP_TEST("Test requires two connected GPUs");
return;
}
if (HipTest::getDeviceCount() >= 2) {
SECTION("Changing dst allocation device") {
HIP_CHECK(hipSetDevice(1));
LinearAllocGuard<int> new_var(LinearAllocs::hipMalloc, sizeof(int));
HIP_CHECK_ERROR(hipGraphExecMemcpyNodeSetParamsFromSymbol(
graph_exec, node, new_var.ptr(), SYMBOL(int_device_var),
sizeof(*new_var.ptr()), 0, static_cast<hipMemcpyKind>(-1)),
graph_exec, node, new_var.ptr(), SYMBOL(int_device_var),
sizeof(*new_var.ptr()), 0, static_cast<hipMemcpyKind>(-1)),
hipErrorInvalidValue);
}
}
HIP_CHECK(hipGraphExecDestroy(graph_exec));