SWDEV-465148 - Enable Unit_hipMemcpyAsync_Positive_Synchronization_Behavior

- For transfers from any host memory to any host memory,
   the function is fully synchronous with respect to the host.

Change-Id: Ie1cb3e136334af320d2596460faed58fcb714b83
This commit is contained in:
Marko Arandjelovic
2024-07-31 13:10:33 +02:00
committed by Rakesh Roy
parent 0112ed5137
commit e35cc19aaf
5 changed files with 10 additions and 6 deletions
+10 -2
View File
@@ -38,9 +38,17 @@ TEST_CASE("Unit_hipMemcpyAsync_Positive_Synchronization_Behavior") {
using namespace std::placeholders;
HIP_CHECK(hipDeviceSynchronize());
// This behavior differs on NVIDIA and AMD, on AMD the hipMemcpy calls is synchronous with
// respect to the host
SECTION("Host pageable memory to device memory") {
#if HT_AMD
HipTest::HIP_SKIP_TEST(
"EXSWCPHIPT-127 - MemcpyAsync from host to device memory behavior differs on AMD and "
"Nvidia");
return;
#endif
MemcpyHPageabletoDSyncBehavior(
std::bind(hipMemcpyAsync, _1, _2, _3, hipMemcpyHostToDevice, nullptr), true);
std::bind(hipMemcpyAsync, _1, _2, _3, hipMemcpyHostToDevice, nullptr), false);
}
SECTION("Host pinned memory to device memory") {
@@ -73,7 +81,7 @@ TEST_CASE("Unit_hipMemcpyAsync_Positive_Synchronization_Behavior") {
true);
MemcpyHPinnedtoHPinnedSyncBehavior(
std::bind(hipMemcpyAsync, _1, _2, _3, hipMemcpyHostToHost, nullptr), false);
std::bind(hipMemcpyAsync, _1, _2, _3, hipMemcpyHostToHost, nullptr), true);
}
}