SWDEV-428567 - Catch Test for hipMemcpyDeviceToDeviceNoCU
Change-Id: I8769053eec2b8345023f78f730a1c28df3a1bda6
[ROCm/hip-tests commit: 12c49096d6]
Esse commit está contido em:
@@ -34,22 +34,13 @@ TEST_CASE("Unit_hipMemcpyAsync_Positive_Basic") {
|
|||||||
MemcpyWithDirectionCommonTests<true>(std::bind(hipMemcpyAsync, _1, _2, _3, _4, stream));
|
MemcpyWithDirectionCommonTests<true>(std::bind(hipMemcpyAsync, _1, _2, _3, _4, stream));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
TEST_CASE("Unit_hipMemcpyAsync_Positive_Synchronization_Behavior") {
|
TEST_CASE("Unit_hipMemcpyAsync_Positive_Synchronization_Behavior") {
|
||||||
using namespace std::placeholders;
|
using namespace std::placeholders;
|
||||||
HIP_CHECK(hipDeviceSynchronize());
|
HIP_CHECK(hipDeviceSynchronize());
|
||||||
|
|
||||||
SECTION("Host memory to device memory") {
|
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),
|
MemcpyHtoDSyncBehavior(std::bind(hipMemcpyAsync, _1, _2, _3, hipMemcpyHostToDevice, nullptr),
|
||||||
false);
|
true);
|
||||||
}
|
}
|
||||||
|
|
||||||
SECTION("Device memory to pageable host memory") {
|
SECTION("Device memory to pageable host memory") {
|
||||||
@@ -67,6 +58,11 @@ TEST_CASE("Unit_hipMemcpyAsync_Positive_Synchronization_Behavior") {
|
|||||||
false);
|
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") {
|
SECTION("Host memory to host memory") {
|
||||||
MemcpyHtoHSyncBehavior(std::bind(hipMemcpyAsync, _1, _2, _3, hipMemcpyHostToHost, nullptr),
|
MemcpyHtoHSyncBehavior(std::bind(hipMemcpyAsync, _1, _2, _3, hipMemcpyHostToHost, nullptr),
|
||||||
true);
|
true);
|
||||||
|
|||||||
Referência em uma Nova Issue
Bloquear um usuário