Remove invalid section that passes a destroyed stream in Unit_hipMemcpyPeerAsync_Negative_Parameters
[ROCm/hip-tests commit: 3b98cef62a]
This commit is contained in:
committed by
GitHub
parent
1dc47d1a67
commit
9e384db161
@@ -258,11 +258,6 @@ TEST_CASE("Unit_hipMemcpyPeerAsync_Negative_Parameters") {
|
||||
const StreamGuard stream_guard(Streams::created);
|
||||
const hipStream_t stream = stream_guard.stream();
|
||||
|
||||
constexpr auto InvalidStream = [] {
|
||||
const StreamGuard sg(Streams::created);
|
||||
return sg.stream();
|
||||
};
|
||||
|
||||
int can_access_peer = 0;
|
||||
const auto src_device = 0;
|
||||
const auto dst_device = 1;
|
||||
@@ -307,13 +302,6 @@ TEST_CASE("Unit_hipMemcpyPeerAsync_Negative_Parameters") {
|
||||
kPageSize, stream),
|
||||
hipErrorInvalidDevice);
|
||||
}
|
||||
|
||||
SECTION("Passing invalid Stream") {
|
||||
HIP_CHECK_ERROR(hipMemcpyPeerAsync(dst_alloc.ptr(), dst_device, src_alloc.ptr(), src_device,
|
||||
kPageSize, InvalidStream()),
|
||||
hipErrorContextIsDestroyed);
|
||||
}
|
||||
|
||||
HIP_CHECK(hipDeviceDisablePeerAccess(dst_device));
|
||||
} else {
|
||||
INFO("Peer access cannot be enabled between devices " << src_device << " " << dst_device);
|
||||
|
||||
Reference in New Issue
Block a user