From 4b0437de283f2fb3661ef060358eb4b5bfccd2d3 Mon Sep 17 00:00:00 2001 From: taosang2 Date: Thu, 29 Aug 2024 10:32:52 -0400 Subject: [PATCH] SWDEV-482059 SWDEV-476745 - Add image support check Add image support check before hipMallocArray(). Change-Id: I9efed88d791ee1b2b4465286b3341b821f7bf628 [ROCm/hip-tests commit: b4694a6bab157f97db61ef4b5a4dafee2b2bce16] --- projects/hip-tests/catch/unit/memory/hipMemcpyAtoA.cc | 1 + projects/hip-tests/catch/unit/memory/hipMemcpyAtoD.cc | 1 + projects/hip-tests/catch/unit/memory/hipMemcpyAtoHAsync.cc | 1 + 3 files changed, 3 insertions(+) diff --git a/projects/hip-tests/catch/unit/memory/hipMemcpyAtoA.cc b/projects/hip-tests/catch/unit/memory/hipMemcpyAtoA.cc index 1ef88e4e57..5bb28de94e 100644 --- a/projects/hip-tests/catch/unit/memory/hipMemcpyAtoA.cc +++ b/projects/hip-tests/catch/unit/memory/hipMemcpyAtoA.cc @@ -50,6 +50,7 @@ TEST_CASE("Unit_hipMemcpyAtoA_Basic") { return; #else HIP_CHECK(hipSetDevice(0)); + CHECK_IMAGE_SUPPORT int row, col; row = 1; col = GENERATE(3, 4, 100); diff --git a/projects/hip-tests/catch/unit/memory/hipMemcpyAtoD.cc b/projects/hip-tests/catch/unit/memory/hipMemcpyAtoD.cc index abda626086..1f41d35942 100644 --- a/projects/hip-tests/catch/unit/memory/hipMemcpyAtoD.cc +++ b/projects/hip-tests/catch/unit/memory/hipMemcpyAtoD.cc @@ -48,6 +48,7 @@ TEST_CASE("Unit_hipMemcpyAtoD_Basic") { return; #else HIP_CHECK(hipSetDevice(0)); + CHECK_IMAGE_SUPPORT int row, col; row = 1; col = GENERATE(3, 4, 100); diff --git a/projects/hip-tests/catch/unit/memory/hipMemcpyAtoHAsync.cc b/projects/hip-tests/catch/unit/memory/hipMemcpyAtoHAsync.cc index 2eb5f15072..cef4c4dbdf 100644 --- a/projects/hip-tests/catch/unit/memory/hipMemcpyAtoHAsync.cc +++ b/projects/hip-tests/catch/unit/memory/hipMemcpyAtoHAsync.cc @@ -48,6 +48,7 @@ TEST_CASE("Unit_hipMemcpyAtoHAsync_Basic") { return; #else HIP_CHECK(hipSetDevice(0)); + CHECK_IMAGE_SUPPORT int row, col; row = 1; col = GENERATE(3, 4, 100);