@@ -198,6 +198,11 @@ class ConvolutionValidationGenericFixture : public framework::Fixture
198198 bool padded_weights = false,
199199 bool updated_sq_info_after_config = false)
200200 {
201+ #ifndef ARM_COMPUTE_CPU_ENABLED
202+ ARM_COMPUTE_UNUSED (updated_sq_info_after_config);
203+ ARM_COMPUTE_ERROR_ON (updated_sq_info_after_config);
204+ #endif // ARM_COMPUTE_CPU_ENABLED
205+
201206 if (std::is_same<TensorType, Tensor>::value && // Cpu
202207 (data_type == DataType::F16 || weights_data_type == DataType::F16) && !CPUInfo::get ().has_fp16 ())
203208 {
@@ -236,13 +241,15 @@ class ConvolutionValidationGenericFixture : public framework::Fixture
236241 _use_dynamic_output_quant = true ;
237242 }
238243
244+ #ifdef ARM_COMPUTE_CPU_ENABLED
239245 if (updated_sq_info_after_config)
240246 {
241247 _target = compute_gemmlowp_target_for_updated_sq_info_after_config (
242248 input_shape, weights_shape, bias_shape, output_shape, info, reshape_weights, dilation, act_info,
243249 pre_pad_layer, padded_weights);
244250 }
245251 else
252+ #endif // ARM_COMPUTE_CPU_ENABLED
246253 {
247254 _target = compute_target (input_shape, weights_shape, bias_shape, output_shape, info, reshape_weights,
248255 dilation, act_info, pre_pad_layer, padded_weights);
@@ -484,6 +491,7 @@ class ConvolutionValidationGenericFixture : public framework::Fixture
484491 return dst;
485492 }
486493
494+ #ifdef ARM_COMPUTE_CPU_ENABLED
487495 // Compute the target when updating static quantization information after configuration.
488496 TensorType compute_gemmlowp_target_for_updated_sq_info_after_config (TensorShape input_shape,
489497 TensorShape weights_shape,
@@ -496,6 +504,9 @@ class ConvolutionValidationGenericFixture : public framework::Fixture
496504 PaddingList pre_pad_layer = PaddingList({}),
497505 bool padded_weights = false)
498506 {
507+ // Runtime assert rather than static_assert because this template gets
508+ // instantiated with FunctionType other than NEGEMMConvolutionLayer. The
509+ // function call itself is prevented at runtime with conditions.
499510 ARM_COMPUTE_ASSERT ((std::is_same<FunctionType, NEGEMMConvolutionLayer>::value == true ));
500511 ARM_COMPUTE_ERROR_ON ((input_shape[2 ] % weights_shape[2 ]) != 0 );
501512
@@ -612,6 +623,7 @@ class ConvolutionValidationGenericFixture : public framework::Fixture
612623 }
613624 return dst;
614625 }
626+ #endif // ARM_COMPUTE_CPU_ENABLED
615627
616628 SimpleTensor<TO> compute_reference (const TensorShape &input_shape,
617629 const TensorShape &weights_shape,
0 commit comments