EXSWCPHIPT-50 - Testing HipMalloc3D / HipMallocPitch / HipMemAllocPitch (#2613)

[ROCm/hip-tests commit: 79b8653128]
Cette révision appartient à :
Fábio a créé et GitHub a révisé 2022-07-01 14:24:17 +05:30
1 Parent d7fefeb8fb
révision 5e6aa02acd
3 fichiers modifiés
+273 -31

Aucun fichier ne correspond à votre recherche

-20
Voir le fichier
@@ -64,26 +64,6 @@ static void Malloc3DThreadFunc(int gpu) {
MemoryAlloc3DDiffSizes(gpu);
}
/*
* This verifies the negative scenarios of hipMalloc3D API
*/
TEST_CASE("Unit_hipMalloc3D_Negative") {
size_t width = SMALL_SIZE * sizeof(char);
size_t height{SMALL_SIZE}, depth{SMALL_SIZE};
hipPitchedPtr devPitchedPtr;
SECTION("Passing nullptr to device pitched pointer") {
hipExtent extent = make_hipExtent(width, height, depth);
REQUIRE(hipMalloc3D(nullptr, extent) != hipSuccess);
}
SECTION("Passing Max values to extent") {
hipExtent extent = make_hipExtent(std::numeric_limits<size_t>::max(),
std::numeric_limits<size_t>::max(),
std::numeric_limits<size_t>::max());
REQUIRE(hipMalloc3D(&devPitchedPtr, extent) != hipSuccess);
}
}
/*
* This verifies the hipMalloc3D API by
* assigning width,height and depth as 10