diff --git a/src/VecSim/spaces/space_includes.h b/src/VecSim/spaces/space_includes.h index 8860fb966..9fd8a2239 100644 --- a/src/VecSim/spaces/space_includes.h +++ b/src/VecSim/spaces/space_includes.h @@ -17,6 +17,9 @@ #ifdef CPU_FEATURES_ARCH_AARCH64 #include "cpuinfo_aarch64.h" #endif // CPU_FEATURES_ARCH_AARCH64 +#ifdef CPU_FEATURES_ARCH_PPC +#include "cpuinfo_ppc.h" +#endif // CPU_FEATURES_ARCH_PPC #if defined(__AVX512F__) || defined(__AVX__) || defined(__SSE__) #if defined(__GNUC__) diff --git a/src/VecSim/spaces/spaces.h b/src/VecSim/spaces/spaces.h index 11b0f9801..4404020da 100644 --- a/src/VecSim/spaces/spaces.h +++ b/src/VecSim/spaces/spaces.h @@ -57,6 +57,9 @@ static inline auto getCpuOptimizationFeatures(const void *arch_opt = nullptr) { #if defined(CPU_FEATURES_ARCH_AARCH64) using FeaturesType = cpu_features::Aarch64Features; constexpr auto getFeatures = cpu_features::GetAarch64Info; +#elif defined(CPU_FEATURES_ARCH_PPC) + using FeaturesType = cpu_features::PPCFeatures; + constexpr auto getFeatures = cpu_features::GetPPCInfo; #else using FeaturesType = cpu_features::X86Features; // Fallback constexpr auto getFeatures = cpu_features::GetX86Info;