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:
committad av
Rakesh Roy
förälder
0112ed5137
incheckning
e35cc19aaf
@@ -218,7 +218,6 @@
|
||||
"=== Below tests are failing PSDB ===",
|
||||
"Unit_hipMemcpy3D_Positive_Synchronization_Behavior",
|
||||
"Unit_hipMemcpyParam2D_Positive_Synchronization_Behavior",
|
||||
"Unit_hipMemcpyAsync_Positive_Synchronization_Behavior",
|
||||
"Unit_hipDrvMemcpy3D_Positive_Synchronization_Behavior",
|
||||
"Unit_hipFuncSetCacheConfig_Negative_Not_Supported",
|
||||
"Unit_hipFuncSetSharedMemConfig_Negative_Not_Supported",
|
||||
|
||||
@@ -360,7 +360,6 @@
|
||||
"Unit_hipFreeMipmappedArrayMultiTArray - int",
|
||||
"Unit_hipMemcpy3D_Positive_Synchronization_Behavior",
|
||||
"Unit_hipMemcpyParam2D_Positive_Synchronization_Behavior",
|
||||
"Unit_hipMemcpyAsync_Positive_Synchronization_Behavior",
|
||||
"Unit_hipDrvMemcpy3D_Positive_Synchronization_Behavior",
|
||||
"Unit_Thread_Block_Tile_Dynamic_Getters_Positive_Basic",
|
||||
"Unit_hipFuncSetCacheConfig_Negative_Not_Supported",
|
||||
|
||||
@@ -74,7 +74,6 @@
|
||||
"Unit_hipDestroySurfaceObject_Negative_Parameters",
|
||||
"Unit_hipMemcpy3D_Positive_Synchronization_Behavior",
|
||||
"Unit_hipMemcpy2D_Positive_Synchronization_Behavior",
|
||||
"Unit_hipMemcpyAsync_Positive_Synchronization_Behavior",
|
||||
"Unit_hipDrvMemcpy3D_Positive_Synchronization_Behavior",
|
||||
"Unit_hipFreeMipmappedArray_Negative_DoubleFree",
|
||||
"Unit_hipModuleLoad_Positive_Basic",
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
"=== Below tests tests fail in PSDB ===",
|
||||
"Unit_hipMemcpy3D_Positive_Synchronization_Behavior",
|
||||
"Unit_hipMemcpy2D_Positive_Synchronization_Behavior",
|
||||
"Unit_hipMemcpyAsync_Positive_Synchronization_Behavior",
|
||||
"Unit_hipDrvMemcpy3D_Positive_Synchronization_Behavior",
|
||||
"Unit_hipFreeMipmappedArray_Negative_DoubleFree",
|
||||
"Unit_hipModuleLoad_Positive_Basic",
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Referens i nytt ärende
Block a user