SWDEV-428567 - Catch Test for hipMemcpyDeviceToDeviceNoCU

Change-Id: I8769053eec2b8345023f78f730a1c28df3a1bda6


[ROCm/hip-tests commit: 12c49096d6]
This commit is contained in:
Rahul Manocha
2023-10-25 16:56:25 +00:00
committed by Rakesh Roy
vanhempi 811aed70ed
commit b6ffd24006
@@ -34,22 +34,13 @@ TEST_CASE("Unit_hipMemcpyAsync_Positive_Basic") {
MemcpyWithDirectionCommonTests<true>(std::bind(hipMemcpyAsync, _1, _2, _3, _4, stream));
}
TEST_CASE("Unit_hipMemcpyAsync_Positive_Synchronization_Behavior") {
using namespace std::placeholders;
HIP_CHECK(hipDeviceSynchronize());
SECTION("Host memory to device memory") {
// This behavior differs on NVIDIA and AMD, on AMD the hipMemcpy calls is synchronous with
// respect to the host
#if HT_AMD
HipTest::HIP_SKIP_TEST(
"EXSWCPHIPT-127 - MemcpyAsync from host to device memory behavior differs on AMD and "
"Nvidia");
return;
#endif
MemcpyHtoDSyncBehavior(std::bind(hipMemcpyAsync, _1, _2, _3, hipMemcpyHostToDevice, nullptr),
false);
true);
}
SECTION("Device memory to pageable host memory") {
@@ -67,6 +58,11 @@ TEST_CASE("Unit_hipMemcpyAsync_Positive_Synchronization_Behavior") {
false);
}
SECTION("Device memory to device Memory No CU") {
MemcpyDtoDSyncBehavior(std::bind(hipMemcpyAsync, _1, _2, _3, hipMemcpyDeviceToDeviceNoCU,
nullptr),false);
}
SECTION("Host memory to host memory") {
MemcpyHtoHSyncBehavior(std::bind(hipMemcpyAsync, _1, _2, _3, hipMemcpyHostToHost, nullptr),
true);