Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/VecSim/spaces/space_includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down
3 changes: 3 additions & 0 deletions src/VecSim/spaces/spaces.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down