SWDEV-411064 - check if image is supported before running image specific tests

Change-Id: I62b3f7489f2f33b4b4e02f42a46e66c8940f2277
This commit is contained in:
Jatin Chaudhary
2023-07-25 17:04:13 +01:00
committed by Jatin Jaikishan Chaudhary
parent b6b43db172
commit ee3c94faf2
52 changed files with 524 additions and 76 deletions
+8
View File
@@ -31,6 +31,8 @@ THE SOFTWARE.
#pragma clang diagnostic ignored "-Wunused-variable"
TEST_CASE("Unit_hipMemcpy3DAsync_Positive_Basic") {
CHECK_IMAGE_SUPPORT
constexpr bool async = true;
const auto stream_type = GENERATE(Streams::nullstream, Streams::perThread, Streams::created);
@@ -54,6 +56,8 @@ TEST_CASE("Unit_hipMemcpy3DAsync_Positive_Basic") {
}
TEST_CASE("Unit_hipMemcpy3DAsync_Positive_Synchronization_Behavior") {
CHECK_IMAGE_SUPPORT
constexpr bool async = true;
HIP_CHECK(hipDeviceSynchronize());
@@ -78,6 +82,8 @@ TEST_CASE("Unit_hipMemcpy3DAsync_Positive_Synchronization_Behavior") {
}
TEST_CASE("Unit_hipMemcpy3DAsync_Positive_Parameters") {
CHECK_IMAGE_SUPPORT
constexpr bool async = true;
Memcpy3DZeroWidthHeightDepth<async>(Memcpy3DWrapper<async>);
}
@@ -91,6 +97,8 @@ TEST_CASE("Unit_hipMemcpy3DAsync_Positive_Array") {
}
TEST_CASE("Unit_hipMemcpy3DAsync_Negative_Parameters") {
CHECK_IMAGE_SUPPORT
constexpr bool async = true;
constexpr hipExtent extent{128 * sizeof(int), 128, 8};