SWDEV-411064 - check if image is supported before running image specific tests
Change-Id: I62b3f7489f2f33b4b4e02f42a46e66c8940f2277
Este commit está contenido en:
1 padre
b6b43db172
commit
ee3c94faf2
52 files changed
+524
-76
No files matched your search
@@ -281,6 +281,8 @@ void checkMemset2D(T value, size_t width, size_t height, bool async = false, siz
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipMemsetFunctional_ZeroValue_2D") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
|
||||
constexpr size_t width{128};
|
||||
constexpr size_t height{128};
|
||||
constexpr char memsetVal = 0;
|
||||
@@ -289,12 +291,16 @@ TEST_CASE("Unit_hipMemsetFunctional_ZeroValue_2D") {
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipMemsetFunctional_SmallSize_2D") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
|
||||
constexpr char memsetVal = 0x42;
|
||||
SECTION("hipMemset2D - Small Size") { checkMemset2D(memsetVal, 1, 1, false); }
|
||||
SECTION("hipMemset2DAsync - Small Size") { checkMemset2D(memsetVal, 1, 1, true); }
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipMemsetFunctional_ZeroSize_2D") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
|
||||
size_t pitch{0};
|
||||
size_t width{10};
|
||||
size_t height{10};
|
||||
@@ -375,6 +381,8 @@ void partialMemsetTest2D(T valA, T valB, size_t width, size_t height, size_t wid
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipMemsetFunctional_PartialSet_2D") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
|
||||
for (auto widthOffset = 8; widthOffset <= 128; widthOffset *= 2) {
|
||||
for (auto heightOffset = 8; heightOffset <= 128; heightOffset *= 2) {
|
||||
SECTION("hipMemset2D - Partial Set") {
|
||||
@@ -487,12 +495,20 @@ void check_memset_3D(std::string sectionStr, size_t width, size_t height, size_t
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipMemsetFunctional_ZeroValue_3D") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
|
||||
check_memset_3D("Zero Value", 128, 128, 10, 0);
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipMemsetFunctional_SmallSize_3D") { check_memset_3D("Small Size", 1, 1, 1, 0x42); }
|
||||
TEST_CASE("Unit_hipMemsetFunctional_SmallSize_3D") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
|
||||
check_memset_3D("Small Size", 1, 1, 1, 0x42);
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipMemsetFunctional_ZeroSize_3D") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
|
||||
constexpr size_t elementSize = sizeof(char);
|
||||
check_memset_3D("Zero Width", 0, FULL_DIM, FULL_DIM, 0x23);
|
||||
check_memset_3D("Zero Height", FULL_DIM * elementSize, 0, FULL_DIM, 0x23);
|
||||
@@ -543,6 +559,8 @@ void partialMemsetTest3D(T valA, T valB, size_t width, size_t height, size_t dep
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipMemsetFunctional_PartialSet_3D") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
|
||||
for (auto widthOffset = 8; widthOffset <= 128; widthOffset *= 2) {
|
||||
for (auto heightOffset = 8; heightOffset <= 128; heightOffset *= 2) {
|
||||
for (auto depthOffset = 2; depthOffset <= 5; depthOffset++) {
|
||||
|
||||
Reference in new issue
Block a user