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

Change-Id: I62b3f7489f2f33b4b4e02f42a46e66c8940f2277


[ROCm/hip-tests commit: ee3c94faf2]
This commit is contained in:
Jatin Chaudhary
2023-07-25 17:04:13 +01:00
committed by Jatin Jaikishan Chaudhary
parent 349acb4198
commit cb193f70c4
52 changed files with 524 additions and 76 deletions
@@ -56,6 +56,8 @@ THE SOFTWARE.
*/
TEMPLATE_TEST_CASE("Unit_hipGraphExecMemsetNodeSetParams_Positive_Basic", "", uint8_t, uint16_t,
uint32_t) {
CHECK_IMAGE_SUPPORT
const size_t width = GENERATE(1, 64, kPageSize / sizeof(TestType) + 1);
hipGraph_t graph = nullptr;
@@ -129,6 +131,10 @@ TEMPLATE_TEST_CASE("Unit_hipGraphExecMemsetNodeSetParams_Positive_Basic", "", ui
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipGraphExecMemsetNodeSetParams_Negative_Parameters") {
// FIXME: this test tests 1D/2D/3D stuff in one single go, need to decouple it so that it can run
// on devices with no image support
CHECK_IMAGE_SUPPORT
using namespace std::placeholders;
hipGraph_t graph = nullptr;
@@ -187,6 +193,8 @@ TEST_CASE("Unit_hipGraphExecMemsetNodeSetParams_Negative_Parameters") {
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipGraphExecMemsetNodeSetParams_Negative_Updating_Non1D_Node") {
CHECK_IMAGE_SUPPORT
hipGraph_t graph = nullptr;
HIP_CHECK(hipGraphCreate(&graph, 0));