Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[GPU] L0-oriented tests fixing (#35111)

Mikolaj Roszczykc0bfee702331
diff --git a/src/plugins/intel_gpu/src/runtime/ze/ze_common.hpp b/src/plugins/intel_gpu/src/runtime/ze/ze_common.hpp
index e15ea385a4f..ffdfc9580ea 100644
--- a/src/plugins/intel_gpu/src/runtime/ze/ze_common.hpp
+++ b/src/plugins/intel_gpu/src/runtime/ze/ze_common.hpp
@@ -12,16 +12,22 @@
#include <string>
#include <sstream>
#include <iomanip>
+#include <exception>
-// Expect success of level zero command, throw runtime error otherwise
-#define OV_ZE_EXPECT(f) \
- do { \
- ze_result_t res_ = (f); \
- if (res_ != ZE_RESULT_SUCCESS) { \
- std::stringstream s; \
- s << std::hex << res_; \
- throw std::runtime_error(#f " command failed with code " + s.str()); \
- } \
+// Expect success of level zero command, throw runtime error otherwise.
+// if already handling an exception (stack unwinding), logging a warning instead to avoid termination.
+#define OV_ZE_EXPECT(f) \
+ do { \
+ ze_result_t res_ = (f); \
+ if (res_ != ZE_RESULT_SUCCESS) { \
+ std::stringstream s; \
+ s << std::hex << res_; \
+ if (std::uncaught_exceptions() > 0) { \
+ GPU_DEBUG_INFO << ("[GPU] " #f " command failed with code " + s.str() + " (during stack unwinding)"); \
+ } else { \
+ OPENVINO_THROW(#f " command failed with code " + s.str()); \
+ } \
+ } \
} while (false)
// Prints warning if level zero command does not return success result
diff --git a/src/plugins/intel_gpu/src/runtime/ze/ze_stream.cpp b/src/plugins/intel_gpu/src/runtime/ze/ze_stream.cpp
index 5aa45c2502a..9602c480d54 100644
--- a/src/plugins/intel_gpu/src/runtime/ze/ze_stream.cpp
+++ b/src/plugins/intel_gpu/src/runtime/ze/ze_stream.cpp
@@ -348,7 +348,7 @@ std::unique_ptr<surfaces_lock> ze_stream::create_surfaces_lock(const std::vector
}
void ze_stream::flush() const {
- // Immediate Command List submits commands immediately - no flush impl
+ GPU_DEBUG_INFO << "Immediate Command List submits commands immediately - no flush impl";
}
void ze_stream::finish() const {
@@ -400,6 +400,10 @@ void ze_stream::sync_events(std::vector<event::ptr> const& deps, bool is_output)
}
}
+ze_context_handle_t ze_stream::get_context() const {
+ return _engine.get_context();
+}
+
#ifdef ENABLE_ONEDNN_FOR_GPU
dnnl::stream& ze_stream::get_onednn_stream() {
OPENVINO_ASSERT(m_queue_type == QueueTypes::in_order, "[GPU] Can't create onednn stream handle as onednn doesn't support out-of-order queue");
diff --git a/src/plugins/intel_gpu/src/runtime/ze/ze_stream.hpp b/src/plugins/intel_gpu/src/runtime/ze/ze_stream.hpp
index 0b34c81bedc..b7d14967849 100644
--- a/src/plugins/intel_gpu/src/runtime/ze/ze_stream.hpp
+++ b/src/plugins/intel_gpu/src/runtime/ze/ze_stream.hpp
@@ -50,6 +50,7 @@ public:
event::ptr create_user_event(bool set) override;
event::ptr create_base_event() override;
std::unique_ptr<surfaces_lock> create_surfaces_lock(const std::vector<memory::ptr> &mem) const override;
+ ze_context_handle_t get_context() const;
#ifdef ENABLE_ONEDNN_FOR_GPU
dnnl::stream& get_onednn_stream() override;
diff --git a/src/plugins/intel_gpu/tests/unit/fusions/convolution_fusion_test.cpp b/src/plugins/intel_gpu/tests/unit/fusions/convolution_fusion_test.cpp
index 8983a17a98a..614f80a23e3 100644
--- a/src/plugins/intel_gpu/tests/unit/fusions/convolution_fusion_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/fusions/convolution_fusion_test.cpp
@@ -2444,9 +2444,7 @@ INSTANTIATE_TEST_SUITE_P(fusings_gpu, conv_int8_scale_quantize_i8, ::testing::Va
class conv_int8_scale_quantize_i8_conv_b_fs_yx_fsv4_int8 : public ConvFusingTest {};
TEST_P(conv_int8_scale_quantize_i8_conv_b_fs_yx_fsv4_int8, basic) {
if (engine.get_device_info().supports_immad) {
- std::cout << "[ SKIPPED ] The test is skipped (not targeting for onednn path)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (not targeting for onednn path).";
}
auto p = GetParam();
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/convolution_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/convolution_gpu_test.cpp
index 4b855b6bc6f..34cb1b8eb97 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/convolution_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/convolution_gpu_test.cpp
@@ -5002,9 +5002,7 @@ TEST(convolution_gpu, basic_yxfb_4_4_yxfb_2_2_b16_if2_of16_st2_2_p0_sp1_fp16)
auto& engine = get_test_engine();
if (!engine.get_device_info().supports_fp16) {
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
const auto input_format = format::yxfb;
@@ -5398,9 +5396,7 @@ TEST_P(convolution_gpu_fs_byx_fsv32, fs_byx_fsv32)
auto& engine = get_test_engine();
if (!engine.get_device_info().supports_fp16) {
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
if (engine.get_device_info().supports_immad) {
@@ -5554,9 +5550,7 @@ TEST(convolution_f16_fsv_gpu, convolution_f16_fsv_gpu_padding) {
auto& engine = get_test_engine();
if (!engine.get_device_info().supports_fp16) {
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
const int batch_num = 2;
@@ -5663,9 +5657,7 @@ TEST(convolution_f16_fsv16, preload_groups_when_groups_is_not_greater_than_one)
tests::random_generator rg(GET_SUITE_NAME);
auto& engine = get_test_engine();
if (!engine.get_device_info().supports_fp16) {
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
const int batch_num = 1;
const int input_xy = 5;
@@ -5772,9 +5764,7 @@ TEST_P(convolution_gpu_fs_byx_fsv32_crop, fs_byx_fsv32_crop)
auto& engine = get_test_engine();
if (!engine.get_device_info().supports_fp16) {
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
const int batch_num = 4;
@@ -6071,9 +6061,7 @@ TEST(convolution_gpu, bfyx_iyxo_5x5_fp16)
auto& engine = get_test_engine();
if (!engine.get_device_info().supports_fp16) {
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
const int batch_num = 1;
@@ -6447,9 +6435,7 @@ TEST_P(convolution_gpu_block_layout3D, bfzyx_bsv16_fsv16_fp16)
auto& engine = get_test_engine();
if (!engine.get_device_info().supports_fp16) {
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
const int batch_num = testing::get<0>(GetParam());
@@ -6762,9 +6748,7 @@ TEST_P(convolution_gpu_block_layout, bfyx_bsv16_fsv16_fp32)
if (batch_num <= 16)
{
- std::cout << "[ SKIPPED ] The test is skipped (for bs_fs_yx_bsv16_fsv16 batch should be greater than 16)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (for bs_fs_yx_bsv16_fsv16 batch should be greater than 16).";
}
auto input_size = tensor(batch_num, input_f, input_xy, input_xy);
@@ -6884,9 +6868,7 @@ TEST_P(convolution_gpu_block_layout, bfyx_bsv16_fsv16_fp16)
auto& engine = get_test_engine();
if (!engine.get_device_info().supports_fp16) {
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
const int batch_num = testing::get<0>(GetParam());
@@ -6901,9 +6883,7 @@ TEST_P(convolution_gpu_block_layout, bfyx_bsv16_fsv16_fp16)
if (batch_num % 32 != 0)
{
- std::cout << "[ SKIPPED ] The test is skipped (for fp16 batch should be multiple of 32)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (for fp16 batch should be multiple of 32).";
}
tests::random_generator rg(GET_SUITE_NAME);
@@ -7025,9 +7005,7 @@ TEST_P(convolution_gpu_block_layout, bfyx_bsv16_fsv16_fp32_fused_ops)
auto& engine = get_test_engine();
if (!engine.get_device_info().supports_fp16) {
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
const int batch_num = testing::get<0>(GetParam()) * 2;
@@ -7200,9 +7178,7 @@ TEST_P(convolution_depthwise_gpu, depthwise_conv_fs_b_yx_fsv32)
auto& engine = get_test_engine();
if (!engine.get_device_info().supports_fp16) {
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
if (engine.get_device_info().supports_immad) {
// This test is not targeting for onednn case
@@ -7347,9 +7323,7 @@ TEST_P(convolution_depthwise_gpu_fsv16, depthwise_conv_b_fs_yx_fsv16)
auto& engine = get_test_engine();
if (!engine.get_device_info().supports_fp16) {
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
const int batch_num = 2;
@@ -7478,9 +7452,7 @@ TEST_P(convolution_depthwise_gpu_fsv16_xy, depthwise_conv_b_fs_yx_fsv16)
auto& engine = get_test_engine();
if (!engine.get_device_info().supports_fp16) {
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
const int batch_num = 2;
@@ -7695,9 +7667,7 @@ TEST_P(convolution_depthwise_gpu_bfyx, depthwise_conv_bfyx)
auto& engine = get_test_engine();
if (!engine.get_device_info().supports_fp16) {
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
const int batch_num = 2;
@@ -8148,14 +8118,10 @@ TEST_P(convolution_general_gpu, conv_fp16_cases) {
auto& engine = get_test_engine();
if (!engine.get_device_info().supports_fp16) {
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
if (engine.get_device_info().supports_immad) {
- std::cout << "[ SKIPPED ] The test is skipped (not targeting for onednn path)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (not targeting for onednn path).";
}
const int input_x = testing::get<0>(GetParam()),
@@ -8317,9 +8283,7 @@ TEST_P(convolution_gpu_fsv16_to_bfyx, conv_b_fs_yx_fsv16_to_bfyx_padding)
if (!engine.get_device_info().supports_fp16)
{
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
const int input_b = testing::get<10>(GetParam());
@@ -8417,9 +8381,7 @@ TEST_P(convolution_gpu_fsv16_to_bfyx, conv_b_fs_yx_fsv16_to_bfyx_different_type)
if (!engine.get_device_info().supports_fp16)
{
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
const int input_b = testing::get<10>(GetParam());
@@ -9866,9 +9828,7 @@ TEST_P(convolution_gpu_onednn, conv_onednn_cases) {
if (!engine.get_device_info().supports_fp16)
{
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
const int input_x = testing::get<0>(GetParam()),
@@ -11228,9 +11188,7 @@ TEST(convolution_gpu_onednn, dyn_conv4d_reshape6d_pattern) {
if (!engine.get_device_info().supports_fp16)
{
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
const int input_x = 8, input_y = 8, input_f = 32, output_f = 32, filter_x = 3, filter_y = 3, groups = 1, batch_num = 1;
@@ -11801,9 +11759,7 @@ TEST_P(conv_dyn_test, convolution_gpu_bfyx_os_iyx_osv32_no_bias) {
auto p = GetParam();
if (p.groups > 1) {
- std::cout << "[ SKIPPED ] The test is skipped (group convolution is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (group convolution is not supported).";
}
auto groups_num = 1;
@@ -11904,9 +11860,7 @@ TEST_P(conv_dyn_test, convolution_gpu_fsv16_1x1_no_bias) {
auto is_grouped = p.wei_shape.size() == 5;
if (is_grouped) {
- std::cout << "[ SKIPPED ] The test is skipped (group convolution is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (group convolution is not supported).";
}
auto groups_num = 1;
@@ -11917,16 +11871,12 @@ TEST_P(conv_dyn_test, convolution_gpu_fsv16_1x1_no_bias) {
&& std::all_of(p.pad_end.begin(), p.pad_end.end(), [](int i) { return i == 0; });
if (!is_weight_1x1 || !is_valid_output || !is_valid_strid || !is_valid_padding) {
- std::cout << "[ SKIPPED ] The test is skipped (is_weight_1x1: " << is_weight_1x1 << ", is_valid_output: " << is_valid_output
- << ", is_valid_strid: " << is_valid_strid << ", is_valid_padding: " << is_valid_padding << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (is_weight_1x1: " << is_weight_1x1 << ", is_valid_output: " << is_valid_output
+ << ", is_valid_strid: " << is_valid_strid << ", is_valid_padding: " << is_valid_padding;
}
if (!engine.get_device_info().supports_immad && p.in_shape[1] > 16) {
- std::cout << "[ SKIPPED ] The test is skipped (convolution_fsv16_1x1 static kernel has accuracy issue with input feature > 16 in igpu)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (convolution_fsv16_1x1 static kernel has accuracy issue with input feature > 16 in igpu).";
}
auto calculate_ref = [&](memory::ptr input, memory::ptr weights, ExecutionConfig config) {
@@ -12033,9 +11983,7 @@ TEST_P(conv_dyn_test, convolution_gpu_fsv16_depthwise_quantized) {
auto is_depthwise = p.in_shape[1] == p.groups;
if (!is_depthwise) {
- std::cout << "[ SKIPPED ] The test is skipped (convolution is not depthwise)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (convolution is not depthwise).";
}
auto is_valid_output = p.wei_shape[0] % 16 == 0;
@@ -12043,12 +11991,10 @@ TEST_P(conv_dyn_test, convolution_gpu_fsv16_depthwise_quantized) {
auto is_valid_padding = all_zeroes(p.pad_begin) && all_zeroes(p.pad_end);
auto is_valid_ranks = p.in_shape.size() == p.wei_shape.size() - 1;
if (!is_valid_output || !is_valid_strid || !is_valid_padding || !is_valid_ranks) {
- std::cout << "[ SKIPPED ] The test is skipped (is_valid_output: " << is_valid_output
+ GTEST_SKIP() << "The test is skipped (is_valid_output: " << is_valid_output
<< ", is_valid_strid: " << is_valid_strid
<< ", is_valid_padding: " << is_valid_padding
- << ", is_valid_ranks: " << is_valid_ranks << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ << ", is_valid_ranks: " << is_valid_ranks;
}
auto calculate_ref = [&](memory::ptr input, memory::ptr weights,
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/eltwise_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/eltwise_gpu_test.cpp
index 92dc429cf89..5521115a807 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/eltwise_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/eltwise_gpu_test.cpp
@@ -3598,8 +3598,7 @@ TEST(eltwise_gpu_f16, fs_b_yx_fsv32_broadcast_bfyx)
auto& engine = get_test_engine();
bool f16_supported = engine.get_device_info().supports_fp16;
if (!f16_supported) {
- std::cout << "[ SKIPPED ] float16 combinations are skipped (cl_khr_fp16 is not supported)." << std::endl;
- return;
+ GTEST_SKIP() << "float16 combinations are skipped (cl_khr_fp16 is not supported).";
}
tensor::value_type input_b = 2;
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/fully_connected_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/fully_connected_gpu_test.cpp
index 44f4befc817..8f14f3c1b5f 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/fully_connected_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/fully_connected_gpu_test.cpp
@@ -175,7 +175,7 @@ TEST(DISABLED_fully_connected_gpu, generic_random_short) {
auto& engine = get_test_engine();
bool f16_supported = !!engine.get_device_info().supports_fp16;
if (!f16_supported) {
- std::cout << "[ SKIPPED ] float16 combinations are skipped (cl_khr_fp16 is not supported)." << std::endl;
+ GTEST_SKIP() << "float16 combinations are skipped (cl_khr_fp16 is not supported).";
}
for (cldnn::format test_input_fmt : test_input_fmts) {
@@ -1084,9 +1084,7 @@ TEST(fully_connected_gpu, DISABLED_fs_byx_fsv32_b12) {
if (!engine.get_device_info().supports_fp16)
{
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
// Test parameters
const int batch_num = 12;
@@ -1288,9 +1286,7 @@ TEST(fully_connected_gpu, DISABLED_fs_byx_fsv32_b34)
if (!engine.get_device_info().supports_fp16)
{
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
// Test parameters
const int batch_num = 34;
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/reorder_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/reorder_gpu_test.cpp
index f38162dbb6f..3b76944f51c 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/reorder_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/reorder_gpu_test.cpp
@@ -666,9 +666,7 @@ TEST(reorder_gpu_f16, basic_subtract_f32_output_f32) {
if (!engine.get_device_info().supports_fp16)
{
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
auto input = engine.allocate_memory({ data_types::f16, format::yxfb, { 2, 2, 2, 2 } });
@@ -758,11 +756,8 @@ TEST(reorder_gpu_f16, basic_subtract_value) {
//
auto& engine = get_test_engine();
- if (!engine.get_device_info().supports_fp16)
- {
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ if (!engine.get_device_info().supports_fp16) {
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
auto input = engine.allocate_memory({ data_types::f16, format::yxfb, { 2, 2, 2, 2 } });
@@ -830,9 +825,7 @@ TEST(reorder_gpu, basic_convert_f16_f32_f16) {
if (!engine.get_device_info().supports_fp16)
{
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
std::vector<ov::float16> expected_values;
@@ -1015,9 +1008,7 @@ TEST(reorder_gpu, basic_convert_uint8rgbabyxf_to_fp32_bfyx) {
if (!engine.get_device_info().supports_fp16)
{
- std::cout << "[ SKIPPED ] The test is skipped (cl_khr_fp16 is not supported)." << std::endl;
- ASSERT_EQ(1, 1);
- return;
+ GTEST_SKIP() << "The test is skipped (cl_khr_fp16 is not supported).";
}
std::initializer_list<uint8_t> input_i8 = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,