diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2020-10-19 12:41:30 +0100 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2020-10-29 18:53:24 +0000 |
commit | c4d45559b00cdbdca80296c23be5939439fbbbd0 (patch) | |
tree | b8a76b8592de3cb5b8474b2a84e598fa32620b6a /SConstruct | |
parent | 27d92fd5da6ad16c9e3b38d82402a86cf7b208aa (diff) | |
download | ComputeLibrary-c4d45559b00cdbdca80296c23be5939439fbbbd0.tar.gz |
COMPMID-3853: Decouple NEActivationLayer
Decouple datatypes and remove Activation template.
Binary size dropped by 25Kb.
Signed-off-by: Michalis Spyrou <michalis.spyrou@arm.com>
Change-Id: I32c207db124895fee25b56437f9495403315b867
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4217
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 5c2e05424f..e5a60c0ad4 100644 --- a/SConstruct +++ b/SConstruct @@ -67,7 +67,7 @@ vars.AddVariables( #FIXME Remove before release (And remove all references to INTERNAL_ONLY) BoolVariable("internal_only", "Enable ARM internal only tests", False), ListVariable("custom_options", "Custom options that can be used to turn on/off features", "none", ["disable_mmla_fp"]), - ListVariable("data_type_support", "Enable a list of data types to support", "all", ["fp16", "fp32"]), + ListVariable("data_type_support", "Enable a list of data types to support", "all", ["qasymm8", "qasymm8_signed", "qsymm16", "fp16", "fp32"]), ("toolchain_prefix", "Override the toolchain prefix", ""), ("compiler_prefix", "Override the compiler prefix", ""), ("extra_cxx_flags", "Extra CXX flags to be appended to the build command", ""), @@ -293,6 +293,12 @@ if env['data_type_support']: env.Append(CXXFLAGS = ['-DENABLE_FP16_KERNELS']) if any(i in env['data_type_support'] for i in ['all', 'fp32']): env.Append(CXXFLAGS = ['-DENABLE_FP32_KERNELS']) + if any(i in env['data_type_support'] for i in ['all', 'qasymm8']): + env.Append(CXXFLAGS = ['-DENABLE_QASYMM8_KERNELS']) + if any(i in env['data_type_support'] for i in ['all', 'qasymm8_signed']): + env.Append(CXXFLAGS = ['-DENABLE_QASYMM8_SIGNED_KERNELS']) + if any(i in env['data_type_support'] for i in ['all', 'qsymm16']): + env.Append(CXXFLAGS = ['-DENABLE_QSYMM16_KERNELS']) if env['standalone']: env.Append(CXXFLAGS = ['-fPIC']) |