diff options
author | Omar Al Khatib <omar.alkhatib@arm.com> | 2023-03-07 09:57:49 +0000 |
---|---|---|
committer | Omar Al Khatib <omar.alkhatib@arm.com> | 2023-03-07 14:47:24 +0000 |
commit | 3c7c1fa6c589f75fd8146a47fe71094c172fd56a (patch) | |
tree | f9f8aba8d3a22c4bb66b067d6a596d2404bcf56a /src/dynamic_fusion/sketch/gpu/operators | |
parent | 47f177e679874dc901888973c5fc237b756b38cb (diff) | |
download | ComputeLibrary-3c7c1fa6c589f75fd8146a47fe71094c172fd56a.tar.gz |
Resolve the presence of variables that are unused in release mode in Dynamic Fusion source files
Resloves: [COMPMID-5960]
Signed-off-by: Omar Al Khatib <omar.alkhatib@arm.com>
Change-Id: I1b11f01c51a029082ed05823717b4c4ae4897798
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9270
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Gunes Bayir <gunes.bayir@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/dynamic_fusion/sketch/gpu/operators')
4 files changed, 5 insertions, 1 deletions
diff --git a/src/dynamic_fusion/sketch/gpu/operators/GpuConv2d.cpp b/src/dynamic_fusion/sketch/gpu/operators/GpuConv2d.cpp index e00f09563f..d29d84844e 100644 --- a/src/dynamic_fusion/sketch/gpu/operators/GpuConv2d.cpp +++ b/src/dynamic_fusion/sketch/gpu/operators/GpuConv2d.cpp @@ -204,12 +204,13 @@ ITensorInfo *GpuConv2d::create_op(GpuWorkloadSketch &sketch, const auto sketch_ctx = sketch.implementation().context(); - const auto gpu_target = sketch_ctx->gpu_target(); + const auto gpu_target = sketch_ctx->gpu_target(); if(sketch_ctx->gpu_language() == GpuLanguage::OpenCL) { const auto cl_compile_ctx = sketch_ctx->cl_compile_context(); ARM_COMPUTE_ERROR_ON(cl_compile_ctx == nullptr); + ARM_COMPUTE_UNUSED(cl_compile_ctx); // Add Direct Conv2d Component { diff --git a/src/dynamic_fusion/sketch/gpu/operators/GpuPool2d.cpp b/src/dynamic_fusion/sketch/gpu/operators/GpuPool2d.cpp index c602f45164..e464be8607 100644 --- a/src/dynamic_fusion/sketch/gpu/operators/GpuPool2d.cpp +++ b/src/dynamic_fusion/sketch/gpu/operators/GpuPool2d.cpp @@ -169,6 +169,7 @@ void GpuPool2d::create_op(GpuWorkloadSketch &sketch, if(sketch_ctx->gpu_language() == GpuLanguage::OpenCL) { const auto cl_compile_ctx = sketch_ctx->cl_compile_context(); + ARM_COMPUTE_UNUSED(cl_compile_ctx); ARM_COMPUTE_ERROR_ON(cl_compile_ctx == nullptr); // Add Component diff --git a/src/dynamic_fusion/sketch/gpu/operators/GpuReshape.cpp b/src/dynamic_fusion/sketch/gpu/operators/GpuReshape.cpp index f5645f325f..0f43a578df 100644 --- a/src/dynamic_fusion/sketch/gpu/operators/GpuReshape.cpp +++ b/src/dynamic_fusion/sketch/gpu/operators/GpuReshape.cpp @@ -130,6 +130,7 @@ ITensorInfo *GpuReshape::create_op(GpuWorkloadSketch &sketch, if(sketch_ctx->gpu_language() == GpuLanguage::OpenCL) { const auto cl_compile_ctx = sketch_ctx->cl_compile_context(); + ARM_COMPUTE_UNUSED(cl_compile_ctx); ARM_COMPUTE_ERROR_ON(cl_compile_ctx == nullptr); // Add ElementwiseBinary Component diff --git a/src/dynamic_fusion/sketch/gpu/operators/GpuSoftmax.cpp b/src/dynamic_fusion/sketch/gpu/operators/GpuSoftmax.cpp index db74538f91..291a1e5bda 100644 --- a/src/dynamic_fusion/sketch/gpu/operators/GpuSoftmax.cpp +++ b/src/dynamic_fusion/sketch/gpu/operators/GpuSoftmax.cpp @@ -154,6 +154,7 @@ void GpuSoftmax::create_op(GpuWorkloadSketch &sketch, if(sketch_ctx->gpu_language() == GpuLanguage::OpenCL) { const auto cl_compile_ctx = sketch_ctx->cl_compile_context(); + ARM_COMPUTE_UNUSED(cl_compile_ctx); ARM_COMPUTE_ERROR_ON(cl_compile_ctx == nullptr); // Add Direct Conv2d Component |