SWDEV-539145 - Add tests of hipHostMallocUncached, hipHostAllocUncached and hipHostRegisterUncached (#348)

이 커밋은 다음에 포함됨:
Sang, Tao 작성하고 GitHub가 2025-07-01 10:10:25 +05:30를 커밋함
1 부모 2c7c7128ea
커밋 9499bf6d1e
3 파일이 변경됨
+46 -8

검색과 일치하는 파일 없음

+18 -2
파일 보기
@@ -129,8 +129,24 @@ TEST_CASE("Unit_hipHostMalloc_Basic") {
float *A_d, *B_d, *C_d;
HIP_CHECK(hipHostMalloc(reinterpret_cast<void**>(&A_h), SIZE,
hipHostMallocWriteCombined | hipHostMallocMapped));
HIP_CHECK(hipHostMalloc(reinterpret_cast<void**>(&B_h), SIZE,
hipHostMallocDefault));
SECTION("hipHostMallocDefault") {
HIP_CHECK(hipHostMalloc(reinterpret_cast<void**>(&B_h), SIZE,
hipHostMallocDefault));
}
#if (HT_AMD == 1) && (HT_LINUX == 1)
SECTION("hipHostMallocUncached") {
HIP_CHECK(hipHostMalloc(reinterpret_cast<void**>(&B_h), SIZE,
hipHostMallocUncached));
}
SECTION("hipHostMallocCoherent") {
HIP_CHECK(hipHostMalloc(reinterpret_cast<void**>(&B_h), SIZE,
hipHostMallocCoherent));
}
SECTION("hipHostMallocNonCoherent") {
HIP_CHECK(hipHostMalloc(reinterpret_cast<void**>(&B_h), SIZE,
hipHostMallocNonCoherent));
}
#endif
HIP_CHECK(hipHostMalloc(reinterpret_cast<void**>(&C_h), SIZE,
hipHostMallocMapped));