Skip to content

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

[CPU] Clean up redundant debug prints in tests (#30556)

Arseniy Obolenskiy737d5cbe5127
diff --git a/src/plugins/intel_cpu/tests/functional/custom/behavior/ov_executable_network/properties.cpp b/src/plugins/intel_cpu/tests/functional/custom/behavior/ov_executable_network/properties.cpp
index c0ae5cbe35b..64200a6c84c 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/behavior/ov_executable_network/properties.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/behavior/ov_executable_network/properties.cpp
@@ -180,7 +180,6 @@ TEST_F(OVClassConfigTestCPU, smoke_CpuExecNetworkCheckCpuReservation) {
#elif defined(_WIN32)
ULONG highestNodeNumber = 0;
if (!GetNumaHighestNodeNumber(&highestNodeNumber)) {
- std::cout << "Error getting highest NUMA node number: " << GetLastError() << std::endl;
return;
}
if (highestNodeNumber > 0) {
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/matmul_sparse.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/matmul_sparse.cpp
index 16ca7698cd6..67e8b0bd1ab 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/matmul_sparse.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/matmul_sparse.cpp
@@ -100,8 +100,6 @@ protected:
std::mt19937 gen_f(123);
std::uniform_real_distribution<float> dist_f(0.f, 1.f);
- size_t countZero = 0;
-
res[0] = startFrom;
res[vec_len - 1] = upTo;
for (size_t i = 1; i < vec_len - 1; i++) {
@@ -109,12 +107,9 @@ protected:
res[i] = static_cast<int8_t>(dist(gen));
} else {
res[i] = 0;
- countZero++;
}
}
- std::cout << "Sparse rate = " << countZero * 100 / vec_len << "%" << std::endl;
-
return res;
}
diff --git a/src/plugins/intel_cpu/tests/functional/shared_tests_instances/behavior/compiled_model/cpu_reservation_test.cpp b/src/plugins/intel_cpu/tests/functional/shared_tests_instances/behavior/compiled_model/cpu_reservation_test.cpp
index f26eb5c43ea..273c1623ef3 100644
--- a/src/plugins/intel_cpu/tests/functional/shared_tests_instances/behavior/compiled_model/cpu_reservation_test.cpp
+++ b/src/plugins/intel_cpu/tests/functional/shared_tests_instances/behavior/compiled_model/cpu_reservation_test.cpp
@@ -91,7 +91,6 @@ TEST_F(DISABLED_CpuReservationTest, Cpu_Reservation_CpuPinning) {
#elif defined(_WIN32)
ULONG highestNodeNumber = 0;
if (!GetNumaHighestNodeNumber(&highestNodeNumber)) {
- std::cout << "Error getting highest NUMA node number: " << GetLastError() << std::endl;
return;
}
if (highestNodeNumber > 0) {
diff --git a/src/plugins/intel_cpu/tests/unit/shape_inference_test/static_shape_test.cpp b/src/plugins/intel_cpu/tests/unit/shape_inference_test/static_shape_test.cpp
index b41e6973812..cc61248aa1d 100644
--- a/src/plugins/intel_cpu/tests/unit/shape_inference_test/static_shape_test.cpp
+++ b/src/plugins/intel_cpu/tests/unit/shape_inference_test/static_shape_test.cpp
@@ -245,29 +245,6 @@ TEST_F(StaticShapeAdapterTest, compare_ref_and_container) {
EXPECT_TRUE(shape2 == shape3);
EXPECT_TRUE(shape3 == shape2);
-
- std::cout << "ref " << shape2 << std::endl;
- for (auto& d : shape2) {
- std::cout << d << " ";
- }
- std::cout << std::endl;
-
- for (size_t i = 0; i < shape2.size(); ++i) {
- std::cout << shape2[i] << " ";
- }
- std::cout << std::endl << "----------------" << std::endl;
-
- // std::cout << "dims " << dims << std::endl;
- std::cout << "ref " << shape3 << std::endl;
- for (auto& d : shape3) {
- std::cout << d << " ";
- }
- std::cout << std::endl;
-
- for (size_t i = 0; i < shape3.size(); ++i) {
- std::cout << shape3[i] << " ";
- }
- std::cout << std::endl;
}
TEST_F(StaticShapeAdapterTest, subscript_op_on_reference) {