SWDEV-448989 - Check image support.
Change-Id: Id245c3f348c6c7b4146224f93534443f93a01a9d
[ROCm/hip-tests commit: bffc913f8c]
Šī revīzija ir iekļauta:
revīziju iesūtīja
Rakesh Roy
vecāks
90f5e7bf0c
revīzija
fed7008230
@@ -249,6 +249,7 @@ TEST_CASE("Unit_hipMemPoolSetGetAccess_Positive_P2P") {
|
||||
* - HIP_VERSION >= 6.0
|
||||
*/
|
||||
TEST_CASE("Unit_hipMemPoolSetAccess_Negative_Parameters") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
int device_id = 0;
|
||||
HIP_CHECK(hipSetDevice(device_id));
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ THE SOFTWARE.
|
||||
#include <utils.hh>
|
||||
|
||||
TEST_CASE("Unit_hipMemcpy2D_Positive_Basic") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
constexpr bool async = false;
|
||||
|
||||
SECTION("Device to Host") { Memcpy2DDeviceToHostShell<async>(hipMemcpy2D); }
|
||||
@@ -66,11 +67,13 @@ TEST_CASE("Unit_hipMemcpy2D_Positive_Synchronization_Behavior") {
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipMemcpy2D_Positive_Parameters") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
constexpr bool async = false;
|
||||
Memcpy2DZeroWidthHeight<async>(hipMemcpy2D);
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipMemcpy2D_Negative_Parameters") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
constexpr size_t cols = 128;
|
||||
constexpr size_t rows = 128;
|
||||
|
||||
|
||||
@@ -64,6 +64,7 @@ TEST_CASE("Unit_hipMemcpy2DAsync_Positive_Basic") {
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipMemcpy2DAsync_Positive_Synchronization_Behavior") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
using namespace std::placeholders;
|
||||
|
||||
HIP_CHECK(hipDeviceSynchronize());
|
||||
@@ -99,12 +100,14 @@ TEST_CASE("Unit_hipMemcpy2DAsync_Positive_Synchronization_Behavior") {
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipMemcpy2DAsync_Positive_Parameters") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
using namespace std::placeholders;
|
||||
constexpr bool async = true;
|
||||
Memcpy2DZeroWidthHeight<async>(std::bind(hipMemcpy2DAsync, _1, _2, _3, _4, _5, _6, _7, nullptr));
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipMemcpy2DAsync_Negative_Parameters") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
constexpr size_t cols = 128;
|
||||
constexpr size_t rows = 128;
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ THE SOFTWARE.
|
||||
#include <utils.hh>
|
||||
|
||||
TEST_CASE("Unit_hipMemcpyParam2D_Positive_Basic") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
constexpr bool async = false;
|
||||
|
||||
#if HT_NVIDIA // Disabled on AMD due to defect - EXSWHTEC-236
|
||||
@@ -79,6 +80,7 @@ TEST_CASE("Unit_hipMemcpyParam2D_Positive_Synchronization_Behavior") {
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipMemcpyParam2D_Positive_Parameters") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
constexpr bool async = false;
|
||||
Memcpy2DZeroWidthHeight<async>(MemcpyParam2DAdapter<async>());
|
||||
}
|
||||
@@ -94,6 +96,7 @@ TEST_CASE("Unit_hipMemcpyParam2D_Positive_Array") {
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipMemcpyParam2D_Negative_Parameters") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
constexpr size_t cols = 128;
|
||||
constexpr size_t rows = 128;
|
||||
|
||||
|
||||
@@ -65,6 +65,7 @@ TEST_CASE("Unit_hipMemcpyParam2DAsync_Positive_Basic") {
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipMemcpyParam2DAsync_Positive_Synchronization_Behavior") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
using namespace std::placeholders;
|
||||
|
||||
constexpr bool async = true;
|
||||
@@ -100,6 +101,7 @@ TEST_CASE("Unit_hipMemcpyParam2DAsync_Positive_Synchronization_Behavior") {
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipMemcpyParam2DAsync_Positive_Parameters") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
constexpr bool async = true;
|
||||
Memcpy2DZeroWidthHeight<async>(MemcpyParam2DAdapter<async>());
|
||||
}
|
||||
@@ -115,6 +117,7 @@ TEST_CASE("Unit_hipMemcpyParam2DAsync_Positive_Array") {
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipMemcpyParam2DAsync_Negative_Parameters") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
constexpr bool async = true;
|
||||
|
||||
constexpr size_t cols = 128;
|
||||
|
||||
Atsaukties uz šo jaunā problēmā
Block a user