diff options
author | SiCong Li <sicong.li@arm.com> | 2022-05-10 10:15:59 +0100 |
---|---|---|
committer | SiCong Li <sicong.li@arm.com> | 2022-05-11 11:21:29 +0000 |
commit | 4e9f568f1055db8d5b6a969550787032b91854a5 (patch) | |
tree | 3c0f888b00c14ca4d254745d5f83768d3f884a85 /examples/dynamic_fusion/cl_fused_conv2d_elementwise_add.cpp | |
parent | 920f2b6c2070f6328891e26538e8bcad63e2a79c (diff) | |
download | ComputeLibrary-4e9f568f1055db8d5b6a969550787032b91854a5.tar.gz |
Fix inclusion guard for dynamic fusion module
Resolves COMPMID-5318
Signed-off-by: SiCong Li <sicong.li@arm.com>
Change-Id: I59594632c9891b9569089764ae26cc7be6b78fcd
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/7550
Reviewed-by: Nikhil Raj Arm <nikhil.raj@arm.com>
Reviewed-by: Giorgio Arena <giorgio.arena@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'examples/dynamic_fusion/cl_fused_conv2d_elementwise_add.cpp')
-rw-r--r-- | examples/dynamic_fusion/cl_fused_conv2d_elementwise_add.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/dynamic_fusion/cl_fused_conv2d_elementwise_add.cpp b/examples/dynamic_fusion/cl_fused_conv2d_elementwise_add.cpp index 6048024d30..af00efdfb9 100644 --- a/examples/dynamic_fusion/cl_fused_conv2d_elementwise_add.cpp +++ b/examples/dynamic_fusion/cl_fused_conv2d_elementwise_add.cpp @@ -28,9 +28,7 @@ /// @page example_dynamic_fusion_cl_conv2d_elementwise_add Dynamic Fusion Example: Conv2d + Elementwise Addition (OpenCL target) /// This example demonstrates how to fuse a Conv2d with an Addition using the new OperatorGraph API, and to run it with the Async Composite Operator -#ifndef ENABLE_EXPERIMENTAL_DYNAMIC_FUSION -#error "This experimental feature must be enabled with -DENABLE_EXPERIMENTAL_DYNAMIC_FUSION" -#endif /* ENABLE_EXPERIMENTAL_DYNAMIC_FUSION */ +#ifdef ENABLE_EXPERIMENTAL_DYNAMIC_FUSION #ifndef ARM_COMPUTE_CL /* Needed by Utils.cpp to handle OpenCL exceptions properly */ #error "This example needs to be built with -DARM_COMPUTE_CL" #endif /* ARM_COMPUTE_CL */ @@ -383,4 +381,5 @@ int main(int argc, char **argv) #undef TICK #undef TOCK -#undef TOCK_AVG
\ No newline at end of file +#undef TOCK_AVG +#endif /* ENABLE_EXPERIMENTAL_DYNAMIC_FUSION */
\ No newline at end of file |