[SWDEV-445928] - Check image support for mi300 tests

Change-Id: Idf820af3e55389740bebe35ed37bca52aca81eae


[ROCm/hip-tests commit: b94242f015]
This commit is contained in:
Rahul Manocha
2024-05-01 13:32:12 -07:00
committed by Rakesh Roy
parent beb223126f
commit e3173e2b51
4 changed files with 9 additions and 6 deletions
@@ -1383,12 +1383,6 @@
"Unit_hipGraphAddNodeTypeMemset_Positive_Basic - uint16_t",
"Unit_hipGraphAddNodeTypeMemset_Positive_Basic - uint32_t",
"Unit_hipMemAdvise_TstAlignedAllocMem_XNACK",
"Unit_hipArrayGetDescriptor_Positive_Basic",
"Unit_hipArrayGetDescriptor_Negative_Parameters",
"Unit_hipArrayGetInfo_Positive_Basic",
"Unit_hipArrayGetInfo_Negative_Parameters",
"Unit_hipArray3DGetDescriptor_Positive_Basic",
"Unit_hipArray3DGetDescriptor_Negative_Parameters",
"Unit_hipCreateSurfaceObject_Negative_Parameters",
"Unit_hipDestroySurfaceObject_Negative_Parameters",
"Unit_Device___float2half_rd_Accuracy_Limited_Positive",
@@ -43,6 +43,7 @@ THE SOFTWARE.
* - HIP_VERSION >= 5.7
*/
TEST_CASE("Unit_hipArray3DGetDescriptor_Positive_Basic") {
CHECK_IMAGE_SUPPORT
DrvArrayAllocGuard<float> array(make_hipExtent(1024, 4, 2));
HIP_ARRAY3D_DESCRIPTOR desc;
@@ -69,6 +70,7 @@ TEST_CASE("Unit_hipArray3DGetDescriptor_Positive_Basic") {
* - HIP_VERSION >= 5.7
*/
TEST_CASE("Unit_hipArray3DGetDescriptor_Negative_Parameters") {
CHECK_IMAGE_SUPPORT
DrvArrayAllocGuard<float> array(make_hipExtent(1024, 4, 2));
HIP_ARRAY3D_DESCRIPTOR desc;
@@ -483,6 +483,8 @@ TEST_CASE("Unit_hipArrayGetDescriptor_Negative_Scenarios") {
* - HIP_VERSION >= 5.7
*/
TEST_CASE("Unit_hipArrayGetDescriptor_Positive_Basic") {
CHECK_IMAGE_SUPPORT
HIP_ARRAY_DESCRIPTOR expected_desc{};
using vec_info = vector_info<float>;
expected_desc.Format = vec_info::format;
@@ -516,6 +518,8 @@ TEST_CASE("Unit_hipArrayGetDescriptor_Positive_Basic") {
* - HIP_VERSION >= 5.7
*/
TEST_CASE("Unit_hipArrayGetDescriptor_Negative_Parameters") {
CHECK_IMAGE_SUPPORT
HIP_ARRAY_DESCRIPTOR expected_desc{};
using vec_info = vector_info<float>;
expected_desc.Format = vec_info::format;
@@ -43,6 +43,8 @@ THE SOFTWARE.
* - HIP_VERSION >= 5.7
*/
TEST_CASE("Unit_hipArrayGetInfo_Positive_Basic") {
CHECK_IMAGE_SUPPORT
ArrayAllocGuard<float> array(make_hipExtent(1024, 4, 2));
hipChannelFormatDesc desc;
@@ -77,6 +79,7 @@ TEST_CASE("Unit_hipArrayGetInfo_Positive_Basic") {
* - HIP_VERSION >= 5.7
*/
TEST_CASE("Unit_hipArrayGetInfo_Negative_Parameters") {
CHECK_IMAGE_SUPPORT
ArrayAllocGuard<float> array(make_hipExtent(1024, 4, 4));
hipChannelFormatDesc desc;