SWDEV-361129 - [catch2][dtest] Enabling tests hipGraphInstantiateWithFlags for AMD (#2987)

Change-Id: I39227ab51417e55f4ab05c48b61e9735856e58ac

[ROCm/hip-tests commit: 246f0c7d20]
Αυτή η υποβολή περιλαμβάνεται σε:
ROCm CI Service Account
2022-10-19 16:49:18 +05:30
υποβλήθηκε από GitHub
γονέας b6709256ea
υποβολή 28e2c2db5e
@@ -43,11 +43,9 @@ Mapping is missing for NVIDIA platform hence skipping the testcases
#include <hip_test_kernels.hh>
constexpr size_t N = 1000000;
#if HT_AMD
/* This test covers the negative scenarios of
hipGraphInstantiateWithFlags API */
TEST_CASE("Unit_hipGraphInstantiateWithFlags_Negative") {
#if HT_NVIDIA
SECTION("Passing nullptr pGraphExec") {
hipGraph_t graph;
HIP_CHECK(hipGraphCreate(&graph, 0));
@@ -67,7 +65,6 @@ TEST_CASE("Unit_hipGraphInstantiateWithFlags_Negative") {
hipGraphExec_t graphExec;
REQUIRE(hipGraphInstantiateWithFlags(&graphExec, graph, 10) != hipSuccess);
}
#endif
}
/*
This function verifies the following scenarios
@@ -267,7 +264,6 @@ This testcase verifies hipGraphInstantiateWithFlags API
by creating dependency graph on GPU-0 and instantiate, launching and verifying
the result on GPU-1
*/
#if HT_NVIDIA
TEST_CASE("Unit_hipGraphInstantiateWithFlags_DependencyGraphDeviceCtxtChg") {
int numDevices = 0;
int canAccessPeer = 0;
@@ -283,7 +279,6 @@ TEST_CASE("Unit_hipGraphInstantiateWithFlags_DependencyGraphDeviceCtxtChg") {
SUCCEED("skipped the testcase as no of devices is less than 2");
}
}
#endif
/*
This testcase verifies hipGraphInstantiateWithFlags API
by creating capture graph and instantiate, launching and verifying
@@ -325,4 +320,3 @@ TEST_CASE("Unit_hipGraphInstantiateWithFlags_StreamCaptureDeviceContextChg") {
SUCCEED("skipped the testcase as no of devices is less than 2");
}
}
#endif