From 46da22930faba650cd401c518c65535b48655077 Mon Sep 17 00:00:00 2001 From: Steve Grubb Date: Mon, 3 Aug 2026 18:20:32 -0400 Subject: [PATCH] tests: remove unused sizes from remote tensor cases The remote tensor fixture setup and SetTensorTest calculate input and output byte counts that are never consumed. These stale values fail the warnings-as-errors build with current GCC. Remove only the unused calculations. The OpenCL buffers and tests that need byte counts retain their existing calculations, and the affected test behavior is unchanged. --- src/test/openvino_remote_tensors_tests.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/test/openvino_remote_tensors_tests.cpp b/src/test/openvino_remote_tensors_tests.cpp index a73245578a..34d719b78d 100644 --- a/src/test/openvino_remote_tensors_tests.cpp +++ b/src/test/openvino_remote_tensors_tests.cpp @@ -196,12 +196,6 @@ class OpenVINOGPUContextFromModel : public OpenVINOGPU { SKIP_AND_EXIT_IF_NO_GPU(); Core core; this->model = core.read_model("/ovms/src/test/dummy/1/dummy.xml"); - auto input = model->get_parameters().at(0); - auto inputByteSize = ov::shape_size(input->get_shape()); - auto output = model->get_results().at(0); - auto outputByteSize = ov::shape_size(output->get_shape()); - inputByteSize *= sizeof(float); - outputByteSize *= sizeof(float); ov::AnyMap config = {ov::hint::performance_mode(ov::hint::PerformanceMode::THROUGHPUT), ov::auto_batch_timeout(0)}; cl_platform_id platformId; @@ -522,11 +516,6 @@ TEST_F(OpenVINOGPU, SetTensorTest) { const std::string inputName{"b"}; auto input = model->get_parameters().at(0); auto output = model->get_results().at(0); - auto inputByteSize = ov::shape_size(input->get_shape()); - auto outputByteSize = ov::shape_size(output->get_shape()); - // we need byte size not no of elements - inputByteSize *= sizeof(float); - outputByteSize *= sizeof(float); enum { // DEV_CONTEXT_SCENARIO CPU_COPY, // regular OVMS scenario